-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: use automatic platform args #436
Conversation
@@ -2,6 +2,7 @@ FROM alpine:3.12 | |||
LABEL MAINTAINER="Screwdriver Team <screwdriver.cd>" | |||
|
|||
ARG TARGETOS TARGETARCH | |||
RUN echo "Building for ${TARGETOS}_${TARGETARCH}" | |||
|
|||
WORKDIR /opt/sd | |||
RUN set -x \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
x86
&& chmod +x /usr/local/bin/dumb-init \ | ||
&& cp /usr/local/bin/dumb-init /opt/sd/dumb-init \ | ||
# Install Habitat | ||
&& mkdir -p /hab/bin /opt/sd/bin \ | ||
# Download Habitat Binary | ||
&& wget -O hab.tar.gz 'https://packages.chef.io/files/stable/habitat/0.79.1/hab-x86_64-linux.tar.gz' \ | ||
&& wget -O hab.tar.gz "https://packages.chef.io/files/stable/habitat/0.79.1/hab-x86_64-linux.tar.gz" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hab wont work
@@ -109,19 +110,19 @@ RUN set -x \ | |||
# https://github.com/screwdriver-cd/artifact-bookend/blob/master/commands.txt | |||
&& /hab/bin/hab pkg install core/curl/7.54.1 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hab wont work
Context
Screwdriver needs to support arm64 containers for building
Objective
This PR updates dockerfile to read the ARGS
References
License
I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.