-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(dockerfiles): add Dockerfiles for container images (#1400)
* 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
1 parent
0880804
commit 0c3f500
Showing
3 changed files
with
28 additions
and
0 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 |
---|---|---|
@@ -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 |
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 |
---|---|---|
@@ -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"] |
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 |
---|---|---|
@@ -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"] |