push der images dazu
This commit is contained in:
@@ -35,6 +35,7 @@ services:
|
|||||||
- postgres
|
- postgres
|
||||||
|
|
||||||
collector:
|
collector:
|
||||||
|
image: docker.citysensor.de/wetterstation-collector:latest
|
||||||
build:
|
build:
|
||||||
context: ./collector
|
context: ./collector
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
|||||||
21
push-images.sh
Executable file
21
push-images.sh
Executable file
@@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Script zum Bauen und Pushen der Docker Images zur Registry
|
||||||
|
set -e
|
||||||
|
|
||||||
|
REGISTRY="docker.citysensor.de"
|
||||||
|
PROJECT="wetterstation"
|
||||||
|
|
||||||
|
echo "🔨 Building Docker images..."
|
||||||
|
docker compose build collector
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "📤 Pushing images to ${REGISTRY}..."
|
||||||
|
docker compose push collector
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "✅ Done! Images successfully pushed to ${REGISTRY}"
|
||||||
|
echo ""
|
||||||
|
echo "To pull and run on another machine:"
|
||||||
|
echo " docker compose pull"
|
||||||
|
echo " docker compose up -d"
|
||||||
Reference in New Issue
Block a user