Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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: 1 addition & 3 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ script.post = ""
[tasks.init-podman-volumes]
description = "Initialize named podman volumes for container builds"
script = '''
for vol in zaino-container-target zaino-cargo-git zaino-cargo-registry zaino-rustup; do
for vol in zaino-container-target zaino-cargo-git zaino-cargo-registry; do
if ! podman volume inspect "$vol" >/dev/null 2>&1; then
podman volume create "$vol"
echo "Created podman volume: $vol"
Expand Down Expand Up @@ -267,7 +267,6 @@ podman run --rm \
-v zaino-container-target:/home/container_user/zaino/target:U \
-v zaino-cargo-git:/usr/local/cargo/git:U \
-v zaino-cargo-registry:/usr/local/cargo/registry:U \
-v zaino-rustup:/usr/local/rustup:U \
-e "TEST_BINARIES_DIR=${TEST_BINARIES_DIR}" \
-e "NEXTEST_EXPERIMENTAL_LIBTEST_JSON=1" \
-e "ZAINOLOG_FORMAT=${ZAINOLOG_FORMAT:-stream}" \
Expand Down Expand Up @@ -384,7 +383,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
"-v", "zaino-container-target:/home/container_user/zaino/target:U",
"-v", "zaino-cargo-git:/usr/local/cargo/git:U",
"-v", "zaino-cargo-registry:/usr/local/cargo/registry:U",
"-v", "zaino-rustup:/usr/local/rustup:U",
"-e", "TEST_BINARIES_DIR=/home/container_user/zaino/integration-tests/test_binaries/bins",
"-w", "/home/container_user/zaino",
"-u", "container_user",
Expand Down
11 changes: 8 additions & 3 deletions integration-tests/test_environment/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
RUN groupadd --gid ${GID} ${USER} && \
useradd --uid ${UID} --gid ${GID} --home-dir ${HOME} --create-home ${USER}

# Install rustup (Rust toolchain manager) and set up the Rust toolchain
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
RUN rustup update stable
# Install the toolchain under the same channel name rust-toolchain.toml asks
# for at runtime ("1.92"). The rust:${RUST_VERSION}-trixie base image installs
# its toolchain as "1.92.0-x86_64-unknown-linux-gnu", which does not match
# rust-toolchain.toml's `channel = "1.92"` — without this line rustup would
# re-download the whole toolchain on every container start.
RUN rustup toolchain install 1.92 --profile minimal \
Comment thread
zancas marked this conversation as resolved.
Outdated
--component rustfmt --component clippy && \
rustup default 1.92

# Create artifacts directory
RUN mkdir -p /home/container_user/artifacts
Expand Down
Loading