my-ostree-OS/Dockerfile

50 lines
2 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-11-02 15:21:51 +01:00
FROM ghcr.io/andersrh/my-ostree-os-kernel-akmods:main-38 AS builder
2023-07-13 19:35:04 +02:00
ARG CACHEBUST=0
2023-07-13 19:35:04 +02:00
ARG IMAGE_NAME="${IMAGE_NAME}"
ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION}"
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
rpm-ostree override remove firefox firefox-langpacks okular okular-libs okular-part && \
2023-11-10 16:06:57 +01:00
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 kerver pulseaudio-utils hfsplus-tools VirtualBox && \
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
2023-11-09 14:44:17 +01:00
# Add docker-compose dependency for "podman compose" command
RUN rpm-ostree install docker-compose
# Add docker -> podman alias for docker-compose to work properly
RUN ln -s /usr/bin/podman /usr/bin/docker
2023-11-11 15:22:25 +01:00
RUN rpm-ostree install neofetch
2023-09-25 18:08:51 +02:00
# Copy config files
COPY etc /etc
# Copy /usr
COPY usr /usr
2023-09-25 18:08:51 +02:00
# 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