Merge pull request #4 from ublue-os/create_dockerfile
feat: Adding Dockerfile to simplify development
This commit is contained in:
commit
1f0777c206
|
@ -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}"]
|
|
@ -0,0 +1 @@
|
||||||
|
Final ISO gets output in this directory
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "-indev $(pwd)/boot.iso"
|
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 "-boot_image any replay"
|
||||||
echo "-volid @IMAGE_NAME@-@ARCH@-@VERSION@"
|
echo "-volid @IMAGE_NAME@-@ARCH@-@VERSION@"
|
||||||
echo "-joliet on"
|
echo "-joliet on"
|
||||||
|
@ -12,4 +12,4 @@ do
|
||||||
echo "-map $(pwd)/${file} ${file}"
|
echo "-map $(pwd)/${file} ${file}"
|
||||||
echo "-chmod 0444 ${file}"
|
echo "-chmod 0444 ${file}"
|
||||||
done
|
done
|
||||||
echo "-end"
|
echo "-end"
|
||||||
|
|
Loading…
Reference in New Issue