Skip to content

Commit

Permalink
docker tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tcurdt committed Sep 18, 2024
1 parent f696164 commit eaac84d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions docker.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
#!/bin/sh

MVN=3.5.4
JDKS="jdk-9-slim jdk-10-slim jdk-11-slim"
TAGS="3.9-eclipse-temurin-21-alpine"

for JDK in $JDKS; do
echo "testing ${MVN}-${JDK}"
for TAG in $TAGS; do
echo "testing ${TAG}"

docker run -it --rm --name jdependency-${JDK} \
docker run -it --rm --name jdependency-${TAG} \
-v "$(pwd)":/usr/src/mymaven \
-w /usr/src/mymaven \
maven:${MVN}-${JDK} \
maven:${TAG} \
mvn clean test

done
Expand Down

0 comments on commit eaac84d

Please sign in to comment.