Skip to content

Commit

Permalink
chore(dockerfiles): add Dockerfiles for container images (#1400)
Browse files Browse the repository at this point in the history
* chore(dockerfiles): add Dockerfiles for container images

The number of dockerfiles introduced matches one to one to what
we have for other spinnaker services.

* remove java8 dockerfiles and update group / user

* renaming the binary for the docker files

This matches what io.spinnaker.package produces after
we merge #1410

Co-authored-by: Luis Pollo <1323478+luispollo@users.noreply.github.com>
  • Loading branch information
nimakaviani and luispollo authored Aug 12, 2020
1 parent 0880804 commit 0c3f500
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile.compile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM ubuntu:bionic
MAINTAINER sig-platform@spinnaker.io
RUN apt-get update && apt-get install -y \
openjdk-8-jdk \
openjdk-11-jdk \
&& rm -rf /var/lib/apt/lists/*
ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64
ENV JDK_18 /usr/lib/jvm/java-8-openjdk-amd64
ENV GRADLE_USER_HOME /workspace/.gradle
ENV GRADLE_OPTS -Xmx6g
CMD ./gradlew --no-daemon -PenableCrossCompilerPlugin=true keel-web:installDist -x test
9 changes: 9 additions & 0 deletions Dockerfile.slim
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM alpine:3.11
MAINTAINER sig-platform@spinnaker.io
RUN apk --no-cache add --update bash openjdk11-jre
RUN addgroup -S -g 10111 spinnaker
RUN adduser -D -S spinnaker -u 10111 -G spinnaker
COPY keel-web/build/install/keel /opt/keel
RUN mkdir -p /opt/keel/plugins && chown -R spinnaker:nogroup /opt/keel/plugins
USER spinnaker
CMD ["/opt/keel/bin/keel"]
8 changes: 8 additions & 0 deletions Dockerfile.ubuntu
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM ubuntu:bionic
MAINTAINER sig-platform@spinnaker.io
RUN apt-get update && apt-get -y install openjdk-11-jre-headless wget
RUN adduser --system --uid 10111 --group spinnaker
COPY keel-web/build/install/keel /opt/keel
RUN mkdir -p /opt/keel/plugins && chown -R spinnaker:nogroup /opt/keel/plugins
USER spinnaker
CMD ["/opt/keel/bin/keel"]

0 comments on commit 0c3f500

Please sign in to comment.