feat: Adding Dockerfile to simplify development

This commit is contained in:
Noel Miller 2024-02-15 17:15:47 -06:00
parent d78c52a68f
commit 0a258a446a
3 changed files with 21 additions and 2 deletions

18
Dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM fedora:latest
ENV ARCH="x86_64"
ENV VERSION="39"
ENV IMAGE_REPO="ghcr.io/ublue-os"
ENV IMAGE_NAME="base-main"
ENV IMAGE_TAG="$(version)"
ENV VARIANT="Silverblue"
ENV WEB_UI="false"
WORKDIR /isogenerator
RUN dnf install -y make git && \
git clone https://github.com/ublue-os/isogenerator.git . && \
make install-deps
ENTRYPOINT ["make", "arch=${ARCH}", "version=${VERSION}", "image_repo=${IMAGE_REPO}", "image_name=${IMAGE_NAME}", "image_tag=${IMAGE_TAG}", "variant=${VARIANT}", "web_ui=${WEB_UI}"]

1
output/README.md Normal file
View File

@ -0,0 +1 @@
Final ISO gets output in this directory

View File

@ -1,7 +1,7 @@
#!/bin/bash
echo "-indev $(pwd)/boot.iso"
echo "-outdev $(pwd)/@IMAGE_NAME@-@VERSION@.iso"
echo "-outdev $(pwd)/output/@IMAGE_NAME@-@VERSION@.iso"
echo "-boot_image any replay"
echo "-volid @IMAGE_NAME@-@ARCH@-@VERSION@"
echo "-joliet on"
@ -12,4 +12,4 @@ do
echo "-map $(pwd)/${file} ${file}"
echo "-chmod 0444 ${file}"
done
echo "-end"
echo "-end"