diff --git a/Dockerfile.compile b/Dockerfile.compile new file mode 100644 index 0000000000..b4cd8459ce --- /dev/null +++ b/Dockerfile.compile @@ -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 diff --git a/Dockerfile.slim b/Dockerfile.slim new file mode 100644 index 0000000000..5acbb3de58 --- /dev/null +++ b/Dockerfile.slim @@ -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"] diff --git a/Dockerfile.ubuntu b/Dockerfile.ubuntu new file mode 100644 index 0000000000..9fa3e7bb6e --- /dev/null +++ b/Dockerfile.ubuntu @@ -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"]