use code.0x2620.org as container registry

This commit is contained in:
j 2024-01-07 16:35:48 +01:00
parent 74fca45a9f
commit 876044ce74
4 changed files with 12 additions and 12 deletions

View file

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

View file

@ -6,7 +6,7 @@ user=pandora
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
mkdir -p /run/pandora 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" update="/usr/bin/sudo -u $user -E -H /srv/pandora/update.py"
@ -103,9 +103,9 @@ fi
# pan.do/ra setup hooks # pan.do/ra setup hooks
if [ "$action" = "docker-compose.yml" ]; then if [ "$action" = "docker-compose.yml" ]; then
cat /srv/pandora_base/docker-compose.yml | \ 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#\./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 exit
fi fi
if [ "$action" = ".env" ]; then if [ "$action" = ".env" ]; then

View file

@ -1,5 +1,5 @@
#!/bin/bash #!/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 set -e
cd /tmp cd /tmp
@ -7,6 +7,6 @@ git clone https://code.0x2620.org/0x2620/pandora
cd pandora cd pandora
./docker/build.sh ./docker/build.sh
docker push 0x2620/pandora-base:latest docker push 0x2620/pandora-base:latest code.0x2620.org/0x2620/pandora-base:latest
docker push 0x2620/pandora-nginx:latest docker push 0x2620/pandora-nginx:latest code.0x2620.org/0x2620/pandora-nginx:latest
docker push 0x2620/pandora:latest docker push 0x2620/pandora:latest code.0x2620.org/0x2620/pandora:latest

View file

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