Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ On the other hand, some OSes won't run older Erlangs because of library changes,
Just specify on the command line any of the `ERLANGVERSION`, `NODEVERSION`, or `ELIXIRVERSION` environment variables:

```
NODEVERSION=18 ELIXIRVERSION=v1.17.2 ERLANGVERSION=25.3.2.13 ./build.sh platform debian-bullseye
NODEVERSION=18 ELIXIRVERSION=v1.17.2 ERLANGVERSION=25.3.2.15 ./build.sh platform debian-bullseye
```

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

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

## Running the CouchDB build in a published container

Expand Down
2 changes: 1 addition & 1 deletion bin/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ set -e

# Defaults updated 2023-03-20
NODEVERSION=${NODEVERSION:-18}
ERLANGVERSION=${ERLANGVERSION:-25.3.2.13}
ERLANGVERSION=${ERLANGVERSION:-25.3.2.15}
ELIXIRVERSION=${ELIXIRVERSION:-v1.17.2}


Expand Down
15 changes: 12 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ DEBIANS="debian-bullseye debian-bookworm"
UBUNTUS="ubuntu-focal ubuntu-jammy"
CENTOSES="almalinux-8 almalinux-9"

XPLAT_BASE="debian-bookworm"
XPLAT_ARCHES="arm64v8 ppc64le s390x"
PASSED_BUILDARGS="$buildargs"

# Allow overriding this list from the command line
Expand Down Expand Up @@ -100,6 +98,16 @@ pull-os-image() {
docker pull $image_name
}

set-platforms() {
if [ "$1" == "debian-bullseye" ]; then
# Debian LTSs apparently start dropping random arches with time
echo "!!! reducing list of arches for $1 !!!"
actual_buildx_platforms="linux/amd64,linux/arm64"
else
actual_buildx_platforms=${BUILDX_PLATFORMS}
fi
}

buildx-platform() {
check-envs
find-erlang-version $1
Expand All @@ -110,10 +118,11 @@ buildx-platform() {
else
repo="$os"
fi
set-platforms $1
docker buildx build -f dockerfiles/${os}-${version} \
$buildargs \
--no-cache \
--platform ${BUILDX_PLATFORMS} \
--platform ${actual_buildx_platforms} \
--tag apache/couchdbci-${repo}:${version}-erlang-${ERLANGVERSION} \
--push \
${SCRIPTPATH}
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/almalinux-8
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ARG js=js
# Choose whether to install Erlang, default yes
ARG erlang=erlang
# Select version of Node, Erlang and Elixir to install
ARG erlangversion=25.3.2.13
ARG erlangversion=25.3.2.15
ARG elixirversion=v1.17.2
ARG nodeversion=18

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/almalinux-9
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ARG js=js
# Choose whether to install Erlang, default yes
ARG erlang=erlang
# Select version of Node, Erlang and Elixir to install
ARG erlangversion=25.3.2.13
ARG erlangversion=25.3.2.15
ARG elixirversion=v1.17.2
ARG nodeversion=18

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/debian-bookworm
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ARG js=js
# Choose whether to install Erlang, default yes
ARG erlang=erlang
# Select version of Node, Erlang and Elixir
ARG erlangversion=25.3.2.13
ARG erlangversion=25.3.2.15
ARG elixirversion=v1.17.2
ARG nodeversion=18

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/debian-bullseye
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ARG js=js
# Choose whether to install Erlang, default yes
ARG erlang=erlang
# Select version of Node, Erlang and Elixir
ARG erlangversion=25.3.2.13
ARG erlangversion=25.3.2.15
ARG elixirversion=v1.17.2
ARG nodeversion=18

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/ubuntu-focal
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ARG js=js
# Choose whether to install Erlang, default yes
ARG erlang=erlang
# Select version of Node, Erlang and Elixir to install
ARG erlangversion=25.3.2.13
ARG erlangversion=25.3.2.15
ARG elixirversion=v1.17.2
ARG nodeversion=18

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/ubuntu-jammy
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ARG js=js
# Choose whether to install Erlang, default yes
ARG erlang=erlang
# Select version of Node, Erlang and Elixir to install
ARG erlangversion=25.3.2.13
ARG erlangversion=25.3.2.15
ARG elixirversion=v1.17.2
ARG nodeversion=18

Expand Down
10 changes: 5 additions & 5 deletions pull-all-couchdbdev-docker
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ DOCKER_ORG="apache"

# These are the images that are currently being used, so don't `docker rmi` them on cleanup.
KEEP_IMAGES=(
couchdbci-debian:bookworm-erlang-25.3.2.13
couchdbci-debian:bookworm-erlang-25.3.2.15
couchdbci-debian:bookworm-erlang-26.2.5.4
couchdbci-debian:bookworm-erlang:27.1.1
couchdbci-centos:9-erlang-25.3.2.13
couchdbci-centos:8-erlang-25.3.2.13
couchdbci-ubuntu:jammy-erlang-25.3.2.13
couchdbci-ubuntu:focal-erlang-25.3.2.13
couchdbci-centos:9-erlang-25.3.2.15
couchdbci-centos:8-erlang-25.3.2.15
couchdbci-ubuntu:jammy-erlang-25.3.2.15
couchdbci-ubuntu:focal-erlang-25.3.2.15
)

for image in ${KEEP_IMAGES[*]}
Expand Down