Skip to content

Commit f741093

Browse files
Updates to Alpine 3.21.0 (#49)
Signed-off-by: Adrian Cole <[email protected]>
1 parent 2697595 commit f741093

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# When updating, update the README and the alpine_version ARG
1010
# * Use current version from https://alpinelinux.org/downloads/
1111
# * ARGs repeat because Dockerfile ARGs are layer specific but will reuse the value defined here.
12-
ARG alpine_version=3.20.3
12+
ARG alpine_version=3.21.0
1313

1414
# We copy files from the context into a scratch container first to avoid a problem where docker and
1515
# docker-compose don't share layer hashes https://github.com/docker/compose/issues/883 normally.
@@ -20,7 +20,7 @@ COPY . /code/
2020

2121
# See from a previously published version to avoid pulling from Docker Hub (docker.io)
2222
# This version is only used to install the real version
23-
FROM ghcr.io/openzipkin/alpine:3.20.2 AS install
23+
FROM ghcr.io/openzipkin/alpine:3.20.3 AS install
2424

2525
WORKDIR /code
2626
# Conditions aren't supported in Dockerfile instructions, so we copy source even if it isn't used.
@@ -56,7 +56,7 @@ RUN \
5656
# will throw UnknownHostException as the local hostname isn't in DNS.
5757
echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf && \
5858
#
59-
# Exclusively use edge repos to get recent packages, but avoid conflicts with 3.20
59+
# Exclusively use edge repos to get recent packages, but avoid conflicts with 3.21
6060
echo 'https://dl-cdn.alpinelinux.org/alpine/edge/main' > /etc/apk/repositories && \
6161
echo 'https://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories && \
6262
echo 'https://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories && \
@@ -66,6 +66,6 @@ RUN \
6666
# * gcompat: BoringSSL for Netty per https://github.com/grpc/grpc-java/blob/master/SECURITY.md#netty
6767
apk add --no-cache java-cacerts ca-certificates gcompat && \
6868
# Typically, only amd64 is tested in CI: Run a command to ensure binaries match current arch.
69-
ldd /lib/libz.so.1
69+
ldd /usr/lib/libz.so.1
7070

7171
ENTRYPOINT ["/bin/sh"]

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@ This is an internal base layer primarily used in [docker-java](https://github.co
1313

1414
To browse the image, run it in interactive mode with TTY enabled like so:
1515
```bash
16-
docker run -ti --rm ghcr.io/openzipkin/alpine:3.20.3
16+
docker run -ti --rm ghcr.io/openzipkin/alpine:3.21.0
1717
/ #
1818
```
1919

2020
## Release process
2121
Build the `Dockerfile` using the current version from https://alpinelinux.org/downloads/:
2222
```bash
23-
# Note 3.20.3 not 3.20!
24-
./build-bin/build 3.20.3
23+
# Note 3.21.0 not 3.21!
24+
./build-bin/build 3.21.0
2525
```
2626

2727
Next, verify the built image matches that version:
2828
```bash
2929
docker run --rm openzipkin/alpine:test -c 'cat /etc/alpine-release'
30-
3.20.3
30+
3.21.0
3131
```
3232

33-
To release the image, push a tag matching the arg to `build-bin/build` (ex `3.20.3`).
33+
To release the image, push a tag matching the arg to `build-bin/build` (ex `3.21.0`).
3434
This triggers a [GitHub Actions](https://github.com/openzipkin/docker-alpine/actions) job to push the image.

build-bin/test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ build-bin/build
88

99
echo "Verifying Docker image..."
1010
# Invoke a binary in gcompat to ensure arch matches
11-
docker run --rm openzipkin/alpine:test -c 'ldd /lib/libz.so.1'
11+
docker run --rm openzipkin/alpine:test -c 'ldd /usr/lib/libz.so.1'

0 commit comments

Comments
 (0)