Skip to content

Commit b1bcf58

Browse files
committed
Upgrade base Erlang OTP to 25.3.2.15
Apparently Debian dropped some arches from LTS support so now we have to jump through hoops to make Debian happy.
1 parent 0937f04 commit b1bcf58

File tree

10 files changed

+26
-17
lines changed

10 files changed

+26
-17
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ On the other hand, some OSes won't run older Erlangs because of library changes,
4949
Just specify on the command line any of the `ERLANGVERSION`, `NODEVERSION`, or `ELIXIRVERSION` environment variables:
5050

5151
```
52-
NODEVERSION=18 ELIXIRVERSION=v1.17.2 ERLANGVERSION=25.3.2.13 ./build.sh platform debian-bullseye
52+
NODEVERSION=18 ELIXIRVERSION=v1.17.2 ERLANGVERSION=25.3.2.15 ./build.sh platform debian-bullseye
5353
```
5454

5555
## Building images for other architectures
@@ -136,7 +136,7 @@ After building the image as above:
136136
docker run -it couchdbdev/<tag>
137137
```
138138

139-
where `<tag>` is of the format `<distro>-<version>-<type>`, such as `debian-bookworm-erlang-25.3.2.13`.
139+
where `<tag>` is of the format `<distro>-<version>-<type>`, such as `debian-bookworm-erlang-25.3.2.15`.
140140

141141
## Running the CouchDB build in a published container
142142

bin/install-dependencies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ set -e
3030

3131
# Defaults updated 2023-03-20
3232
NODEVERSION=${NODEVERSION:-18}
33-
ERLANGVERSION=${ERLANGVERSION:-25.3.2.13}
33+
ERLANGVERSION=${ERLANGVERSION:-25.3.2.15}
3434
ELIXIRVERSION=${ELIXIRVERSION:-v1.17.2}
3535

3636

build.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ DEBIANS="debian-bullseye debian-bookworm"
5050
UBUNTUS="ubuntu-focal ubuntu-jammy"
5151
CENTOSES="almalinux-8 almalinux-9"
5252

53-
XPLAT_BASE="debian-bookworm"
54-
XPLAT_ARCHES="arm64v8 ppc64le s390x"
5553
PASSED_BUILDARGS="$buildargs"
5654

5755
# Allow overriding this list from the command line
@@ -100,6 +98,16 @@ pull-os-image() {
10098
docker pull $image_name
10199
}
102100

101+
set-platforms() {
102+
if [ "$1" == "debian-bullseye" ]; then
103+
# Debian LTSs apparently start dropping random arches with time
104+
echo "!!! reducing list of arches for $1 !!!"
105+
actual_buildx_platforms="linux/amd64,linux/arm64"
106+
else
107+
actual_buildx_platforms=${BUILDX_PLATFORMS}
108+
fi
109+
}
110+
103111
buildx-platform() {
104112
check-envs
105113
find-erlang-version $1
@@ -110,10 +118,11 @@ buildx-platform() {
110118
else
111119
repo="$os"
112120
fi
121+
set-platforms $1
113122
docker buildx build -f dockerfiles/${os}-${version} \
114123
$buildargs \
115124
--no-cache \
116-
--platform ${BUILDX_PLATFORMS} \
125+
--platform ${actual_buildx_platforms} \
117126
--tag apache/couchdbci-${repo}:${version}-erlang-${ERLANGVERSION} \
118127
--push \
119128
${SCRIPTPATH}

dockerfiles/almalinux-8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ARG js=js
3131
# Choose whether to install Erlang, default yes
3232
ARG erlang=erlang
3333
# Select version of Node, Erlang and Elixir to install
34-
ARG erlangversion=25.3.2.13
34+
ARG erlangversion=25.3.2.15
3535
ARG elixirversion=v1.17.2
3636
ARG nodeversion=18
3737

dockerfiles/almalinux-9

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ARG js=js
3131
# Choose whether to install Erlang, default yes
3232
ARG erlang=erlang
3333
# Select version of Node, Erlang and Elixir to install
34-
ARG erlangversion=25.3.2.13
34+
ARG erlangversion=25.3.2.15
3535
ARG elixirversion=v1.17.2
3636
ARG nodeversion=18
3737

dockerfiles/debian-bookworm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ ARG js=js
3636
# Choose whether to install Erlang, default yes
3737
ARG erlang=erlang
3838
# Select version of Node, Erlang and Elixir
39-
ARG erlangversion=25.3.2.13
39+
ARG erlangversion=25.3.2.15
4040
ARG elixirversion=v1.17.2
4141
ARG nodeversion=18
4242

dockerfiles/debian-bullseye

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ ARG js=js
3636
# Choose whether to install Erlang, default yes
3737
ARG erlang=erlang
3838
# Select version of Node, Erlang and Elixir
39-
ARG erlangversion=25.3.2.13
39+
ARG erlangversion=25.3.2.15
4040
ARG elixirversion=v1.17.2
4141
ARG nodeversion=18
4242

dockerfiles/ubuntu-focal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ARG js=js
3434
# Choose whether to install Erlang, default yes
3535
ARG erlang=erlang
3636
# Select version of Node, Erlang and Elixir to install
37-
ARG erlangversion=25.3.2.13
37+
ARG erlangversion=25.3.2.15
3838
ARG elixirversion=v1.17.2
3939
ARG nodeversion=18
4040

dockerfiles/ubuntu-jammy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ARG js=js
3434
# Choose whether to install Erlang, default yes
3535
ARG erlang=erlang
3636
# Select version of Node, Erlang and Elixir to install
37-
ARG erlangversion=25.3.2.13
37+
ARG erlangversion=25.3.2.15
3838
ARG elixirversion=v1.17.2
3939
ARG nodeversion=18
4040

pull-all-couchdbdev-docker

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ DOCKER_ORG="apache"
44

55
# These are the images that are currently being used, so don't `docker rmi` them on cleanup.
66
KEEP_IMAGES=(
7-
couchdbci-debian:bookworm-erlang-25.3.2.13
7+
couchdbci-debian:bookworm-erlang-25.3.2.15
88
couchdbci-debian:bookworm-erlang-26.2.5.4
99
couchdbci-debian:bookworm-erlang:27.1.1
10-
couchdbci-centos:9-erlang-25.3.2.13
11-
couchdbci-centos:8-erlang-25.3.2.13
12-
couchdbci-ubuntu:jammy-erlang-25.3.2.13
13-
couchdbci-ubuntu:focal-erlang-25.3.2.13
10+
couchdbci-centos:9-erlang-25.3.2.15
11+
couchdbci-centos:8-erlang-25.3.2.15
12+
couchdbci-ubuntu:jammy-erlang-25.3.2.15
13+
couchdbci-ubuntu:focal-erlang-25.3.2.15
1414
)
1515

1616
for image in ${KEEP_IMAGES[*]}

0 commit comments

Comments
 (0)