From 0a258a446a89bcbd5969ba75aae6ec81a122e496 Mon Sep 17 00:00:00 2001 From: Noel Miller Date: Thu, 15 Feb 2024 17:15:47 -0600 Subject: [PATCH] feat: Adding Dockerfile to simplify development --- Dockerfile | 18 ++++++++++++++++++ output/README.md | 1 + xorriso/gen_input.sh.in | 4 ++-- 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 Dockerfile create mode 100644 output/README.md diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7cc0492 --- /dev/null +++ b/Dockerfile @@ -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}"] diff --git a/output/README.md b/output/README.md new file mode 100644 index 0000000..fc50ae3 --- /dev/null +++ b/output/README.md @@ -0,0 +1 @@ +Final ISO gets output in this directory diff --git a/xorriso/gen_input.sh.in b/xorriso/gen_input.sh.in index 167e3b0..44b5b47 100644 --- a/xorriso/gen_input.sh.in +++ b/xorriso/gen_input.sh.in @@ -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" \ No newline at end of file +echo "-end"