-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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[@]}" |