2022-12-13 06:35:13 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-12-30 04:16:37 +08:00
|
|
|
# Builds base images used to build extra flavours of Livebook images
|
2022-12-13 06:35:13 +08:00
|
|
|
|
2022-12-30 04:16:37 +08:00
|
|
|
set -ex
|
|
|
|
cd "$(dirname "$0")/.."
|
2022-12-13 06:35:13 +08:00
|
|
|
|
2023-06-15 18:49:48 +08:00
|
|
|
. versions
|
2022-12-13 06:35:13 +08:00
|
|
|
|
2022-12-30 04:16:37 +08:00
|
|
|
docker buildx build --push --platform linux/amd64,linux/arm64 \
|
2023-06-15 20:17:03 +08:00
|
|
|
-t ghcr.io/livebook-dev/utils:elixir-$elixir-erlang-$otp-cuda11.8 \
|
2022-12-30 04:16:37 +08:00
|
|
|
--build-arg ELIXIR_VERSION=$elixir \
|
2023-06-15 18:49:48 +08:00
|
|
|
--build-arg ERLANG_VERSION=$otp \
|
2023-05-31 17:47:31 +08:00
|
|
|
--build-arg UBUNTU_VERSION=$ubuntu \
|
2022-12-30 04:16:37 +08:00
|
|
|
--build-arg CUDA_VERSION=11.8.0 \
|
|
|
|
-f docker/base/elixir-cuda.dockerfile \
|
|
|
|
docker/base
|