-
Notifications
You must be signed in to change notification settings - Fork 640
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(java17): use JRE17, run tests on JRE17, compile with JDK11
- Loading branch information
1 parent
ecdc0ff
commit ed20ad7
Showing
11 changed files
with
239 additions
and
42 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
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,60 @@ | ||
FROM alpine:3.16 | ||
LABEL maintainer="sig-platform@spinnaker.io" | ||
|
||
ENV KUSTOMIZE_VERSION=3.8.6 | ||
ENV KUSTOMIZE4_VERSION=4.5.5 | ||
ENV PACKER_VERSION=1.8.1 | ||
ENV HELMFILE_VERSION=0.153.1 | ||
|
||
|
||
ARG TARGETARCH | ||
|
||
WORKDIR /packer | ||
|
||
RUN apk --no-cache add --update bash wget curl openssl openjdk11-jre git openssh-client && \ | ||
wget https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PACKER_VERSION}_linux_${TARGETARCH}.zip && \ | ||
unzip packer_${PACKER_VERSION}_linux_${TARGETARCH}.zip && \ | ||
rm packer_${PACKER_VERSION}_linux_${TARGETARCH}.zip | ||
|
||
ENV PATH "/packer:$PATH" | ||
|
||
# Install Helm 3 | ||
RUN wget https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get-helm-3 && \ | ||
chmod +x get-helm-3 && \ | ||
./get-helm-3 && \ | ||
rm get-helm-3 && \ | ||
mv /usr/local/bin/helm /usr/local/bin/helm3 | ||
|
||
# Install Helm 2 | ||
RUN wget https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get && \ | ||
chmod +x get && \ | ||
./get --version v2.17.0 && \ | ||
rm get | ||
|
||
RUN mkdir kustomize && \ | ||
curl -s -L https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v${KUSTOMIZE_VERSION}/kustomize_v${KUSTOMIZE_VERSION}_linux_${TARGETARCH}.tar.gz|\ | ||
tar xvz -C kustomize/ && \ | ||
mv ./kustomize/kustomize /usr/local/bin/kustomize && \ | ||
rm -rf ./kustomize | ||
|
||
RUN mkdir kustomize && \ | ||
curl -s -L https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v${KUSTOMIZE4_VERSION}/kustomize_v${KUSTOMIZE4_VERSION}_linux_${TARGETARCH}.tar.gz|\ | ||
tar xvz -C kustomize/ && \ | ||
mv ./kustomize/kustomize /usr/local/bin/kustomize4 && \ | ||
rm -rf ./kustomize | ||
|
||
RUN mkdir helmfile && \ | ||
curl -s -L https://github.com/helmfile/helmfile/releases/download/v${HELMFILE_VERSION}/helmfile_${HELMFILE_VERSION}_linux_${TARGETARCH}.tar.gz|\ | ||
tar xvz -C helmfile/ && \ | ||
mv ./helmfile/helmfile /usr/local/bin/helmfile && \ | ||
rm -rf ./helmfile | ||
|
||
RUN addgroup -S -g 10111 spinnaker | ||
RUN adduser -S -G spinnaker -u 10111 spinnaker | ||
COPY rosco-web/build/install/rosco /opt/rosco | ||
COPY rosco-web/config /opt/rosco | ||
COPY halconfig/packer /opt/rosco/config/packer | ||
RUN mkdir -p /opt/rosco/plugins && chown -R spinnaker:nogroup /opt/rosco/plugins | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
FROM ubuntu:bionic | ||
LABEL maintainer="sig-platform@spinnaker.io" | ||
|
||
ENV KUSTOMIZE_VERSION=3.8.6 | ||
ENV KUSTOMIZE4_VERSION=4.5.5 | ||
ENV PACKER_VERSION=1.8.1 | ||
ENV HELMFILE_VERSION=0.153.1 | ||
|
||
ARG TARGETARCH | ||
|
||
WORKDIR /packer | ||
|
||
RUN apt-get update && apt-get -y install openjdk-11-jre-headless wget unzip curl git openssh-client && \ | ||
wget https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PACKER_VERSION}_linux_${TARGETARCH}.zip && \ | ||
unzip packer_${PACKER_VERSION}_linux_${TARGETARCH}.zip && \ | ||
rm packer_${PACKER_VERSION}_linux_${TARGETARCH}.zip | ||
|
||
ENV PATH "/packer:$PATH" | ||
|
||
# Install Helm 3 | ||
RUN wget https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get-helm-3 && \ | ||
chmod +x get-helm-3 && \ | ||
./get-helm-3 && \ | ||
rm get-helm-3 && \ | ||
mv /usr/local/bin/helm /usr/local/bin/helm3 | ||
|
||
# Install Helm 2 | ||
RUN wget https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get && \ | ||
chmod +x get && \ | ||
./get --version v2.17.0 && \ | ||
rm get | ||
|
||
RUN mkdir kustomize && \ | ||
curl -s -L https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v${KUSTOMIZE_VERSION}/kustomize_v${KUSTOMIZE_VERSION}_linux_${TARGETARCH}.tar.gz|\ | ||
tar xvz -C kustomize/ && \ | ||
mv ./kustomize/kustomize /usr/local/bin/kustomize && \ | ||
rm -rf ./kustomize | ||
|
||
RUN mkdir kustomize && \ | ||
curl -s -L https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v${KUSTOMIZE4_VERSION}/kustomize_v${KUSTOMIZE4_VERSION}_linux_${TARGETARCH}.tar.gz|\ | ||
tar xvz -C kustomize/ && \ | ||
mv ./kustomize/kustomize /usr/local/bin/kustomize4 && \ | ||
rm -rf ./kustomize | ||
|
||
RUN mkdir helmfile && \ | ||
curl -s -L https://github.com/helmfile/helmfile/releases/download/v${HELMFILE_VERSION}/helmfile_${HELMFILE_VERSION}_linux_${TARGETARCH}.tar.gz|\ | ||
tar xvz -C helmfile/ && \ | ||
mv ./helmfile/helmfile /usr/local/bin/helmfile && \ | ||
rm -rf ./helmfile | ||
|
||
RUN adduser --system --uid 10111 --group spinnaker | ||
COPY rosco-web/build/install/rosco /opt/rosco | ||
COPY rosco-web/config /opt/rosco | ||
COPY halconfig/packer /opt/rosco/config/packer | ||
RUN mkdir -p /opt/rosco/plugins && chown -R spinnaker:nogroup /opt/rosco/plugins | ||
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
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