Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
dfunkt committed May 4, 2024
1 parent 15e35f4 commit af9021d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions docker/DockerSettings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ build_stage_image:
image: "build_${TARGETARCH}${TARGETVARIANT}"
platform: "linux/amd64" # The Alpine build images only have linux/amd64 images
arch_image:
amd64: "ghcr.io/blackdex/rust-musl:x86_64-musl-stable-{{rust_version}}"
arm64: "ghcr.io/blackdex/rust-musl:aarch64-musl-stable-{{rust_version}}"
armv7: "ghcr.io/blackdex/rust-musl:armv7-musleabihf-stable-{{rust_version}}"
armv6: "ghcr.io/blackdex/rust-musl:arm-musleabi-stable-{{rust_version}}"
amd64: "ghcr.io/dfunkt/rust-musl:x86_64-musl-stable-{{rust_version}}"
arm64: "ghcr.io/dfunkt/rust-musl:aarch64-musl-stable-{{rust_version}}"
armv7: "ghcr.io/dfunkt/rust-musl:armv7-musleabihf-stable-{{rust_version}}"
armv6: "ghcr.io/dfunkt/rust-musl:arm-musleabi-stable-{{rust_version}}"
# The final image which will be used to distribute the container images
runtime_stage_image:
debian: "docker.io/library/debian:{{debian_version}}-slim"
Expand Down
12 changes: 6 additions & 6 deletions docker/Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ FROM --platform=linux/amd64 docker.io/vaultwarden/web-vault@sha256:689b1e706f29e
########################## ALPINE BUILD IMAGES ##########################
## NOTE: The Alpine Base Images do not support other platforms then linux/amd64
## And for Alpine we define all build images here, they will only be loaded when actually used
FROM --platform=linux/amd64 ghcr.io/blackdex/rust-musl:x86_64-musl-stable-1.78.0 as build_amd64
FROM --platform=linux/amd64 ghcr.io/blackdex/rust-musl:aarch64-musl-stable-1.78.0 as build_arm64
FROM --platform=linux/amd64 ghcr.io/blackdex/rust-musl:armv7-musleabihf-stable-1.78.0 as build_armv7
FROM --platform=linux/amd64 ghcr.io/blackdex/rust-musl:arm-musleabi-stable-1.78.0 as build_armv6
FROM --platform=linux/amd64 ghcr.io/dfunkt/rust-musl:x86_64-musl-stable-1.78.0 as build_amd64
FROM --platform=linux/amd64 ghcr.io/dfunkt/rust-musl:aarch64-musl-stable-1.78.0 as build_arm64
FROM --platform=linux/amd64 ghcr.io/dfunkt/rust-musl:armv7-musleabihf-stable-1.78.0 as build_armv7
FROM --platform=linux/amd64 ghcr.io/dfunkt/rust-musl:arm-musleabi-stable-1.78.0 as build_armv6

########################## BUILD IMAGE ##########################
# hadolint ignore=DL3006
Expand Down Expand Up @@ -62,8 +62,8 @@ RUN mkdir -pv "${CARGO_HOME}" && \
rustup set profile minimal

# Creates a dummy project used to grab dependencies
RUN USER=root cargo new --bin /app
WORKDIR /app
RUN USER=root cargo new --bin /appp
WORKDIR /appp

# Environment variables for Cargo on Alpine based builds
RUN echo "export CARGO_TARGET=${RUST_MUSL_CROSS_TARGET}" >> /env-cargo && \
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile.debian
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ RUN mkdir -pv "${CARGO_HOME}" && \
rustup set profile minimal

# Creates a dummy project used to grab dependencies
RUN USER=root cargo new --bin /app
WORKDIR /app
RUN USER=root cargo new --bin /appp
WORKDIR /appp

# Environment variables for Cargo on Debian based builds
ARG ARCH_OPENSSL_LIB_DIR \
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ RUN mkdir -pv "${CARGO_HOME}" && \
rustup set profile minimal

# Creates a dummy project used to grab dependencies
RUN USER=root cargo new --bin /app
WORKDIR /app
RUN USER=root cargo new --bin /appp
WORKDIR /appp

{% if base == "debian" %}
# Environment variables for Cargo on Debian based builds
Expand Down

0 comments on commit af9021d

Please sign in to comment.