Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

Commit 3333e8c

Browse files
Add rustup to docs and release images
1 parent 2f077f6 commit 3333e8c

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

naev-docs/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@ LABEL org.opencontainers.image.description "Used for building website and docs."
88
ENV IMAGE_NAME "naev-docs"
99

1010
# Install utilities
11-
RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install cargo make meson ninja-build gcc git GraphicsMagick libyaml openssl optipng rust zlib \
11+
RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install make meson ninja-build gcc git GraphicsMagick libyaml openssl optipng rustup zlib \
1212
python3-pyyaml rsync tidy tar unzip xz zip \
1313
# Install ldoc
1414
lua-ldoc \
1515
# Install LaTeX packages
1616
latexmk texlive-luahbtex texlive-roboto texlive-preprint texlive-parskip texlive-sfmath \
1717
texlive-markdown texlive-csvsimple texlive-gobble texlive-microtype texlive-minted texlive-newunicodechar && \
1818
microdnf clean all && \
19+
# Install rust toolchain
20+
rustup-init -y --default-toolchain stable && \
1921
# Verify tool versions and install locations.
2022
echo "Verifying latexmk install" && \
2123
command -v latexmk && \
@@ -25,7 +27,9 @@ RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install cargo make meson n
2527
lualatex -v && \
2628
echo "Verifying ldoc install" && \
2729
command -v ldoc
28-
30+
31+
# Add rust toolchain to PATH
32+
ENV PATH=/root/.cargo/bin:$PATH
2933
# Force appimages to run in extract mode since FUSE is not available
3034
ENV APPIMAGE_EXTRACT_AND_RUN 1
3135

naev-release/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ ENV PATH "$PATH:/opt/apple-codesign"
3939

4040
WORKDIR /tmp
4141
# Install utilities
42-
RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install cargo meson ninja-build gcc python3-pyyaml file git readline-devel rust tar xz unzip zip \
42+
RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install meson ninja-build gcc python3-pyyaml file git readline-devel rustup tar xz unzip zip \
4343
# Install SteamCMD and friends
4444
glibc.i686 SDL2.i686 && \
4545
microdnf clean all && \
46+
# Install rust toolchain
47+
rustup-init -y --default-toolchain stable && \
4648
# Download and install SteamCMD
4749
curl -L -O http://media.steampowered.com/installer/steamcmd_linux.tar.gz && \
4850
mkdir -p /opt/steamcmd && \
@@ -75,6 +77,8 @@ RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install cargo meson ninja-
7577
command -v github-assets-uploader && \
7678
github-assets-uploader -version
7779

80+
# Add rust toolchain to PATH
81+
ENV PATH=/root/.cargo/bin:$PATH
7882
# Force appimages to run in extract mode since FUSE is not available
7983
ENV APPIMAGE_EXTRACT_AND_RUN 1
8084

0 commit comments

Comments
 (0)