Skip to content

Commit

Permalink
add start script (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlcoo authored Nov 8, 2024
1 parent 20e640c commit 1493196
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
3 changes: 2 additions & 1 deletion easypackages/pypi/watch_update_source/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ RUN yum install -y git ruby rubygems make gcc diffutils util-linux lftp hostname
&& gem install rest-client \
&& git clone https://gitee.com/compass-ci/lkp-tests.git \
&& git clone https://ghp.ci/https://github.com/opensourceways/easypackages.git \
&& pip install schedule
&& pip install schedule \
&& pip install requests

WORKDIR /root/easypackages/easypackages/pypi/watch_update_source/src

Expand Down
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 1493196

Please sign in to comment.