diff --git a/.buildkite/build-docker-images.sh b/.buildkite/build-docker-images.sh new file mode 100644 index 0000000..d9a93f5 --- /dev/null +++ b/.buildkite/build-docker-images.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +set -eo pipefail +export LC_ALL=en_US.UTF-8 + +echo "--- Building the Wolfi image" +# Building the linux/arm64 image takes about one hour on Buildkite, which is too slow +docker build --file Dockerfile.wolfi . + +echo "--- Building the public image" +docker build . diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index e3ac638..a54a11d 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -15,6 +15,14 @@ steps: machineType: "n2-standard-2" commands: - ./.buildkite/build-documentation.sh + - label: ":docker: Build docker image {{ matrix.platform }}" + env: + PYTHON_VERSION: 3.11-bookworm + agents: + provider: "gcp" + machineType: "n2-standard-2" + commands: + - ./.buildkite/build-docker-images.sh - label: "Eland :python: {{ matrix.python }} :elasticsearch: {{ matrix.stack }}" agents: provider: "gcp" diff --git a/Dockerfile b/Dockerfile index a5d50a9..ab1f969 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ RUN --mount=type=cache,target=/root/.cache/pip \ if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \ python3 -m pip install \ --no-cache-dir --disable-pip-version-check --extra-index-url https://download.pytorch.org/whl/cpu \ - torch==2.1.2+cpu .[all]; \ + torch==2.3.1+cpu .[all]; \ else \ python3 -m pip install \ --no-cache-dir --disable-pip-version-check \ diff --git a/Dockerfile.wolfi b/Dockerfile.wolfi index b2a158c..3d94ffd 100644 --- a/Dockerfile.wolfi +++ b/Dockerfile.wolfi @@ -13,7 +13,7 @@ RUN --mount=type=cache,target=/root/.cache/pip \ if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \ python3 -m pip install \ --no-cache-dir --disable-pip-version-check --extra-index-url https://download.pytorch.org/whl/cpu \ - torch==2.1.2+cpu .[all]; \ + torch==2.3.1+cpu .[all]; \ else \ python3 -m pip install \ --no-cache-dir --disable-pip-version-check \