#!/bin/bash
-IMAGE=juplo/technick-check:1.0-SNAPSHOT
-
-if [ "$1" = "cleanup" ]
-then
- docker compose -f docker/docker-compose.yml down -t0 -v --remove-orphans
- mvn clean
- exit
-fi
-
docker compose -f docker/docker-compose.yml up -d --remove-orphans kafka-1 kafka-2 kafka-3
docker compose -f docker/docker-compose.yml rm -svf technick-check
-if [[
- $(docker image ls -q $IMAGE) == "" ||
- "$1" = "build"
-]]
-then
- mvn clean install || exit
-else
- echo "Using image existing images:"
- docker image ls $IMAGE
-fi
+# Build mit Maven testen
+gradle buildImage || exit
+# Starten des Docker-Setups testen
docker compose -f docker/docker-compose.yml up --remove-orphans setup || exit 1
-
+# Start des gebauten Images in Docker testen
docker compose -f docker/docker-compose.yml up -d technick-check
+
+# Aufräumen
+docker compose -f docker/docker-compose.yml down -t0 -v --remove-orphans
+gradle clean
+
+echo
+echo "Technik-Check für Gradle ERFOLGREICH"
#!/bin/bash
-IMAGE=juplo/technick-check:1.0-SNAPSHOT
-
-if [ "$1" = "cleanup" ]
-then
- docker compose -f docker/docker-compose.yml down -t0 -v --remove-orphans
- mvn clean
- exit
-fi
-
docker compose -f docker/docker-compose.yml up -d --remove-orphans kafka-1 kafka-2 kafka-3
docker compose -f docker/docker-compose.yml rm -svf technick-check
-if [[
- $(docker image ls -q $IMAGE) == "" ||
- "$1" = "build"
-]]
-then
- mvn clean install || exit
-else
- echo "Using image existing images:"
- docker image ls $IMAGE
-fi
+# Build mit Maven testen
+mvn clean install || exit
+# Starten des Docker-Setups testen
docker compose -f docker/docker-compose.yml up --remove-orphans setup || exit 1
-
+# Start des gebauten Images in Docker testen
docker compose -f docker/docker-compose.yml up -d technick-check
+
+# Aufräumen
+docker compose -f docker/docker-compose.yml down -t0 -v --remove-orphans
+mvn clean
+
+echo
+echo "Technik-Check für Maven ERFOLGREICH"