Skip to content
Snippets Groups Projects
Commit 1ad27d4e authored by Lukas Markeffsky's avatar Lukas Markeffsky
Browse files

tools: build-image improvements

* Dockerfile fixes for podman + readability improvements
* remove unused setup script
parent 92b7cbeb
No related branches found
No related tags found
1 merge request!14big pile of unrelated changes
Pipeline #45282 passed
This commit is part of merge request !14. Comments created here will be created in the context of that merge request.
# syntax=docker/dockerfile:1
FROM debian:stable
ENV PATH=/root/.cargo/bin:/usr/bin:/bin
RUN apt-get update; \
RUN \
apt-get update && \
apt-get install -y --no-install-recommends \
build-essential ca-certificates curl fdisk dosfstools mtools qemu-system-x86 ovmf git \
texlive texlive-luatex texlive-latex-extra texlive-bibtex-extra texlive-lang-german latexmk biber qpdf; \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path \
--default-toolchain nightly --component rust-src --component miri \
--target x86_64-unknown-none --target x86_64-unknown-uefi; \
cargo miri setup; \
build-essential \
ca-certificates \
curl \
fdisk \
dosfstools \
mtools \
qemu-system-x86 \
ovmf \
git \
texlive \
texlive-luatex \
texlive-latex-extra \
texlive-bibtex-extra \
texlive-lang-german \
latexmk \
biber \
qpdf && \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
--no-modify-path \
--default-toolchain nightly \
--component rust-src miri \
--target x86_64-unknown-none x86_64-unknown-uefi && \
cargo miri setup && \
cargo install mdbook
#!/bin/sh
# echo commands and fail on error
set -ex
# install dependencies
apt-get update
apt-get install -y --no-install-recommends \
build-essential ca-certificates curl fdisk dosfstools mtools qemu-system-x86 ovmf git \
texlive texlive-luatex texlive-latex-extra texlive-bibtex-extra texlive-lang-german latexmk biber qpdf
# install rustup
curl --proto '=https' --tlsv1.2 -sSfo rustup-init.sh https://sh.rustup.rs
chmod +x rustup-init.sh
./rustup-init.sh -y --default-toolchain none
. "${HOME}/.cargo/env"
# install rust toolchain
rustup toolchain install nightly --component miri --target x86_64-unknown-none --target x86_64-unknown-uefi
cargo miri setup
# insatall mdbook
cargo install mdbook
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment