peerjs : use gitea as container repo (6)
This commit is contained in:
parent
ef98c830c3
commit
1cee9af372
|
@ -6,6 +6,7 @@ peerjs:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- cd podman-peerjs
|
- cd podman-peerjs
|
||||||
|
- ./zz_build-images.sh
|
||||||
- GARBAYE_PEERJS_ENV_LISTENPORT=18081 ./10_install.sh
|
- GARBAYE_PEERJS_ENV_LISTENPORT=18081 ./10_install.sh
|
||||||
- ./20_enable.sh
|
- ./20_enable.sh
|
||||||
- ./30_start.sh && sleep 10
|
- ./30_start.sh && sleep 10
|
||||||
|
|
|
@ -9,8 +9,7 @@ ensure_not_root
|
||||||
|
|
||||||
ensure_container_not_exists ${container_name}
|
ensure_container_not_exists ${container_name}
|
||||||
|
|
||||||
source ${ABSDIR}/zz_build-images.sh
|
podman pull ${upstream_images}:${version} &&
|
||||||
|
|
||||||
podman run --name ${container_name} --user nobody -p ${listen_if}:${listen_port}:9000 -d ${upstream_images}:${version} &&
|
podman run --name ${container_name} --user nobody -p ${listen_if}:${listen_port}:9000 -d ${upstream_images}:${version} &&
|
||||||
( podman logs -f peerjs-server 2>&1 & ) | grep -q 'Started PeerServer' &&
|
( podman logs -f peerjs-server 2>&1 & ) | grep -q 'Started PeerServer' &&
|
||||||
podman stop ${container_name} &&
|
podman stop ${container_name} &&
|
||||||
|
|
|
@ -19,15 +19,15 @@ fi
|
||||||
|
|
||||||
echo Rebuilding container ${container_name} with image ${upstream_imageversion}
|
echo Rebuilding container ${container_name} with image ${upstream_imageversion}
|
||||||
|
|
||||||
# build first for minimal downtime
|
# pull first for minimal downtime
|
||||||
source ${ABSDIR}/zz_build-images.sh
|
podman pull ${upstream_images}:${version} &&
|
||||||
|
|
||||||
${ABSDIR}/40_stop.sh
|
${ABSDIR}/40_stop.sh &&
|
||||||
${ABSDIR}/80_destroy.sh
|
${ABSDIR}/80_destroy.sh &&
|
||||||
${ABSDIR}/10_install.sh
|
${ABSDIR}/10_install.sh &&
|
||||||
${ABSDIR}/20_enable.sh
|
${ABSDIR}/20_enable.sh &&
|
||||||
${ABSDIR}/30_start.sh
|
${ABSDIR}/30_start.sh &&
|
||||||
|
|
||||||
podman rmi ${current_imageversion}
|
podman rmi ${current_imageversion} &&
|
||||||
|
|
||||||
${ABSDIR}/00_status.sh
|
${ABSDIR}/00_status.sh
|
||||||
|
|
Loading…
Reference in a new issue