From 225bbae70f39a4de0d0ed364e970deb4ee8f0c0d Mon Sep 17 00:00:00 2001 From: Michael Plump Date: Mon, 24 Feb 2020 21:31:03 -0500 Subject: [PATCH] chore(build): Update Dockerfiles for new cloudbuild configs (#713) * chore(build): Update Dockerfiles for new cloudbuild configs See spinnaker/buildtool#14 * chore(dockerfile): use openjdk:8 instead of rolling our own --- Dockerfile.compile | 11 +++++------ Dockerfile.java8 | 4 ++-- Dockerfile.slim | 4 ++-- Dockerfile.ubuntu | 4 ++-- Dockerfile.ubuntu-java8 | 6 +++--- 5 files changed, 14 insertions(+), 15 deletions(-) diff --git a/Dockerfile.compile b/Dockerfile.compile index c9edfef70..e2bd78214 100644 --- a/Dockerfile.compile +++ b/Dockerfile.compile @@ -1,6 +1,5 @@ -FROM gcr.io/spinnaker-marketplace/gradle_cache -MAINTAINER delivery-engineering@netflix.com -ENV GRADLE_USER_HOME /gradle_cache/.gradle -COPY . compiled_sources -WORKDIR compiled_sources -RUN ./gradlew --no-daemon front50-web:installDist -x test \ No newline at end of file +FROM openjdk:8 +MAINTAINER sig-platform@spinnaker.io +ENV GRADLE_USER_HOME /workspace/.gradle +ENV GRADLE_OPTS -Xmx2048m +CMD ./gradlew --no-daemon front50-web:installDist -x test diff --git a/Dockerfile.java8 b/Dockerfile.java8 index 436454766..cf8777eac 100644 --- a/Dockerfile.java8 +++ b/Dockerfile.java8 @@ -1,6 +1,6 @@ FROM alpine:3.11 -MAINTAINER delivery-engineering@netflix.com -COPY --from=compile /compiled_sources/front50-web/build/install/front50 /opt/front50 +MAINTAINER sig-platform@spinnaker.io +COPY front50-web/build/install/front50 /opt/front50 RUN apk --no-cache add --update bash openjdk8-jre RUN adduser -D -S spinnaker USER spinnaker diff --git a/Dockerfile.slim b/Dockerfile.slim index f23c77eed..062d80adf 100644 --- a/Dockerfile.slim +++ b/Dockerfile.slim @@ -1,6 +1,6 @@ FROM alpine:3.11 -MAINTAINER delivery-engineering@netflix.com -COPY --from=compile /compiled_sources/front50-web/build/install/front50 /opt/front50 +MAINTAINER sig-platform@spinnaker.io +COPY front50-web/build/install/front50 /opt/front50 RUN apk --no-cache add --update bash openjdk11-jre RUN adduser -D -S spinnaker USER spinnaker diff --git a/Dockerfile.ubuntu b/Dockerfile.ubuntu index 4f4193009..829b18fab 100644 --- a/Dockerfile.ubuntu +++ b/Dockerfile.ubuntu @@ -1,6 +1,6 @@ FROM ubuntu:bionic -MAINTAINER delivery-engineering@netflix.com -COPY --from=compile /compiled_sources/front50-web/build/install/front50 /opt/front50 +MAINTAINER sig-platform@spinnaker.io +COPY front50-web/build/install/front50 /opt/front50 RUN apt-get update && apt-get -y install openjdk-11-jre-headless wget RUN adduser --disabled-login --system spinnaker USER spinnaker diff --git a/Dockerfile.ubuntu-java8 b/Dockerfile.ubuntu-java8 index 3940e4832..779aa7468 100644 --- a/Dockerfile.ubuntu-java8 +++ b/Dockerfile.ubuntu-java8 @@ -1,7 +1,7 @@ FROM ubuntu:bionic -MAINTAINER delivery-engineering@netflix.com -COPY --from=compile /compiled_sources/front50-web/build/install/front50 /opt/front50 +MAINTAINER sig-platform@spinnaker.io +COPY front50-web/build/install/front50 /opt/front50 RUN apt-get update && apt-get -y install openjdk-8-jre-headless wget RUN adduser --disabled-login --system spinnaker USER spinnaker -CMD ["/opt/front50/bin/front50"] \ No newline at end of file +CMD ["/opt/front50/bin/front50"]