Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-cicd
csst-dag
Commits
e4476178
Commit
e4476178
authored
Sep 09, 2025
by
BO ZHANG
🏀
Browse files
use csst as entrypoint
parent
3f78c24f
Changes
2
Hide whitespace changes
Inline
Side-by-side
docker/Dockerfile
View file @
e4476178
...
...
@@ -28,7 +28,10 @@ USER csst
# copy VCS roots into image
COPY
--chown=csst:csst . /pipeline
RUN
mv
pkg/csst-dag/app /pipeline/app
\
&&
chmod
+x /pipeline/app/csst
&&
chmod
+x /pipeline/app/csst
\
# add csst to PATH
ENV
PATH="/pipeline/app:${PATH}"
# install packages & requirements
RUN
--mount
=
type
=
cache,id
=
pip,uid
=
9000,gid
=
9000,target
=
/home/csst/.cache
\
pip
install
pkg/ccds
\
...
...
@@ -44,4 +47,4 @@ RUN touch /pipeline/output/pipeline.log
# 设置容器启动时默认执行的命令(这里以提供一个帮助信息为例)
# 实际使用时,你可能会通过docker run覆盖这个命令来调用具体的工具
CMD
["
python", "-c", "import csst_dag; print('csst_dag is available. Use docker run <image> <command> to execute specific functions.')
"]
CMD
["
csst", "--help
"]
docker/test.yml
View file @
e4476178
...
...
@@ -8,4 +8,4 @@ services:
env_file
:
-
.env
command
:
>
# change it as necessary
python /pipeline/app/test.py
csst --help
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment