Skip to content

Instantly share code, notes, and snippets.

@rpoisel
Last active July 16, 2024 09:23
Show Gist options
  • Save rpoisel/e968f4866cded55e00339065a28ff3df to your computer and use it in GitHub Desktop.
Save rpoisel/e968f4866cded55e00339065a28ff3df to your computer and use it in GitHub Desktop.
crosstool-ng docker compose environment
---
services:
debian:
build:
context: .
dockerfile: Dockerfile.debian
command: tail -f /dev/null
volumes:
- "${HOME}:/home/host_user"
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