建立alpine测试环境.
在wsl环境下构建alpine docker开发环境模拟respberry环境:
- 构建alpine docker
- 安装chroumin
- 启动alpine docker run
启动ubuntu虚拟机,执行以下命令
docker run \
-it \
--net=host \
-e DISPLAY=$DISPLAY \
-v $PWD:/dsclient \
-v /tmp/.X11-unix:/tmp/.X11-unix \
--name alpine-chromium \
alpine sh && \
\
docker start alpine-chromium && \
docker exec -it alpine-chromium sh
sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
sed -i '$a https://mirrors.tuna.tsinghua.edu.cn/alpine/edge/testing/' /etc/apk/repositories
apk update
apk add wqy-zenhei chromium nodejs npm
apk add mesa-egl dbus setxkbmap kbd xrandr xset
sed -i '$d' /etc/apk/repositories
apk update
export DISPLAY=:0 && chromium-browser --no-sandbox&
sudo ./bin/act --platform ubuntu-latest=lucasalt/act_base:latest -v
http://localhost:3000: contentWatcher程序本地代理端口 http://localhost:8080: app的虚拟端口 http://localhost:8000: 资源下载内容虚拟端口