peerjs : use gitea as container repo (6)

This commit is contained in:
Gitouche 2022-08-12 19:59:57 +02:00
parent ef98c830c3
commit 1cee9af372
3 changed files with 10 additions and 10 deletions

View file

@ -6,6 +6,7 @@ peerjs:
stage: test
script:
- cd podman-peerjs
- ./zz_build-images.sh
- GARBAYE_PEERJS_ENV_LISTENPORT=18081 ./10_install.sh
- ./20_enable.sh
- ./30_start.sh && sleep 10

View file

@ -9,8 +9,7 @@ ensure_not_root
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 logs -f peerjs-server 2>&1 & ) | grep -q 'Started PeerServer' &&
podman stop ${container_name} &&

View file

@ -19,15 +19,15 @@ fi
echo Rebuilding container ${container_name} with image ${upstream_imageversion}
# build first for minimal downtime
source ${ABSDIR}/zz_build-images.sh
# pull first for minimal downtime
podman pull ${upstream_images}:${version} &&
${ABSDIR}/40_stop.sh
${ABSDIR}/80_destroy.sh
${ABSDIR}/10_install.sh
${ABSDIR}/20_enable.sh
${ABSDIR}/30_start.sh
${ABSDIR}/40_stop.sh &&
${ABSDIR}/80_destroy.sh &&
${ABSDIR}/10_install.sh &&
${ABSDIR}/20_enable.sh &&
${ABSDIR}/30_start.sh &&
podman rmi ${current_imageversion}
podman rmi ${current_imageversion} &&
${ABSDIR}/00_status.sh