build iso in containerized environment
This commit is contained in:
parent
eefd75ebea
commit
7a4f993eb8
2 changed files with 29 additions and 1 deletions
27
Dockerfile
Normal file
27
Dockerfile
Normal file
|
@ -0,0 +1,27 @@
|
|||
FROM docker.io/archlinux:base-devel
|
||||
|
||||
RUN pacman-key --init
|
||||
RUN pacman -Sy archlinux-keyring --noconfirm
|
||||
|
||||
RUN pacman -Syu git --noconfirm
|
||||
|
||||
RUN echo "%wheel ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||
RUN useradd --uid 1355 --create-home --shell /bin/bash --groups wheel build && \
|
||||
install -d /home/build/iso -o build
|
||||
|
||||
VOLUME [ "/home/build/iso" ]
|
||||
|
||||
USER build
|
||||
WORKDIR /home/build
|
||||
|
||||
RUN git clone https://git.noveria.org/LinuxSquare/PKGBUILDS.git && \
|
||||
cd PKGBUILDS && \
|
||||
git checkout PKGBUILD/alpineiso && \
|
||||
makepkg --noconfirm -si && \
|
||||
cd .. && \
|
||||
rm -rf PKGBUILDS && \
|
||||
sudo pacman --noconfirm -Scc
|
||||
|
||||
RUN sudo chown -R build:wheel /home/build
|
||||
|
||||
WORKDIR /home/build/iso
|
3
Makefile
3
Makefile
|
@ -1,5 +1,6 @@
|
|||
iso:
|
||||
sudo mkalpineiso -o out
|
||||
sudo podman build -t novosbuild:arch .
|
||||
sudo podman run -it -v $PWD:/home/build/iso novosbuild:arch sudo mkalpineiso -o /home/build/iso/out
|
||||
|
||||
clean:
|
||||
sudo rm -f ${PWD}/out/*.iso
|
||||
|
|
Loading…
Reference in a new issue