my-ostree-OS/Dockerfile

54 lines
2.1 KiB
Text
Raw Normal View History

2023-07-13 19:35:04 +02:00
ARG IMAGE_NAME="${IMAGE_NAME:-kinoite}"
ARG SOURCE_IMAGE="${SOURCE_IMAGE:-kinoite}"
ARG BASE_IMAGE="quay.io/fedora-ostree-desktops/${SOURCE_IMAGE}"
ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-38}"
2023-09-16 11:03:01 +02:00
2023-10-30 07:23:47 +01:00
FROM ghcr.io/andersrh/my-ostree-os-base2:main-38 AS builder
2023-07-13 19:35:04 +02:00
ARG IMAGE_NAME="${IMAGE_NAME}"
ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION}"
2023-07-25 10:35:59 +02:00
2023-09-19 17:38:57 +02:00
RUN cd /tmp && \
2023-07-15 18:44:14 +02:00
# remove Okular and Firefox from base image
2023-10-24 11:08:31 +02:00
rpm-ostree override remove firefox firefox-langpacks okular okular-libs okular-part mozilla-openh264 && \
rpm-ostree install ksshaskpass cronie distrobox fish flatpak-builder gparted libcap-ng-devel libvirt-daemon-driver-lxc libvirt-daemon-lxc lld nvtop procps-ng-devel seadrive-gui virt-manager waydroid && \
2023-07-25 00:15:36 +02:00
# install Pulseaudio utilities
rpm-ostree install pulseaudio-utils && \
# install Apple HFS+ tools
2023-09-16 11:47:05 +02:00
rpm-ostree install hfsplus-tools && \
2023-07-25 10:29:39 +02:00
# install Mullvad VPN
mkdir /var/opt && rpm-ostree install https://mullvad.net/da/download/app/rpm/latest && \
mv "/opt/Mullvad VPN" /usr/lib/opt/ && \
2023-09-07 15:57:24 +02:00
# enable automatic updates
sed -i 's/#AutomaticUpdatePolicy.*/AutomaticUpdatePolicy=stage/' /etc/rpm-ostreed.conf && \
2023-09-07 16:54:05 +02:00
# change auto update interval
2023-09-26 23:37:21 +02:00
sed -i 's/OnUnitInactiveSec.*/OnUnitInactiveSec=1h\nOnCalendar=*-*-* 06:40:00\nPersistent=true/' /usr/lib/systemd/system/rpm-ostreed-automatic.timer
2023-09-25 18:08:51 +02:00
# Install TeamViewer
2023-10-15 16:18:33 +02:00
RUN rpm-ostree install https://download.teamviewer.com/download/linux/teamviewer.x86_64.rpm && \
mv "/opt/teamviewer" /usr/lib/opt/
2023-10-16 13:34:27 +02:00
# Disable Teamviewerd by default
RUN systemctl disable teamviewerd
2023-10-30 07:23:47 +01:00
RUN systemctl enable rpm-ostreed-automatic.timer
2023-09-25 18:08:51 +02:00
# Change ZRAM max to 16GB
RUN sed -i 's/zram-size.*/zram-size = min(ram, 16384)/' /usr/lib/systemd/zram-generator.conf
# Copy config files
COPY etc /etc
# Clear cache, /var and /tmp and commit ostree
RUN rm -rf /tmp/* /var/* && mkdir -p /var/tmp && chmod -R 1777 /var/tmp && \
ostree container commit
FROM builder AS builder2
2023-09-19 15:15:46 +02:00
2023-09-19 17:21:26 +02:00
# Install VirtualBox
RUN rpm-ostree install VirtualBox
# Clear cache, /var and /tmp and commit ostree
2023-09-19 18:12:36 +02:00
RUN rm -rf /tmp/* /var/* && mkdir -p /var/tmp && chmod -R 1777 /var/tmp && \
2023-09-19 20:35:09 +02:00
ostree container commit