Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
xaserver opened this issue Oct 20, 2024 · 1 comment
Open
1 task done

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

xaserver opened this issue Oct 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@xaserver
Copy link

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

  • 我已经搜索过已有的issues和讨论 | I have searched the existing issues / discussions

发生了什么 | 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

@xaserver xaserver added the bug Something isn't working label Oct 20, 2024
@Miracle575
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants