PKUHPC / OpenSCOW

Super Computing On Web
https://www.pkuscow.com/
Mulan Permissive Software License, Version 2
208 stars 45 forks source link

[Bug/Help] 从源码构建 容器启动报错 #1447

Open xaserver opened 1 week ago

xaserver commented 1 week ago

是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?

发生了什么 | What happened

[root@iZj6cdk86wk0jx4xwoxunrZ OpenSCOW]# docker run -it --name hms hms:latest cp: can't stat '../../version.json': No such file or directory npm error Missing script: "serve" npm error npm error To see a list of scripts, run: npm error npm run npm error A complete log of this run can be found in: /root/.npm/_logs/2024-10-20T08_48_53_553Z-debug-0.log [root@iZj6cdk86wk0jx4xwoxunrZ OpenSCOW]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 5bd6db6648e4 hms:latest "./entrypoint.sh" 11 seconds ago Exited (1) 9 seconds ago hms

期望结果 | What did you expect to happen

构建的容器能启动

之前运行正常吗? | Did this work before?

No response

复现方法 | Steps To Reproduce

git clone https://github.com/PKUHPC/OpenSCOW --depth=1 cd OpenSCOW

构建tag为scow:latest的镜像。如果需要修改镜像的tag,请修改-t参数的值

docker build -f docker/Dockerfile.scow -t hms . docker run -d --name hms hms:latest

运行环境 | Environment

- OS:rocky 8.6
- Scheduler:
- Docker:26.1.3
- Docker-compose:2.29.6
- SCOW cli:
- SCOW:
- Adapter:

备注 | Anything else?

No response

Miracle575 commented 1 week ago

可以参考一下项目中 github 的 workflow,里面有 OpenSCOW 项目编译镜像的流程