Skip to content

Commit

Permalink
add some comments explaining container file actions
Browse files Browse the repository at this point in the history
  • Loading branch information
10leej committed Oct 8, 2024
1 parent e25db54 commit a909aa1
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions Containerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
# pull in the ublue minimal image
FROM ghcr.io/ublue-os/base-main:latest
# setup rpmfusion repos
# install packages
RUN rpm-ostree install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

# because kodi we need these repo packages as well
RUN rpm-ostree install rpmfusion-free-release-tainted rpmfusion-nonfree-release-tainted

# lets install the fundemental packages
RUN rpm-ostree install cage kodi kodi-inputstream-adaptive kodi-pvr-iptvsimple kodi-firewalld nfs-utils samba podman
# install extra tools
RUN rpm-ostree install tmux htop bmon vim micro nano

# now we need to get kodi to automagically launch on boot
WORKDIR /
COPY systemd/kodi-wayland.service /etc/systemd/system/kodi-wayland.service
# and let tell it to go
RUN systemctl enable kodi-wayland.service

# copy over out example mounts
Expand All @@ -22,17 +24,17 @@ COPY systemd/var-mnt-smb-media.mount /etc/systemd/system/var-mnt-smb-media.mount
# enable ssh access
RUN systemctl enable sshd.service

# ok lets add user accounts

COPY systemd/generate-user-admin.service /etc/systemd/system/generate-user-admin.service
COPY systemd/generate-user-kodi.service /etc/systemd/system/generate-user-kodi.service
RUN systemctl enable generate-user-admin.service
RUN systemctl enable generate-user-kodi.service

# lets see if restorecon can save us
RUN restorecon -Rv /etc/systemd/system/generate-user-admin.service
RUN restorecon -Rv /etc/systemd/system/generate-user-kodi.service
# yeah disable this
# # ok lets add user accounts
#
# COPY systemd/generate-user-admin.service /etc/systemd/system/generate-user-admin.service
# COPY systemd/generate-user-kodi.service /etc/systemd/system/generate-user-kodi.service
# RUN systemctl enable generate-user-admin.service
# RUN systemctl enable generate-user-kodi.service
#
# # lets see if restorecon can save us
# RUN restorecon -Rv /etc/systemd/system/generate-user-admin.service
# RUN restorecon -Rv /etc/systemd/system/generate-user-kodi.service

# and now thats done lets ensure the default target is graphical
RUN systemctl set-default graphical.target
Expand Down

0 comments on commit a909aa1

Please sign in to comment.