Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 1.19 KB

README.md

File metadata and controls

50 lines (38 loc) · 1.19 KB

Alpine Raspberry P I

建立alpine测试环境.

在wsl环境下构建alpine docker开发环境模拟respberry环境:

  • 构建alpine docker
  • 安装chroumin
  • 启动alpine docker run

构建alpine docker

启动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

在alpine-chromium内安装chromium

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: 资源下载内容虚拟端口