From 98be629722a34561f0c01fb9130d72af26854156 Mon Sep 17 00:00:00 2001 From: Mikko Karjalainen Date: Wed, 27 Nov 2019 11:02:53 +0000 Subject: [PATCH 1/4] First cut: Build styxcore docker image with fabric8 plugin. --- Makefile | 6 +--- distribution/pom.xml | 59 +++++++++++++++++++++++++++++++++- pom.xml | 17 ++-------- system-tests/e2e-suite/pom.xml | 13 -------- 4 files changed, 61 insertions(+), 34 deletions(-) diff --git a/Makefile b/Makefile index 88e6f7a5a7..0458aca900 100644 --- a/Makefile +++ b/Makefile @@ -133,8 +133,4 @@ changelog: # Default configuration file: /styx/default-config/default.yml # docker-image: clean - mvn install -Prelease,linux -Dmaven.test.skip=true - mkdir -p ${DOCKER_CONTEXT} - cp `find distribution/target -maxdepth 1 -name "styx*linux-x86_64.zip"` ${DOCKER_CONTEXT}/styx.zip - cp docker/styx-image/* ${DOCKER_CONTEXT} - docker build -t styxcore:latest --build-arg STYX_IMAGE=styx.zip ${DOCKER_CONTEXT}/. + mvn clean verify -Prelease,linux,docker -Dmaven.test.skip=true diff --git a/distribution/pom.xml b/distribution/pom.xml index e3cda4aaaf..73c32803ec 100755 --- a/distribution/pom.xml +++ b/distribution/pom.xml @@ -1,5 +1,6 @@ - + com.hotels.styx styx-parent @@ -18,6 +19,8 @@ ${project.parent.basedir} true ${project.parent.basedir} + 11-jdk + ${project.version} @@ -133,4 +136,58 @@ + + + docker + + + + io.fabric8 + docker-maven-plugin + 0.31.0 + + + + install + + build + + + + + + + + styxcore + styxcore + + ${project.basedir}/../docker/styx-image/Dockerfile + ${project.basedir}/../docker/styx-image/ + + + + + ${project.basedir}/target/styx-1.0-SNAPSHOT-linux-x86_64.zip + + + + + + ${styxcore.docker.tag} + ${project.version} + + + maven/styx-1.0-SNAPSHOT-linux-x86_64.zip + 11-jdk + + + + + + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index f3f6946997..6108966345 100644 --- a/pom.xml +++ b/pom.xml @@ -66,6 +66,7 @@ libs-snapshot ${libs.snapshot.url} + Styx-Site ${site.url} @@ -734,22 +735,8 @@ -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=${project.build.directory}/failsafe-reports + false - - - - integration-test - verify - - - - failsafe-integration-tests - integration-test - - integration-test - - - diff --git a/system-tests/e2e-suite/pom.xml b/system-tests/e2e-suite/pom.xml index 21b615839f..faf0117e35 100644 --- a/system-tests/e2e-suite/pom.xml +++ b/system-tests/e2e-suite/pom.xml @@ -212,19 +212,6 @@ org.apache.maven.plugins maven-failsafe-plugin - - - localhost - - - - - - integration-test - verify - - - From 9f4e3594fb10f6ae5d6cf0f4e4630c763c42806f Mon Sep 17 00:00:00 2001 From: Mikko Karjalainen Date: Wed, 27 Nov 2019 11:21:06 +0000 Subject: [PATCH 2/4] Styx artifact name from variable. --- distribution/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distribution/pom.xml b/distribution/pom.xml index 73c32803ec..77d6d4ebb9 100755 --- a/distribution/pom.xml +++ b/distribution/pom.xml @@ -167,7 +167,7 @@ - ${project.basedir}/target/styx-1.0-SNAPSHOT-linux-x86_64.zip + ${project.basedir}/target/${artifact.finalName}.zip @@ -177,7 +177,7 @@ ${project.version} - maven/styx-1.0-SNAPSHOT-linux-x86_64.zip + maven/${artifact.finalName}.zip 11-jdk From c448bb4599fc4449ea884761b564cd5d1fb98cb3 Mon Sep 17 00:00:00 2001 From: Mikko Karjalainen Date: Wed, 27 Nov 2019 13:35:20 +0000 Subject: [PATCH 3/4] Configurable Styx docker image name. --- Makefile | 2 +- distribution/pom.xml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0458aca900..5c4d7d1b17 100644 --- a/Makefile +++ b/Makefile @@ -133,4 +133,4 @@ changelog: # Default configuration file: /styx/default-config/default.yml # docker-image: clean - mvn clean verify -Prelease,linux,docker -Dmaven.test.skip=true + mvn clean install -Prelease,linux,docker -Dmaven.test.skip=true diff --git a/distribution/pom.xml b/distribution/pom.xml index 77d6d4ebb9..66cb09455d 100755 --- a/distribution/pom.xml +++ b/distribution/pom.xml @@ -21,6 +21,7 @@ ${project.parent.basedir} 11-jdk ${project.version} + styxcore @@ -159,7 +160,7 @@ styxcore - styxcore + ${styxcore.docker.image} ${project.basedir}/../docker/styx-image/Dockerfile ${project.basedir}/../docker/styx-image/ From 8c9831ba1bee017161ff25a4eeaa3119694d37af Mon Sep 17 00:00:00 2001 From: Mikko Karjalainen Date: Thu, 28 Nov 2019 09:02:53 +0000 Subject: [PATCH 4/4] Address code review comments. --- Makefile | 2 +- distribution/pom.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 5c4d7d1b17..93a50d7014 100644 --- a/Makefile +++ b/Makefile @@ -133,4 +133,4 @@ changelog: # Default configuration file: /styx/default-config/default.yml # docker-image: clean - mvn clean install -Prelease,linux,docker -Dmaven.test.skip=true + mvn install -Prelease,linux,docker -Dmaven.test.skip=true diff --git a/distribution/pom.xml b/distribution/pom.xml index 66cb09455d..16aaf8a9c8 100755 --- a/distribution/pom.xml +++ b/distribution/pom.xml @@ -162,8 +162,8 @@ styxcore ${styxcore.docker.image} - ${project.basedir}/../docker/styx-image/Dockerfile - ${project.basedir}/../docker/styx-image/ + ${project.parent.basedir}/docker/styx-image/Dockerfile + ${project.parent.basedir}/docker/styx-image/