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
34 changes: 18 additions & 16 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,28 +111,30 @@ jobs:
- uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
with:
driver-opts: network=host
- uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
if: ${{ startsWith(matrix.otp, '24') }}
with:
platforms: linux/${{ matrix.arch }}
cache-from: type=local,src=/tmp/.docker-buildx-cache,mode=max
build-args: |
BUILD_FROM=${{ steps.base_tag.outputs.image }}
OTP_VERSION=${{ matrix.otp }}
ELIXIR_VERSION=${{ matrix.elixir }}
BUILD_WITHOUT_QUIC=1
EMQTT_BENCH_VERSION=0.4.5
LUX_VERSION=lux-2.6
file: ./Dockerfile
context: .
- uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
if: ${{ ! startsWith(matrix.otp, '24') }}
- name: Build and load docker image
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
platforms: "linux/${{ matrix.arch }}"
load: true # Load the image to the runner's docker daemon
tags: test-image:latest
cache-from: type=local,src=/tmp/.docker-buildx-cache,mode=max
build-args: |
BUILD_FROM=${{ steps.base_tag.outputs.image }}
OTP_VERSION=${{ matrix.otp }}
ELIXIR_VERSION=${{ matrix.elixir }}
BUILD_WITHOUT_QUIC=${{ startsWith(matrix.otp, '24') && 1 || '' }}
EMQTT_BENCH_VERSION=${{ startsWith(matrix.otp, '24') && '0.4.5' || '' }}
LUX_VERSION=${{ startsWith(matrix.otp, '24') && 'lux-2.6' || '' }}
file: ./Dockerfile
context: .
- name: Test OTP 27 Image (Rust should exist)
if: startsWith(matrix.otp, '27')
run: |
docker run --rm test-image:latest bash -c "rustup --version && cargo --version"
- name: Test non-OTP 27 Image (Rust should NOT exist)
if: "!startsWith(matrix.otp, '27')"
run: |
if docker run --rm test-image:latest bash -c "command -v rustup"; then
echo "Error: rustup was found in an image where it should not be."
exit 1
fi
6 changes: 4 additions & 2 deletions alpine3.15.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ RUN ln -s /usr/bin/python3 /usr/bin/python
COPY get-cmake.sh /get-cmake.sh
RUN /get-cmake.sh build

# Install Rustup
# Install Rustup to a system-wide location
ENV RUSTUP_HOME=/usr/local/lib/rustup
ENV CARGO_HOME=/usr/local/cargo
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"
ENV PATH="/usr/local/cargo/bin:${PATH}"

CMD [ "/bin/sh" ]
6 changes: 4 additions & 2 deletions alpine3.21.3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ RUN apk add --no-cache --virtual .build-deps \
COPY get-cmake.sh /get-cmake.sh
RUN /get-cmake.sh build

# Install Rustup
# Install Rustup to a system-wide location
ENV RUSTUP_HOME=/usr/local/lib/rustup
ENV CARGO_HOME=/usr/local/cargo
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"
ENV PATH="/usr/local/cargo/bin:${PATH}"

CMD [ "/bin/sh" ]
6 changes: 4 additions & 2 deletions amzn2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ RUN yum clean packages && \
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8

# Install Rustup
# Install Rustup to a system-wide location
ENV RUSTUP_HOME=/usr/local/lib/rustup
ENV CARGO_HOME=/usr/local/cargo
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"
ENV PATH="/usr/local/cargo/bin:${PATH}"

CMD [ "/bin/bash" ]
6 changes: 4 additions & 2 deletions amzn2023/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ WORKDIR /
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8

# Install Rustup
# Install Rustup to a system-wide location
ENV RUSTUP_HOME=/usr/local/lib/rustup
ENV CARGO_HOME=/usr/local/cargo
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"
ENV PATH="/usr/local/cargo/bin:${PATH}"

CMD [ "/bin/bash" ]
6 changes: 4 additions & 2 deletions debian10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,11 @@ RUN /get-cmake.sh build && rm /get-cmake.sh
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8

# Install Rustup
# Install Rustup to a system-wide location
ENV RUSTUP_HOME=/usr/local/lib/rustup
ENV CARGO_HOME=/usr/local/cargo
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"
ENV PATH="/usr/local/cargo/bin:${PATH}"

WORKDIR /
CMD [ "/bin/bash" ]
6 changes: 4 additions & 2 deletions debian11/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,11 @@ RUN apt-get clean\
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8

# Install Rustup
# Install Rustup to a system-wide location
ENV RUSTUP_HOME=/usr/local/lib/rustup
ENV CARGO_HOME=/usr/local/cargo
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"
ENV PATH="/usr/local/cargo/bin:${PATH}"

WORKDIR /
CMD [ "/bin/bash" ]
6 changes: 4 additions & 2 deletions debian12/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@ WORKDIR /
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8

# Install Rustup
# Install Rustup to a system-wide location
ENV RUSTUP_HOME=/usr/local/lib/rustup
ENV CARGO_HOME=/usr/local/cargo
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"
ENV PATH="/usr/local/cargo/bin:${PATH}"

CMD [ "/bin/bash" ]
6 changes: 4 additions & 2 deletions el7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ ENV LANG=en_US.UTF-8
# merge the two dirs
ENV ACLOCAL_PATH=/usr/share/aclocal:/usr/local/share/aclocal

# Install Rustup
# Install Rustup to a system-wide location
ENV RUSTUP_HOME=/usr/local/lib/rustup
ENV CARGO_HOME=/usr/local/cargo
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"
ENV PATH="/usr/local/cargo/bin:${PATH}"

CMD [ "/bin/bash" ]
6 changes: 4 additions & 2 deletions el8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ RUN yum clean packages && \
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8

# Install Rustup
# Install Rustup to a system-wide location
ENV RUSTUP_HOME=/usr/local/lib/rustup
ENV CARGO_HOME=/usr/local/cargo
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"
ENV PATH="/usr/local/cargo/bin:${PATH}"

WORKDIR /
CMD [ "/bin/bash" ]
6 changes: 4 additions & 2 deletions el9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@ RUN dnf clean all && \
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8

# Install Rustup
# Install Rustup to a system-wide location
ENV RUSTUP_HOME=/usr/local/lib/rustup
ENV CARGO_HOME=/usr/local/cargo
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"
ENV PATH="/usr/local/cargo/bin:${PATH}"

WORKDIR /
CMD [ "/bin/bash" ]
6 changes: 4 additions & 2 deletions raspbian10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@ RUN apt-get clean\
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8

# Install Rustup
# Install Rustup to a system-wide location
ENV RUSTUP_HOME=/usr/local/lib/rustup
ENV CARGO_HOME=/usr/local/cargo
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"
ENV PATH="/usr/local/cargo/bin:${PATH}"

WORKDIR /
CMD [ "/bin/bash" ]
6 changes: 4 additions & 2 deletions raspbian9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ ENV PATH=/usr/local/python3.7.4/bin:$PATH
RUN apt-get clean\
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Install Rustup
# Install Rustup to a system-wide location
ENV RUSTUP_HOME=/usr/local/lib/rustup
ENV CARGO_HOME=/usr/local/cargo
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"
ENV PATH="/usr/local/cargo/bin:${PATH}"

WORKDIR /
CMD [ "/bin/bash" ]
6 changes: 4 additions & 2 deletions ubuntu18.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@ RUN /get-cmake.sh build && rm /get-cmake.sh
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8

# Install Rustup
# Install Rustup to a system-wide location
ENV RUSTUP_HOME=/usr/local/lib/rustup
ENV CARGO_HOME=/usr/local/cargo
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"
ENV PATH="/usr/local/cargo/bin:${PATH}"

CMD [ "/bin/bash" ]
6 changes: 4 additions & 2 deletions ubuntu20.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ RUN apt-get clean\
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8

# Install Rustup
# Install Rustup to a system-wide location
ENV RUSTUP_HOME=/usr/local/lib/rustup
ENV CARGO_HOME=/usr/local/cargo
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"
ENV PATH="/usr/local/cargo/bin:${PATH}"

WORKDIR /
CMD [ "/bin/bash" ]
6 changes: 4 additions & 2 deletions ubuntu22.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ WORKDIR /
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8

# Install Rustup
# Install Rustup to a system-wide location
ENV RUSTUP_HOME=/usr/local/lib/rustup
ENV CARGO_HOME=/usr/local/cargo
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"
ENV PATH="/usr/local/cargo/bin:${PATH}"

WORKDIR /
CMD [ "/bin/bash" ]
6 changes: 4 additions & 2 deletions ubuntu24.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ WORKDIR /
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8

# Install Rustup
# Install Rustup to a system-wide location
ENV RUSTUP_HOME=/usr/local/lib/rustup
ENV CARGO_HOME=/usr/local/cargo
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"
ENV PATH="/usr/local/cargo/bin:${PATH}"

WORKDIR /
CMD [ "/bin/bash" ]
Loading