Last active
July 16, 2024 09:23
-
-
Save rpoisel/e968f4866cded55e00339065a28ff3df to your computer and use it in GitHub Desktop.
crosstool-ng docker compose environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
services: | |
debian: | |
build: | |
context: . | |
dockerfile: Dockerfile.debian | |
command: tail -f /dev/null | |
volumes: | |
- "${HOME}:/home/host_user" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:unstable | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN apt update \ | |
&& apt install -y \ | |
autoconf \ | |
bison \ | |
build-essential \ | |
curl \ | |
file \ | |
flex \ | |
gawk \ | |
git \ | |
help2man \ | |
libncurses-dev \ | |
libtool-bin \ | |
python3 \ | |
python3-dev \ | |
python-is-python3 \ | |
libpython3-dev \ | |
rsync \ | |
texinfo \ | |
tmux \ | |
unzip \ | |
wget | |
RUN groupadd -g 1000 user \ | |
&& useradd -d /home/user --create-home -u 1000 -g 1000 -s /bin/bash user | |
USER 1000:1000 | |
WORKDIR /home/user | |
RUN mkdir git \ | |
&& cd git \ | |
&& git clone https://github.com/crosstool-ng/crosstool-ng.git \ | |
&& cd crosstool-ng \ | |
&& ./bootstrap \ | |
&& ./configure --prefix="${HOME}/crosstool-ng" \ | |
&& make \ | |
&& make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment