Skip to content

Commit

Permalink
Docker: parametrize Rust container to build with
Browse files Browse the repository at this point in the history
  • Loading branch information
thresheek committed Dec 31, 2024
1 parent d76306a commit b66842b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pkg/docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ MODULES_SLIM ?= python

VARIANT ?= bookworm

VERSION_RUST ?= 1.83.0
CONTAINER_RUST ?= rust:$(VERSION_RUST)-$(VARIANT)

VERSIONS_minimal ?=
CONTAINER_minimal ?= debian:$(VARIANT)-slim
CONFIGURE_minimal ?=
Expand Down Expand Up @@ -141,6 +144,7 @@ Dockerfile.%: ../../version template.Dockerfile
-e 's,@@COPY_STEP@@,$(COPY_STEP_$(call modname, $*)),g' \
-e 's,@@PATCHLEVEL@@,$(PATCHLEVEL),g' \
-e 's,@@CONTAINER@@,$(CONTAINER_$*),g' \
-e 's,@@CONTAINER_RUST@@,$(CONTAINER_RUST),g' \
-e 's,@@CONFIGURE@@,$(CONFIGURE_$(call modname, $*)),g' \
-e 's,@@INSTALL@@,$(INSTALL_$(call modname, $*)),g' \
-e 's,@@RUN@@,$(RUN_$(call modname, $*)),g' \
Expand Down
2 changes: 1 addition & 1 deletion pkg/docker/template.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.83.0-bookworm as rust-build
FROM @@CONTAINER_RUST@@ as rust-build

FROM @@CONTAINER@@

Expand Down

0 comments on commit b66842b

Please sign in to comment.