From ce16549821a530dc2aa77013f427571f26ca5f46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reinhard=20X=2E=20F=C3=BCrst?= Date: Sun, 28 Sep 2025 10:38:49 +0000 Subject: [PATCH] build_and_deoplay - Versuch --- build_and_deploy.sh | 45 ++++++++++++++++++++++++++ docker-compose.traefik-external-db.yml | 7 ---- 2 files changed, 45 insertions(+), 7 deletions(-) create mode 100755 build_and_deploy.sh diff --git a/build_and_deploy.sh b/build_and_deploy.sh new file mode 100755 index 0000000..20a1635 --- /dev/null +++ b/build_and_deploy.sh @@ -0,0 +1,45 @@ +#!/bin/bash +# Build Docker-Container and deplay to docker.citysensor.de +# +# Call: build_and_deplay.sh name +# name = name of target image +# +# The Dockerfile must be named like Dockerfile_name +# +# V 1.0.0 2025-09-28 rxf +# - adapted from build_and_copy.sh and from deplay.sh + +set -x +registry=docker.citysensor.de +name=$1 + +usage() +{ + echo "Usage build_and_deploy.sh name [-h]" + echo " Build docker container $name and copy to $registry" + echo "Params:" + echo " name: name of image" +} + +if [[ "$name" == "" ]]; then + echo "No target name given!" + exit +fi + +while getopts n:p:h? o +do + case "$o" in + h) usage; exit 0;; + *) usage; exit 1;; + esac +done +shift $((OPTIND-1)) + +#docker build -f Dockerfile_$orgName --no-cache -t $name . + +#dat=`date +%Y%m%d%H%M` +#docker tag $name $name:V_$dat +#docker tag $name docker.citysensor.de/$name:latest +#dat=`date +%Y%m%d%H%M` +#docker tag $name docker.citysensor.de/$name:V_$dat +#docker push docker.citysensor.de/$name diff --git a/docker-compose.traefik-external-db.yml b/docker-compose.traefik-external-db.yml index 2fca3d6..a16f94e 100644 --- a/docker-compose.traefik-external-db.yml +++ b/docker-compose.traefik-external-db.yml @@ -164,10 +164,3 @@ volumes: portainer_data: driver: local -networks: - traefik-network: - driver: bridge - # Reference to external network (will be created by Gitea) - # This network should already exist from your Gitea installation - gitea_default: - external: true \ No newline at end of file