Compare commits

...

2 commits

Author SHA1 Message Date
j
3683e60497 default Network not needed 2024-01-07 17:19:35 +01:00
j
876044ce74 use code.0x2620.org as container registry 2024-01-07 16:35:48 +01:00
5 changed files with 12 additions and 13 deletions

View file

@ -15,7 +15,6 @@ services:
- "127.0.0.1:2620:80"
networks:
- backend
- default
links:
- pandora
- websocketd

View file

@ -1,4 +1,4 @@
FROM debian:bullseye
FROM debian:12
LABEL maintainer="0x2620@0x2620.org"

View file

@ -6,7 +6,7 @@ user=pandora
export LANG=en_US.UTF-8
mkdir -p /run/pandora
chown -R ${user}.${user} /run/pandora
chown -R ${user}:${user} /run/pandora
update="/usr/bin/sudo -u $user -E -H /srv/pandora/update.py"
@ -103,9 +103,9 @@ fi
# pan.do/ra setup hooks
if [ "$action" = "docker-compose.yml" ]; then
cat /srv/pandora_base/docker-compose.yml | \
sed "s#build: \.#image: 0x2620/pandora:latest#g" | \
sed "s#build: \.#image: code.0x2620.org/0x2620/pandora:latest#g" | \
sed "s#\./overlay:#.:#g" | \
sed "s#build: docker/nginx#image: 0x2620/pandora-nginx:latest#g"
sed "s#build: docker/nginx#image: code.0x2620.org/0x2620/pandora-nginx:latest#g"
exit
fi
if [ "$action" = ".env" ]; then

View file

@ -1,5 +1,5 @@
#!/bin/bash
# push new version of pan.do/ra to docker hub
# push new version of pan.do/ra to code.0x2620.org
set -e
cd /tmp
@ -7,6 +7,6 @@ git clone https://code.0x2620.org/0x2620/pandora
cd pandora
./docker/build.sh
docker push 0x2620/pandora-base:latest
docker push 0x2620/pandora-nginx:latest
docker push 0x2620/pandora:latest
docker push 0x2620/pandora-base:latest code.0x2620.org/0x2620/pandora-base:latest
docker push 0x2620/pandora-nginx:latest code.0x2620.org/0x2620/pandora-nginx:latest
docker push 0x2620/pandora:latest code.0x2620.org/0x2620/pandora:latest

View file

@ -1,18 +1,18 @@
#!/bin/sh
docker run 0x2620/pandora docker-compose.yml > docker-compose.yml
docker run code.0x2620.org/0x2620/pandora docker-compose.yml > docker-compose.yml
if [ ! -e .env ]; then
docker run 0x2620/pandora .env > .env
docker run code.0x2620.org/0x2620/pandora .env > .env
echo .env >> .gitignore
fi
if [ ! -e config.jsonc ]; then
docker run 0x2620/pandora config.jsonc > config.jsonc
docker run code.0x2620.org/0x2620/pandora config.jsonc > config.jsonc
fi
cat > README.md << EOF
pan.do/ra docker instance
this folder was created with
docker run 0x2620/pandora setup | sh
docker run code.0x2620.org/0x2620/pandora setup | sh
To start pan.do/ra adjust the files in this folder: