Merge pull request #4 from ublue-os/create_dockerfile

feat: Adding Dockerfile to simplify development
This commit is contained in:
Kyle Gospodnetich 2024-02-15 23:00:42 -08:00 committed by GitHub
commit 1f0777c206
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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"