Skip to content

Commit

Permalink
add start script
Browse files Browse the repository at this point in the history
  • Loading branch information
jlcoo committed Nov 7, 2024
1 parent 20e640c commit a5d7312
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions easypackages/pypi/watch_update_source/build_image.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
#!/bin/bash

# /usr/bin/docker build --no-cache -t openeuler-pypi-package-update:latest .
/usr/bin/docker build -t openeuler-pypi-package-update .
25 changes: 25 additions & 0 deletions easypackages/pypi/watch_update_source/start_container.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

CCI_SRC=/c/compass-ci

# shellcheck disable=SC1091
source $CCI_SRC/container/defconfig.sh

docker_rm openeuler-pypi-package-update
load_cci_defaults

load_service_authentication

cmd=(
docker run
--name openeuler-pypi-package-update
-it
-d
-v /srv:/srv:ro #(挂载的submit执行job结果父目录,便于容器内查看执行结果)
-v "$HOME/.config:/root/.config:ro" #(挂载的当前账号的compassci账密信息,用于容器内submit提交job)
-v /etc/compass-ci:/etc/compass-ci:ro #固定不变
-v /etc/localtime:/etc/localtime:ro #固定不变
openeuler-pypi-package-update:latest #使用构建出来的镜像
)

"${cmd[@]}"

0 comments on commit a5d7312

Please sign in to comment.