daed docker部署
Youtube视频
相关链接
安装docker
脚本安装
sudo curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
启动+自启
systemctl enable docker.service --now
拉取源码
git clone https://github.com/daeuniverse/daed-revived-next.git /opt/daed
cd /opt/daed
git submodule update --init --recursive
dae-wing
配置文件目录会映射到宿主机的/etc/dae-wing
目录下
cd /opt/daed/wing
sudo docker compose up -d
可能出现的错误
14.34 go: updates to go.mod needed; to update it:
14.34 go mod tidy
14.34 make: [Makefile:39: schema-resolver] Error 1修改
Dockerfile
COPY . . # 在该位置上面增加行,删除未使用依赖或者更新依赖以及修复模块 RUN go mod tidy RUN make APPNAME=dae-wing VERSION=$VERSION
直接修改
sed -i '/^RUN make APPNAME=dae-wing VERSION=$VERSION$/i RUN go mod tidy' Dockerfile
daed
新增环境变量配置文件
cd /opt/daed/ cat <<EOF> .env.local # ip需要改为你服务器的IP地址 WING_API_URL=http://10.10.10.233:2023 HOSTNAME=0.0.0.0 PORT=3000 EOF
构建镜像运行
cd /opt/daed sudo docker compose up -d
10 条评论
Cloning into '/opt/daed/wing/dae-core'...
Submodule path 'wing/dae-core': checked out 'b7aea958f385a1c8c879d4b9762f45be3c19391d'
Submodule 'control/kern/headers' (https://github.com/daeuniverse/dae_bpf_headers) registered for path 'wing/dae-core/control/kern/headers'
Cloning into '/opt/daed/wing/dae-core/control/kern/headers'...
Submodule path 'wing/dae-core/control/kern/headers': checked out 'd72c67ed8f5a7d11774b5cd88734e2ffe6847721'
root@Ubuntu22-Singbox-Daed-211:/opt/daed# cd /opt/daed/wing
sudo docker compose up -d
WARN[0000] /opt/daed/wing/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Building 0.0s (1/1) FINISHED docker:default
=> [dae-wing internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 730B 0.0s
failed to solve: failed to read dockerfile: failed to mount /var/lib/docker/tmp/buildkit-mount1310361910: [{Type:bind Source:/var/lib/docker/vfs/dir/tabr45i17ahntla0onp1o7fn1 Target: Options:[rbind ro]}]: permission denied
容器日志 提示 no proper dialer for DNS upstream 是什么问题
请问大师,能否在pve虚拟机上安装ct debian模版来安装dae?
最后一步报错:
=> ERROR [daed builder 6/6] RUN pnpm build 44.4s
------
> [daed builder 6/6] RUN pnpm build:
0.695
0.695 > daed-revived-next@0.1.0 build /build
0.695 > next build
0.695
1.338 ▲ Next.js 14.0.3
1.339 - Environments: .env.local, .env
1.339 - Experiments (use at your own risk):
1.339 · instrumentationHook
1.339
1.339 Creating an optimized production build ...
2.965 (node:16) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
2.965 (Use `node --trace-deprecation ...` to show where the warning was created)
39.54
39.54
39.54
39.54 [16:0x721700206060] 38265 ms: Mark-Compact (reduce) 470.6 (491.9) -> 469.4 (492.1) MB, 201.30 / 0.00 ms (average mu = 0.215, current mu = 0.229) allocation failure; scavenge might not succeed
39.54 [16:0x721700206060] 38559 ms: Mark-Compact (reduce) 470.5 (492.1) -> 469.5 (492.4) MB, 275.29 / 0.00 ms (average mu = 0.136, current mu = 0.064) allocation failure; scavenge might not succeed
39.54
39.54
39.54
39.54
39.54 FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
39.54 ----- Native stack trace -----
39.54
44.21 ELIFECYCLE Command failed.
------
failed to solve: process "/bin/sh -c pnpm build" did not complete successfully: exit code: 1
看起来是内存溢出,看是不是内存不够
安装也成功但登录按登录按钮没有反应
我用ubuntu部属也一样的情况
希望能收录到docker hub,这样就不用每次都自己编译了
出个ubuntu的吧 电视盒子上一直都是编译不成功
电视盒子太杂乱了,不同设备可能会不一样。很多问题,我也没有电视盒子可以测试。