Skip to content

Commit 458c9eb

Browse files
committed
alpine: Make a new bootstrap to update to 3.16.9
This is the second step towards the bump of Alpine to 3.16.9. Package pkg/alpine-base was built with the minirootfs of 3.16.9 version. This commit uses the latest pkg/alpine-base as the base image and provides the changes to build pkg/alpine bumping it to 3.16.9. Once this package is published, it can be used as the base image for itself (pkg/alpine). PS: Changes are only applied to amd64 and arm64. Another base image (without changes) is used for riscv64. Signed-off-by: Renê de Souza Pinto <[email protected]>
1 parent c690975 commit 458c9eb

File tree

3 files changed

+20
-11
lines changed

3 files changed

+20
-11
lines changed

pkg/alpine/Dockerfile

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,26 @@
1-
# image was bootstraped using FROM lfedge/eve-alpine-base:fad44e3702708a8d044663a20fd98d933dddb41e AS cache
1+
# image was bootstraped using FROM lfedge/eve-alpine-base:353bf866797f6e60f91cbe1b00c439634adfcf13 AS cache
22
# to update please see https://github.com/lf-edge/eve/blob/master/docs/BUILD.md#how-to-update-eve-alpine-package
3-
FROM lfedge/eve-alpine:43c5a193374e44350e27fad7ad6fe28a929109b5 AS cache
3+
FROM lfedge/eve-alpine-base:353bf866797f6e60f91cbe1b00c439634adfcf13 AS cache
4+
5+
FROM lfedge/eve-alpine:b96ae7c5b776702cdc7596e3722e40cc0d353ad7 AS cache-riscv64
6+
FROM cache AS cache-amd64
7+
FROM cache AS cache-arm64
8+
# hadolint ignore=DL3006
9+
FROM cache-${TARGETARCH} AS cache-build
410

511
ARG ALPINE_VERSION=3.16
612
# this is only needed once, when this package
713
# is rebased on the new version of Alpine and
814
# you have to have FROM alpine:x.y.z above:
9-
# RUN apk update && apk upgrade -a
15+
RUN apk update && apk upgrade -a
1016

1117
# Copy Dockerfile so we can include it in the hash
1218
COPY Dockerfile abuild.conf /etc/
1319
COPY mirrors /tmp/mirrors/
1420
COPY build-cache.sh /bin/
1521

1622
# install abuild for signing (which requires gcc as well)
23+
# hadolint ignore=DL3018
1724
RUN apk add --no-cache abuild gcc sudo
1825

1926
# install a new key into /etc/apk/keys
@@ -42,9 +49,9 @@ RUN apk update
4249

4350
FROM lfedge/eve-alpine:591df01e581889c3027514c8a91feaca1c8ad49f AS compactor
4451

45-
COPY --from=cache /etc/apk/repositories* /etc/apk/
46-
COPY --from=cache /etc/apk/keys /etc/apk/keys/
47-
COPY --from=cache /mirror /mirror/
52+
COPY --from=cache-build /etc/apk/repositories* /etc/apk/
53+
COPY --from=cache-build /etc/apk/keys /etc/apk/keys/
54+
COPY --from=cache-build /mirror /mirror/
4855
COPY eve-alpine-deploy.sh go-compile.sh /bin/
4956

5057
RUN apk update && apk upgrade -a

pkg/alpine/build-cache.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ bail() {
88

99
[ "$#" -gt 2 ] || bail "Usage: $0 <alpine version> <path to the cache> [packages...]"
1010

11-
ALPINE_VERSION=$1
12-
13-
if [ "$ALPINE_VERSION" != "edge" ]; then
11+
if echo "$1" | grep -q edge; then
12+
ALPINE_VERSION=$1
13+
else
1414
ALPINE_VERSION=v$1
1515
fi
1616

pkg/alpine/mirrors/3.16/community

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ cereal
33
cni-plugins
44
fio
55
fmt
6-
hwinfo-libs
76
hwinfo
7+
hwinfo-libs
88
i2c-tools
99
i2c-tools-dev
1010
iw
1111
json-glib
1212
json-glib-dev
1313
libbpf
1414
libbpf-dev
15+
libgudev
1516
libgudev-dev
1617
libproc
1718
librados
@@ -26,6 +27,7 @@ libvirt-lxc
2627
libvirt-qemu
2728
libvncserver
2829
libvncserver-dev
30+
libx86emu
2931
pahole
3032
perf
3133
pkgconf
@@ -63,8 +65,8 @@ tpm2-tss-rc
6365
tpm2-tss-sys
6466
tpm2-tss-tcti-cmd
6567
tpm2-tss-tcti-device
68+
tpm2-tss-tctildr
6669
tpm2-tss-tcti-mssim
6770
tpm2-tss-tcti-pcap
6871
tpm2-tss-tcti-swtpm
69-
tpm2-tss-tctildr
7072
yq

0 commit comments

Comments
 (0)