Skip to content
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/out
/iso_out
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ FROM archlinux:base
ARG ALEZ_BUILD_DIR='/opt/alez'
ARG ARCHZFS_KEY='F75D9D76'

RUN pacman -Syu --noconfirm --needed base base-devel git archiso reflector curl wget
RUN pacman -Syu --noconfirm --needed base base-devel git archiso reflector curl wget dialog

RUN mkdir ~/.gnupg && echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf
RUN pacman-key --init && pacman-key --populate archlinux && \
if ! pacman-key -r "${ARCHZFS_KEY}"; then pacman-key -r "${ARCHZFS_KEY}" --keyserver hkp://pool.sks-keyservers.net:80; fi && pacman-key --lsign-key "${ARCHZFS_KEY}"
if ! pacman-key -r "${ARCHZFS_KEY}"; then pacman-key -r "${ARCHZFS_KEY}" --keyserver hkps://keyserver.ubuntu.com; fi && pacman-key --lsign-key "${ARCHZFS_KEY}"

RUN mkdir -p "${ALEZ_BUILD_DIR}" && \
cp -r /usr/share/archiso/configs/releng "${ALEZ_BUILD_DIR}/iso" && \
Expand All @@ -23,17 +23,19 @@ RUN sed -i '/^\[core\]/i [archzfs]\n\
Server = http://archzfs.com/$repo/x86_64\n' \
"${ALEZ_BUILD_DIR}/iso/pacman.conf"

RUN printf 'git\narchzfs-linux\nreflector\nwget\nlinux\nlinux-firmware\ndhcpcd\nless\nmdadm' >> \
RUN printf 'git\narchzfs-linux\nreflector\nwget\nlinux\nlinux-firmware\ndhcpcd\nless\nmdadm\ndialog' >> \
"${ALEZ_BUILD_DIR}/iso/packages.x86_64"

COPY motd "${ALEZ_BUILD_DIR}/iso/airootfs/etc/"

# Copy in current directory to allow git tag checking
COPY . "${ALEZ_BUILD_DIR}/iso/airootfs/usr/local/share/ALEZ"

COPY alez.sh "/usr/local/share/ALEZ/alez.sh"
RUN chmod u+x "/usr/local/share/ALEZ/alez.sh"
RUN ln -s "/usr/local/share/ALEZ/alez.sh" "${ALEZ_BUILD_DIR}/iso/airootfs/usr/local/bin/alez"

VOLUME "${ALEZ_BUILD_DIR}/iso/out"

WORKDIR "${ALEZ_BUILD_DIR}/iso"
CMD ["/usr/bin/mkarchiso"]
CMD ["/usr/bin/mkarchiso", "./"]
Loading