From 351f9cbc00515416ed9b9d8927649e8b08bc8d6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edd=C3=BA=20Mel=C3=A9ndez?= Date: Wed, 22 Jan 2020 18:06:09 -0300 Subject: [PATCH] Add support for build and push docker image --- .gitignore | 1 + pom.xml | 1 + .../foodorder.avro | Bin 267 -> 0 bytes spring-cloud-schema-registry-server/Dockerfile | 7 +++++++ spring-cloud-schema-registry-server/pom.xml | 16 ++++++++++++++++ 5 files changed, 25 insertions(+) delete mode 100644 spring-cloud-schema-registry-client/foodorder.avro create mode 100644 spring-cloud-schema-registry-server/Dockerfile diff --git a/.gitignore b/.gitignore index 214f0bc..6f00838 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ dump.rdb .apt_generated artifacts **/dependency-reduced-pom.xml +spring-cloud-schema-registry-client/foodorder.avro diff --git a/pom.xml b/pom.xml index f0ef9f3..1b8d996 100644 --- a/pom.xml +++ b/pom.xml @@ -27,6 +27,7 @@ true true true + 1.4.13 spring-cloud-schema-registry-core diff --git a/spring-cloud-schema-registry-client/foodorder.avro b/spring-cloud-schema-registry-client/foodorder.avro deleted file mode 100644 index 905ba426a5193409d312d3be2035997c4211f00d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 267 zcmaKmyA8rX5JdSzGywSpMCb}I5fUOLMM4DU+qF5sUTgOZLWqzW=zu1WpaaUF4$jCB z5D@O{%$u3Ut7fZfwoF>=5;OB?AC%u0s3OH^i9roiZnEm05W$oIxt63bw$h1HEd{$g zO*lAr#A|IgR6>o^Z#+V9S2{REyYuYJOT&- j`DYEYk;f>OUEv*7tv}esvGMGmX2UyN;(q6*d)M;|oCsc6 diff --git a/spring-cloud-schema-registry-server/Dockerfile b/spring-cloud-schema-registry-server/Dockerfile new file mode 100644 index 0000000..3df6f52 --- /dev/null +++ b/spring-cloud-schema-registry-server/Dockerfile @@ -0,0 +1,7 @@ +FROM springcloud/openjdk:latest + +ARG JAR_FILE + +ADD target/${JAR_FILE} spring-cloud-schema-registry.jar + +ENTRYPOINT exec java -Djava.security.egd=file:/dev/./urandom -jar /spring-cloud-schema-registry.jar diff --git a/spring-cloud-schema-registry-server/pom.xml b/spring-cloud-schema-registry-server/pom.xml index 2238985..c8e29ab 100644 --- a/spring-cloud-schema-registry-server/pom.xml +++ b/spring-cloud-schema-registry-server/pom.xml @@ -11,6 +11,10 @@ 1.0.2.BUILD-SNAPSHOT + + springcloud + + org.springframework.cloud @@ -43,6 +47,18 @@ org.springframework.boot spring-boot-maven-plugin + + com.spotify + dockerfile-maven-plugin + ${dockerfile-maven-plugin.version} + + ${docker.image.prefix}/${project.artifactId} + ${project.version} + + ${project.build.finalName}.jar + + +