-
Prepare workdir
mkdir ~/lede-compiler curl https://gist.githubusercontent.com/imyelo/519b5e4f5ac8de3158f638313e57f040/raw/ebb7fdf720d60b8b41fdd50d22f924ad3161607f/Dockerfile > ~/lede-compiler/Dockerfile curl https://gist.githubusercontent.com/imyelo/519b5e4f5ac8de3158f638313e57f040/raw/ebb7fdf720d60b8b41fdd50d22f924ad3161607f/docker-compose.yaml > ~/lede-compiler/docker-compose.yaml
-
Fetch LEDE repository
mkdir ~/lede-compiler/lede cd ~/lede-compiler/lede git clone https://github.com/coolsnowwolf/lede.git
-
Start Container
cd ~/lede-compiler docker build . -t lede-compiler && docker compose up
Last active
May 10, 2023 08:10
-
-
Save imyelo/519b5e4f5ac8de3158f638313e57f040 to your computer and use it in GitHub Desktop.
lede compiler with docker compose
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
version: "3" | |
services: | |
lede: | |
image: lede-compiler | |
volumes: | |
- ./lede:/lede |
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
# syntax = docker/dockerfile:1.0-experimental | |
FROM ubuntu:22.04 | |
SHELL ["/bin/bash", "-c"] | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt update --fix-missing | |
RUN apt full-upgrade -y | |
RUN apt install -y ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential \ | |
bzip2 ccache cmake cpio curl device-tree-compiler fastjar flex gawk gettext gcc-multilib g++-multilib \ | |
git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libglib2.0-dev libgmp3-dev libltdl-dev \ | |
libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libreadline-dev libssl-dev libtool lrzsz \ | |
mkisofs msmtp nano ninja-build p7zip p7zip-full patch pkgconf python2.7 python3 python3-pyelftools \ | |
libpython3-dev qemu-utils rsync scons squashfs-tools subversion swig texinfo uglifyjs upx-ucl unzip \ | |
vim wget xmlto xxd zlib1g-dev | |
RUN apt install -y sudo | |
RUN useradd -rm -d /lede -s /bin/bash -G sudo -u 1000 lede | |
RUN echo "lede:lede" | chpasswd | |
USER lede | |
VOLUME /lede | |
CMD ["tail", "-f", "/dev/null"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment