-
Notifications
You must be signed in to change notification settings - Fork 705
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(build): Build docker images for multiple architectures (#1964)
Motivation: Allow running & experimenting with Spinnaker locally on Macbok M1. Relevant docs: https://github.com/docker/build-push-action/blob/master/docs/advanced/multi-platform.md Similar MR: spinnaker/rosco#886 Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
75ac2e5
commit 1fd610a
Showing
5 changed files
with
28 additions
and
9 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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
FROM alpine:3.11 | ||
LABEL maintainer="[email protected]" | ||
ARG TARGETARCH | ||
|
||
ENV KUBECTL_RELEASE=1.15.10 | ||
ENV AWS_BINARY_RELEASE_DATE=2020-02-22 | ||
|
@@ -21,11 +22,11 @@ RUN echo '#!/usr/bin/env bash' > /usr/local/bin/hal && \ | |
echo '/opt/halyard/bin/hal "$@"' >> /usr/local/bin/hal && \ | ||
chmod +x /usr/local/bin/hal | ||
|
||
RUN curl -f -LO --retry 3 --retry-delay 3 https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_RELEASE}/bin/linux/amd64/kubectl && \ | ||
RUN curl -f -LO --retry 3 --retry-delay 3 https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_RELEASE}/bin/linux/${TARGETARCH}/kubectl && \ | ||
chmod +x ./kubectl && \ | ||
mv ./kubectl /usr/local/bin/kubectl | ||
|
||
RUN curl -f -o /usr/local/bin/aws-iam-authenticator https://amazon-eks.s3-us-west-2.amazonaws.com/${KUBECTL_RELEASE}/${AWS_BINARY_RELEASE_DATE}/bin/linux/amd64/aws-iam-authenticator && \ | ||
RUN curl -f -o /usr/local/bin/aws-iam-authenticator https://amazon-eks.s3-us-west-2.amazonaws.com/${KUBECTL_RELEASE}/${AWS_BINARY_RELEASE_DATE}/bin/linux/${TARGETARCH}/aws-iam-authenticator && \ | ||
chmod +x /usr/local/bin/aws-iam-authenticator | ||
|
||
RUN addgroup -S -g 1000 spinnaker | ||
|
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
FROM ubuntu:bionic | ||
LABEL maintainer="[email protected]" | ||
ARG TARGETARCH | ||
|
||
ENV KUBECTL_RELEASE=1.15.10 | ||
ENV AWS_BINARY_RELEASE_DATE=2020-02-22 | ||
|
@@ -17,11 +18,11 @@ RUN echo '#!/usr/bin/env bash' > /usr/local/bin/hal && \ | |
echo '/opt/halyard/bin/hal "$@"' >> /usr/local/bin/hal && \ | ||
chmod +x /usr/local/bin/hal | ||
|
||
RUN curl -f -LO --retry 3 --retry-delay 3 https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_RELEASE}/bin/linux/amd64/kubectl && \ | ||
RUN curl -f -LO --retry 3 --retry-delay 3 https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_RELEASE}/bin/linux/${TARGETARCH}/kubectl && \ | ||
chmod +x ./kubectl && \ | ||
mv ./kubectl /usr/local/bin/kubectl | ||
|
||
RUN curl -f -o /usr/local/bin/aws-iam-authenticator https://amazon-eks.s3-us-west-2.amazonaws.com/${KUBECTL_RELEASE}/${AWS_BINARY_RELEASE_DATE}/bin/linux/amd64/aws-iam-authenticator && \ | ||
RUN curl -f -o /usr/local/bin/aws-iam-authenticator https://amazon-eks.s3-us-west-2.amazonaws.com/${KUBECTL_RELEASE}/${AWS_BINARY_RELEASE_DATE}/bin/linux/${TARGETARCH}/aws-iam-authenticator && \ | ||
chmod +x /usr/local/bin/aws-iam-authenticator | ||
|
||
RUN adduser --system --uid 1000 --group spinnaker | ||
|