Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Commit 17b0c90

Browse files
authored
Pin platform for Mac M1/M2 support (#495)
1 parent 075ad89 commit 17b0c90

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

config/Dockerfile

+6-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
##################################################################################################################################################
66
# STARTING WITH ALL THE SAP TOOLS FIRST
77
##################################################################################################################################################
8-
FROM alpine:3 AS base
8+
FROM --platform=linux/amd64 alpine:3 AS base
99
ENV ARCH=linux-amd64
1010
ENV TOOLS_URL=tools.hana.ondemand.com
1111
ENV CPCLI_URL=cpcli.cf.eu10.hana.ondemand.com
@@ -20,7 +20,7 @@ RUN echo "http://dl-4.alpinelinux.org/alpine/latest-stable/community" >> /etc/ap
2020
##########################################################################################
2121
# Retrieve the CloudFoundry CLI
2222
##########################################################################################
23-
FROM cloudfoundry/cli:8.6.1 as cf_cli
23+
FROM --platform=linux/amd64 cloudfoundry/cli:8.6.1 as cf_cli
2424

2525
##########################################################################################
2626
## Retrieve the SAP btp CLI
@@ -84,7 +84,7 @@ RUN curl -fsSL --url "https://git.sr.ht/~gpanders/ijq/refs/download/v${VER_IJQ}/
8484
########################################################################################
8585
# Bring the tools together into the final base stage
8686
########################################################################################
87-
FROM alpine:3 as tools
87+
FROM --platform=linux/amd64 alpine:3 as tools
8888
WORKDIR /usr/local/bin
8989
COPY --from=cf_cli /usr/local/bin/cf8 .
9090
COPY --from=btp_cli /tmp/tools/ .
@@ -97,7 +97,7 @@ ARG BTPSA_VERSION_GIT_ARG=default
9797
##################################################################################################################################################
9898
# Now putting all pieces together
9999
##################################################################################################################################################
100-
FROM python:3.10-alpine3.16 AS final_build
100+
FROM --platform=linux/amd64 python:3.10-alpine3.16 AS final_build
101101
ENV USERNAME=user
102102
ENV HOME_FOLDER /home/$USERNAME
103103
ENV LIBS_FOLDER $HOME_FOLDER/libs
@@ -132,6 +132,7 @@ RUN adduser \
132132
nodejs \
133133
npm \
134134
sudo \
135+
libc6-compat \
135136
&& pip install --no-cache-dir -r /tmp/pip-tmp/requirements.txt \
136137
&& rm -rf /tmp/pip-tmp \
137138
## Set the right timezone in the container image
@@ -166,7 +167,7 @@ COPY --chown=root:root --from=tools /usr/local/bin/fx /usr/local/bin
166167
COPY --chown=root:root --from=tools /usr/local/bin/ijq /usr/local/bin
167168

168169
## Install the CF plugin for deploying MTAs on Cloudfoundry
169-
RUN cf install-plugin -f https://github.com/cloudfoundry-incubator/multiapps-cli-plugin/releases/latest/download/multiapps-plugin.linux32
170+
RUN cf install-plugin -f https://github.com/cloudfoundry-incubator/multiapps-cli-plugin/releases/latest/download/multiapps-plugin.linux64
170171

171172
## Install krew and the oidc-login plugin
172173
RUN OS="$(uname | tr '[:upper:]' '[:lower:]')" \

0 commit comments

Comments
 (0)