Skip to content

Commit

Permalink
Add support for alpine 3.17, remove alpine 3.15
Browse files Browse the repository at this point in the history
* Remove nsswitch.conf setup since alpine 3.16 and above contain
  nsswitch.conf by default.

Signed-off-by: Kyle Squizzato <ksquizzato@mirantis.com>
  • Loading branch information
squizzi committed Nov 29, 2022
1 parent 326acd5 commit 15fee71
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 56 deletions.
10 changes: 0 additions & 10 deletions 1.18/alpine3.16/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 1 addition & 11 deletions 1.18/alpine3.15/Dockerfile → 1.18/alpine3.17/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions 1.19/alpine3.16/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 1 addition & 11 deletions 1.19/alpine3.15/Dockerfile → 1.19/alpine3.17/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions Dockerfile-linux.template
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,6 @@ FROM alpine:{{ alpine_version }}

RUN apk add --no-cache ca-certificates

# ensure that nsswitch.conf is set up for Go's "netgo" implementation
# - https://github.com/golang/go/blob/go1.19.3/src/net/conf.go#L227-L303
# - docker run --rm debian grep '^hosts:' /etc/nsswitch.conf
# Alpine 3.16 includes nsswitch.conf
RUN set -eux; \
if [ -e /etc/nsswitch.conf ]; then \
grep '^hosts: files dns' /etc/nsswitch.conf; \
else \
echo 'hosts: files dns' > /etc/nsswitch.conf; \
fi
{{ ) else ( -}}
FROM buildpack-deps:{{ env.variant }}-scm

Expand Down
4 changes: 2 additions & 2 deletions versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@
"variants": [
"bullseye",
"buster",
"alpine3.17",
"alpine3.16",
"alpine3.15",
"windows/windowsservercore-ltsc2022",
"windows/windowsservercore-1809",
"windows/nanoserver-ltsc2022",
Expand Down Expand Up @@ -320,8 +320,8 @@
"variants": [
"bullseye",
"buster",
"alpine3.17",
"alpine3.16",
"alpine3.15",
"windows/windowsservercore-ltsc2022",
"windows/windowsservercore-1809",
"windows/nanoserver-ltsc2022",
Expand Down
4 changes: 2 additions & 2 deletions versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ for version in "${versions[@]}"; do
"bullseye",
"buster",
(
"3.16",
"3.15"
"3.17",
"3.16"
| "alpine" + .),
if .arches | has("windows-amd64") then
(
Expand Down

0 comments on commit 15fee71

Please sign in to comment.