Skip to content

Commit

Permalink
bump alpine to 3.14, remove go version hack
Browse files Browse the repository at this point in the history
Signed-off-by: Avi Deitcher <[email protected]>
  • Loading branch information
deitch committed Nov 7, 2021
1 parent 7475eb4 commit cc57d67
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 15 deletions.
15 changes: 2 additions & 13 deletions tools/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.13 AS mirror
FROM alpine:3.14 AS mirror

# update base image
RUN apk update && apk upgrade -a
Expand All @@ -12,17 +12,6 @@ RUN cat /tmp/packages.$(uname -m) >> /tmp/packages && \
mkdir -p /mirror/$(apk --print-arch) && \
apk fetch --recursive -o /mirror/$(apk --print-arch) $(apk info; cat /tmp/packages)

# these are the repository-specific ones, if they exist
RUN for repopkgs in /tmp/packages.repo.*; do \
repo=${repopkgs##*repo.} && archspecific=/tmp/packages.$(uname -m).repo.${repo} && mergedfile=/tmp/packages.merged.${repo} && repofile=/tmp/repositories.${repo} && \
cachedir=/tmp/cache/${repo} && \
mkdir -p ${cachedir} && \
cp ${repopkgs} ${mergedfile} && \
if [ -f ${archspecific} ]; then cat ${archspecific} >> ${mergedfile}; fi && \
sed "s#alpine/[^\/]*/#alpine/${repo}/#g" /etc/apk/repositories > ${repofile} && \
apk update --repositories-file=${repofile} --cache-dir ${cachedir} && \
apk fetch --repositories-file=${repofile} --cache-dir ${cachedir} --recursive -o /mirror/$(apk --print-arch) $(cat ${mergedfile}); done

# install abuild and sudo for signing
RUN apk add --no-cache abuild sudo

Expand Down Expand Up @@ -83,7 +72,7 @@ RUN set -e && \
cp iucode_tool /iucode_tool; \
fi

FROM alpine:3.13
FROM alpine:3.14

ARG TARGETARCH

Expand Down
1 change: 1 addition & 0 deletions tools/alpine/packages
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ gettext-dev
git
gmp-dev
gnupg
go
grep
hvtools
installkernel
Expand Down
1 change: 0 additions & 1 deletion tools/alpine/packages.repo.edge

This file was deleted.

1 change: 0 additions & 1 deletion tools/alpine/packages.x86_64
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
gummiboot
libunwind-dev
luajit-dev
open-vm-tools
Expand Down

0 comments on commit cc57d67

Please sign in to comment.