mirror of
https://github.com/esp-rs/espup.git
synced 2026-01-01 06:00:38 +00:00
* chore: 📌 Update crate version * refactor: ♻️ Initial refactor of subcommands * feat: ✨ Add config file for install and update * refactor: ♻️ Avoid using config file * feat: ✨ Use temp_dir * feat: ⚡️ Rename windows toolchain * feat: ✨ Add todo, remove unnecesary modules, fix Windows install * test: 🐛 Fix tests * fix: 🐛 Fix Windows build * fix: 🐛 Fix LLVM installation * fix: 🐛 Fix GCC paths * docs: 🎨 Update todos * style: 🎨 Remove debug prints * feat: ✨ Update nightly installation * feat: ⚡️ Check the result of cmds * fix: 🐛 Fix errors * feat: ✨ Update errors * feat: ⚡️ Remove unnecesary into_diagnostics * build: ➖ Cleanup dependencies * feat: ✨ Only install nightly toolchain when using riscv targets * refactor: ♻️ Update how cmd! results are checked * refactor: ♻️ Use std::process::Command * style: 🎨 Remove unused comments * feat: ⚡️ Run Xtensa install commands in parallel * style: 🔊 Remove rustup logs * feat: ✨ Check if the toolchain is already installed an reuse it * feat: ⚡️ Improve toolchain detection * docs: 🔊 Update log warning about extended semver corner case * docs: 💡 Remove addressed todo coment * refactor: ♻️ Update options * test: 🐛 Fix tests * docs: 🔊 Add todo * docs: ⚡️ Update llvm error * refactor: ♻️ Use an error for LLVM * fix: 🐛 Fix llvm object * feat: ✨ Allow only `esp` as -a/--name * chore: 🎨 Format variables and standarize logs * feat: ⚡️ Remove unused import * feat: ✨ Inject Windows variables * chore: ⚡️ Remove llvm-version option * feat: ⚡️ Add std option * style: 🔇 Remove debug log * fix: 🎨 Fix clippy warnings * fix: 🐛 Fix clippy warnings on unix * chore: 🔊 Update logs * feat: ✨ Stip zip files * feat: ✨ Allow -a/--name in Windows * feat: ✨ Allow -a/--name in Windows * style: 🐛 Fix clippy warning * ci: ⚡️ Improve CD and add publish job * ci: 🐛 Fix cross installation * build: ⬆️ bump dependencies * docs: 📝 Remove limitations sections * docs: 📝 Update usage section * docs: 📝 Update docs * docs: 📝 Update readme * docs: 📝 Update requirements * docs: 📝 Update format * docs: 📝 Update docs * docs: 📝 Update requirements * build: 🏗️ Dependencies update * docs: 📝 Fix typo * refactor: ♻️ Change xtensa-version option to be backward compatible
34 lines
897 B
Docker
34 lines
897 B
Docker
ARG VARIANT=latest
|
|
# Choose between: debian, ubuntu, fedora, opensuse/tumbleweed, opensuse/leap
|
|
FROM debian:${VARIANT}
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
ENV LC_ALL=C.UTF-8
|
|
ENV LANG=C.UTF-8
|
|
ARG CONTAINER_USER=esp
|
|
ARG CONTAINER_GROUP=esp
|
|
|
|
# Ubuntu/Debian
|
|
RUN apt-get update \
|
|
&& apt-get install -y git gcc build-essential curl pkg-config \
|
|
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts
|
|
RUN adduser --disabled-password --gecos "" ${CONTAINER_USER}
|
|
|
|
# Fedora
|
|
# RUN dnf -y update \
|
|
# && dnf -y install git perl gcc \
|
|
# && dnf clean all
|
|
# RUN adduser ${CONTAINER_USER}
|
|
|
|
USER ${CONTAINER_USER}
|
|
WORKDIR /home/${CONTAINER_USER}
|
|
|
|
# openSUSE Tumbleweed/Leap
|
|
# RUN zypper install -y git gcc ninja make \
|
|
# && zypper clean
|
|
|
|
# Install Rust
|
|
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
|
|
ENV PATH=${PATH}:/home/${CONTAINER_USER}/.cargo/bin
|
|
|
|
CMD [ "/bin/bash" ]
|