forked from spinnaker/rosco
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(java11): Switch the default containers to use Java 11. (spinnak…
- Loading branch information
1 parent
41a7fbe
commit e884930
Showing
4 changed files
with
61 additions
and
2 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,30 @@ | ||
FROM alpine:3.11 | ||
MAINTAINER [email protected] | ||
COPY --from=compile /compiled_sources/rosco-web/build/install/rosco /opt/rosco | ||
COPY --from=compile /compiled_sources/rosco-web/config /opt/rosco | ||
COPY --from=compile /compiled_sources/rosco-web/config/packer /opt/rosco/config/packer | ||
|
||
WORKDIR /packer | ||
|
||
RUN apk --no-cache add --update bash wget curl openssl openjdk8-jre && \ | ||
wget https://releases.hashicorp.com/packer/1.4.4/packer_1.4.4_linux_amd64.zip && \ | ||
unzip packer_1.4.4_linux_amd64.zip && \ | ||
rm packer_1.4.4_linux_amd64.zip | ||
|
||
ENV PATH "/packer:$PATH" | ||
|
||
RUN wget https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get && \ | ||
chmod +x get && \ | ||
./get && \ | ||
rm get | ||
|
||
RUN mkdir kustomize && \ | ||
curl -s -L https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v3.3.0/kustomize_v3.3.0_linux_amd64.tar.gz |\ | ||
tar xvz -C kustomize/ | ||
|
||
ENV PATH "kustomize:$PATH" | ||
|
||
RUN adduser -D -S spinnaker | ||
USER spinnaker | ||
CMD ["/opt/rosco/bin/rosco"] | ||
|
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
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,29 @@ | ||
FROM ubuntu:bionic | ||
MAINTAINER [email protected] | ||
COPY --from=compile /compiled_sources/rosco-web/build/install/rosco /opt/rosco | ||
COPY --from=compile /compiled_sources/rosco-web/config /opt/rosco | ||
COPY --from=compile /compiled_sources/rosco-web/config/packer /opt/rosco/config/packer | ||
|
||
WORKDIR /packer | ||
|
||
RUN apt-get update && apt-get -y install openjdk-8-jre-headless wget unzip curl && \ | ||
wget https://releases.hashicorp.com/packer/1.4.4/packer_1.4.4_linux_amd64.zip && \ | ||
unzip packer_1.4.4_linux_amd64.zip && \ | ||
rm packer_1.4.4_linux_amd64.zip | ||
|
||
ENV PATH "/packer:$PATH" | ||
|
||
RUN wget https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get && \ | ||
chmod +x get && \ | ||
./get && \ | ||
rm get | ||
|
||
RUN mkdir kustomize && \ | ||
curl -s -L https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v3.3.0/kustomize_v3.3.0_linux_amd64.tar.gz |\ | ||
tar xvz -C kustomize/ | ||
|
||
ENV PATH "kustomize:$PATH" | ||
|
||
RUN adduser --disabled-login --system spinnaker | ||
USER spinnaker | ||
CMD ["/opt/rosco/bin/rosco"] |