-
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install stubs for tools missing arm64 support (#841)
- Loading branch information
Showing
5 changed files
with
41 additions
and
10 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 |
---|---|---|
|
@@ -109,13 +109,19 @@ ENV KOPS_CLUSTER_NAME=example.foo.bar | |
USER root | ||
|
||
# install the cloudposse alpine repository | ||
ADD https://apk.cloudposse.com/[email protected] /etc/apk/keys/ | ||
RUN echo "@cloudposse https://apk.cloudposse.com/3.13/vendor" >> /etc/apk/repositories | ||
RUN apk add --no-cache bash curl && \ | ||
curl -1sLf \ | ||
'https://dl.cloudsmith.io/public/cloudposse/packages/setup.alpine.sh' \ | ||
| bash && \ | ||
printf "@cloudposse %s\n\n" "$(grep -h -v '^[@#]' /etc/apk/repositories | grep -F "public/cloudposse/packages" | head -1)" \ | ||
>> /etc/apk/repositories | ||
|
||
# Install the @community repo tag (community repo is already installed, but not tagged as @community) | ||
RUN printf "@community %s\n" "$(grep -E 'alpine/v[^/]+/community' /etc/apk/repositories | head -1)" >> /etc/apk/repositories | ||
|
||
# Install the @testing repo tag | ||
RUN echo "@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories | ||
|
||
# Use TLS for alpine default repos | ||
RUN sed -i 's|http://dl-cdn.alpinelinux.org|https://alpine.global.ssl.fastly.net|g' /etc/apk/repositories && \ | ||
echo "@testing https://alpine.global.ssl.fastly.net/alpine/edge/testing" >> /etc/apk/repositories && \ | ||
echo "@community https://alpine.global.ssl.fastly.net/alpine/edge/community" >> /etc/apk/repositories | ||
|
||
########################################################################################## | ||
# See Dockerfile.options for how to install `glibc` for greater compatibility, including # | ||
|
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,9 @@ | ||
# These are packages that are only supported on amd64, | ||
# typically because they have not been updated since 2021. | ||
awless@cloudposse | ||
cfssl@cloudposse | ||
emailcli@cloudposse | ||
goofys@cloudposse | ||
rakkess@cloudposse | ||
tfenv@cloudposse | ||
tfmask@cloudposse |
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,4 @@ | ||
#!/bin/bash | ||
|
||
printf "$(tput setaf 1)%s is not supported on this platform (arm64)$(tput setaf 0)\n" "$(basename "$0")" >&2 | ||
exit 1 |