forked from spinnaker/echo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(build): Update Dockerfiles for new cloudbuild configs
- Loading branch information
Showing
5 changed files
with
23 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
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 echo-web:installDist -x test | ||
FROM ubuntu:eoan | ||
MAINTAINER sig-platform@spinnaker.io | ||
|
||
RUN apt-get update \ | ||
&& apt-get -y upgrade \ | ||
&& apt-get install -y \ | ||
openjdk-8-jdk-headless \ | ||
&& apt-get clean | ||
|
||
ENV GRADLE_USER_HOME /workspace/.gradle | ||
ENV GRADLE_OPTS -Xmx2048m | ||
CMD ./gradlew --no-daemon echo-web:installDist -x test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# Not using the alpine image because it lacks a package gRPC needed to establish pub/sub listeners. | ||
FROM openjdk:8 | ||
MAINTAINER delivery-engineering@netflix.com | ||
COPY --from=compile /compiled_sources/echo-web/build/install/echo /opt/echo | ||
MAINTAINER sig-platform@spinnaker.io | ||
COPY echo-web/build/install/echo /opt/echo | ||
|
||
RUN adduser --disabled-login --system spinnaker | ||
USER spinnaker | ||
CMD ["/opt/echo/bin/echo"] | ||
CMD ["/opt/echo/bin/echo"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
|
||
FROM ubuntu:bionic | ||
MAINTAINER delivery-engineering@netflix.com | ||
COPY --from=compile /compiled_sources/echo-web/build/install/echo /opt/echo | ||
MAINTAINER sig-platform@spinnaker.io | ||
COPY echo-web/build/install/echo /opt/echo | ||
RUN apt-get update && apt-get -y install openjdk-11-jre-headless wget | ||
RUN adduser --disabled-login --system spinnaker | ||
USER spinnaker | ||
CMD ["/opt/echo/bin/echo"] | ||
CMD ["/opt/echo/bin/echo"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
|
||
FROM ubuntu:bionic | ||
MAINTAINER delivery-engineering@netflix.com | ||
COPY --from=compile /compiled_sources/echo-web/build/install/echo /opt/echo | ||
MAINTAINER sig-platform@spinnaker.io | ||
COPY echo-web/build/install/echo /opt/echo | ||
RUN apt-get update && apt-get -y install openjdk-8-jre-headless wget | ||
RUN adduser --disabled-login --system spinnaker | ||
USER spinnaker | ||
CMD ["/opt/echo/bin/echo"] | ||
CMD ["/opt/echo/bin/echo"] |