Peerjs : use service_name. Prep pour podman-compose 1.+

This commit is contained in:
Gitouche 2022-09-03 15:26:40 +02:00
parent b0f072150b
commit 2b42ce10b6
2 changed files with 10 additions and 7 deletions

View file

@ -1,6 +1,6 @@
before_script:
- podman container exists peerjs-server && podman container rm --force peerjs-server
- rm -f ~/.config/systemd/user/container-peerjs-server.service && systemctl --user daemon-reload
- podman container exists podman-peerjs && podman container rm --force podman-peerjs
- rm -f ~/.config/systemd/user/container-podman-peerjs.service && systemctl --user daemon-reload
peerjs:
stage: test

View file

@ -1,8 +1,11 @@
#!/usr/bin/env bash
container_name='peerjs-server'
service_name="container-${container_name}.service"
listen_if="${GARBAYE_PEERJS_ENV_LISTENIF:-127.0.0.1}"
listen_port="${GARBAYE_PEERJS_ENV_LISTENPORT:-8081}"
## vars
upstream_images='git.garbaye.fr/garbaye/peerjs-server'
version='0.6.1'
## default vars : override with ENV var
listen_if="${GARBAYE_PEERJS_ENV_LISTENIF:-127.0.0.1}"
listen_port="${GARBAYE_PEERJS_ENV_LISTENPORT:-8081}"
## internal vars : do not touch
project_name=${PWD##*/}
container_name="${project_name}"
service_name="container-${container_name}.service"