Skip to content

Commit

Permalink
Add Makefile and gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Odilhao committed Nov 22, 2024
1 parent bf81137 commit 15065fa
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
output
config.toml
4 changes: 3 additions & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ FROM quay.io/fedora/fedora-bootc:41
LABEL org.opencontainers.image.source="https://github.com/Odilhao/bootc-server"


RUN dnf install vim -y && dnf clean all
RUN dnf install install cloud-init vim -y && \
ln -s ../cloud-init.target /usr/lib/systemd/system/default.target.wants && \
rm -rf /var/{cache,log}
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,20 @@ anaconda-iso:
-v /var/lib/containers/storage:/var/lib/containers/storage \
quay.io/centos-bootc/bootc-image-builder:latest \
--type anaconda-iso \
--rootfs btrfs \
ghcr.io/odilhao/bootc-server:latest

qcow2:
sudo podman run \
--rm \
-it \
--privileged \
--pull=newer \
--security-opt label=type:unconfined_t \
-v ./output:/output \
-v ./config.toml:/config.toml:ro \
-v /var/lib/containers/storage:/var/lib/containers/storage \
quay.io/centos-bootc/bootc-image-builder:latest \
--type qcow2 \
--rootfs btrfs \
ghcr.io/odilhao/bootc-server:latest
2 changes: 1 addition & 1 deletion config.toml.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ btrfs /boot --label=fedora-boot btrfs.boot
btrfs none --label=fedora-btrfs btrfs.main
btrfs / --subvol --name=root fedora-btrfs
btrfs /var/home --subvol --name=home fedora-btrfs
ostreecontainer --url docker pull ghcr.io/odilhao/bootc-sway:latest
ostreecontainer --url docker pull ghcr.io/odilhao/bootc-server:latest

firewall --disabled
services --enabled=sshd
Expand Down

0 comments on commit 15065fa

Please sign in to comment.