Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
16 changes: 8 additions & 8 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ jobs:
"ubuntu22.04",
"ubuntu20.04",
"ubuntu18.04",
"debian12",
"debian11",
"debian10",
"el9",
"el8",
"el7",
"amzn2",
"amzn2023",
"debian12",
"debian11",
"debian10",
"el9",
"el8",
"el7",
"amzn2",
"amzn2023",
"alpine3.15.1",
"alpine3.21.3"
]'
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ ENV ERL_AFLAGS="-kernel shell_history enabled"
ARG BUILD_WITHOUT_QUIC=false
ARG OTP_VERSION=27.3.4.2-1
ARG ELIXIR_VERSION=1.18.3
ARG RUST_VERSION=1.88.0
ARG FDB_VERSION=7.3.43
ARG EMQTT_BENCH_VERSION=0.4.25
ARG LUX_VERSION=lux-3.0

COPY get-otp.sh get-zsh.sh get-elixir.sh get-fdb.sh get-emqtt-bench.sh get-lux.sh /
COPY get-otp.sh get-zsh.sh get-elixir.sh get-fdb.sh get-rust.sh get-emqtt-bench.sh get-lux.sh /

RUN if [ -f /opt/rh/devtoolset-10/enable ]; then source /opt/rh/devtoolset-10/enable; fi && \
. /etc/os-release && export ID=$ID && export VERSION_ID=$VERSION_ID && \
Expand All @@ -22,6 +23,7 @@ RUN if [ -f /opt/rh/devtoolset-10/enable ]; then source /opt/rh/devtoolset-10/en
/get-otp.sh ${OTP_VERSION} && \
/get-elixir.sh ${ELIXIR_VERSION} && \
if [ "${OTP_VERSION#26.}" != "$OTP_VERSION" ]; then /get-fdb.sh ${FDB_VERSION}; fi && \
if echo "${OTP_VERSION}" | grep -q "^27\."; then /get-rust.sh ${RUST_VERSION}; fi && \
/get-emqtt-bench.sh ${EMQTT_BENCH_VERSION} && \
/get-lux.sh ${LUX_VERSION} && \
rm /get-otp.sh /get-zsh.sh /get-elixir.sh /get-fdb.sh /get-emqtt-bench.sh /get-lux.sh
Expand Down
4 changes: 4 additions & 0 deletions alpine3.15.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,8 @@ RUN ln -s /usr/bin/python3 /usr/bin/python
COPY get-cmake.sh /get-cmake.sh
RUN /get-cmake.sh build

# Install Rustup
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"

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

# Install Rustup
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"

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

# Install Rustup
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"

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

# Install Rustup
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"

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

# Install Rustup
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"

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

# Install Rustup
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"

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

# Install Rustup
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"

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

# Install Rustup
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"

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

# Install Rustup
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"

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

# Install Rustup
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"

WORKDIR /
CMD [ "/bin/bash" ]
10 changes: 10 additions & 0 deletions get-rust.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

set -eu

RUST_VERSION="${1:-1.88.0}"

if [ -n "${RUST_VERSION}" ]; then
rustup toolchain install ${RUST_VERSION}
rustup default ${RUST_VERSION}
fi
4 changes: 4 additions & 0 deletions raspbian10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,9 @@ RUN apt-get clean\
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8

# Install Rustup
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"

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

# Install Rustup
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"

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

# Install Rustup
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"

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

# Install Rustup
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"

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

# Install Rustup
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"

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

# Install Rustup
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"

WORKDIR /
CMD [ "/bin/bash" ]