Peerjs : use service_name. Prep pour podman-compose 1.+
This commit is contained in:
parent
b0f072150b
commit
2b42ce10b6
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue