-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
91269be
commit 708b239
Showing
22 changed files
with
164 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
ARG BASE_REPO=quay.io/aleskandrox/fedora | ||
ARG BASE_TAG=kinoite-rawhide | ||
FROM ${BASE_REPO}:${BASE_TAG} | ||
|
||
ARG TOOLBOX_IMAGE=quay.io/aleskandrox/fedora:toolbox | ||
ENTRYPOINT ["/bin/bash"] | ||
|
||
RUN set -x; arch=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/'); cat /etc/os-release \ | ||
&& 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 \ | ||
&& ostree container commit | ||
|
||
COPY *.list /tmp | ||
RUN set -x; cat /etc/os-release; rpm-ostree --version; ostree --version; \ | ||
rpm-ostree install $(</tmp/packages.list) $(</tmp/packages.virt.list) $(</tmp/packages.desktop.list) \ | ||
&& ln -sf /usr/bin/ld.bfd /usr/bin/ld \ | ||
&& ln -sf /usr/bin/netcat /usr/bin/nc \ | ||
&& ostree container commit | ||
|
||
# FIXME: Remove the replacement for releasever once fedora-cisco-openh264 provides builds for fedora 40. | ||
RUN set -x; sed -i "s/\$releasever/39/g" /etc/yum.repos.d/fedora-cisco-openh264.repo; \ | ||
rpm-ostree override remove mesa-va-drivers libavcodec-free \ | ||
libavfilter-free libavformat-free libavutil-free libpostproc-free libswresample-free libswscale-free \ | ||
--install ffmpeg --install mesa-va-drivers-freeworld | ||
|
||
RUN set -x; if rpm -qa | grep -q gnome-desktop; then \ | ||
PACKAGES_INSTALL="gnome-tweaks tilix gnome-extensions-app gedit evince evolution"; \ | ||
rpm-ostree install $PACKAGES_INSTALL && ostree container commit; fi | ||
|
||
RUN set -x; if rpm -qa | grep -q plasma-desktop; then \ | ||
PACKAGES_INSTALL="kdepim okular gwenview"; \ | ||
rpm-ostree install $PACKAGES_INSTALL && ostree container commit; fi | ||
|
||
# The repositories for docker-ce are currently pinned to Fedora 39. | ||
RUN set -x; \ | ||
source /etc/os-release; \ | ||
curl -L https://download.docker.com/linux/fedora/docker-ce.repo | releasever=39 envsubst '$releasever' \ | ||
| tee /etc/yum.repos.d/docker-ce.repo \ | ||
&& rpm-ostree install docker-ce docker-ce-cli && ostree container commit | ||
|
||
COPY overlay.d/01-common/ / | ||
COPY overlay.d/05-systemd/ / | ||
COPY overlay.d/10-desktop/ / | ||
|
||
RUN set -x; sed -i \ | ||
's/AutomaticUpdatePolicy=.*/AutomaticUpdatePolicy=stage/' \ | ||
/etc/rpm-ostreed.conf \ | ||
&& systemctl preset-all \ | ||
&& ostree container commit | ||
|
||
RUN HOME=/tmp RUNZSH=no CHSH=no ZSH=/usr/lib/ohmyzsh \ | ||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" \ | ||
&& set -x \ | ||
&& wget -qO /usr/lib/ohmyzsh/custom/kube-ps1.plugin.zsh \ | ||
https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/plugins/kube-ps1/kube-ps1.plugin.zsh \ | ||
&& mv /usr/share/zsh/*.zsh /usr/lib/ohmyzsh/custom/ \ | ||
&& git clone https://github.com/zsh-users/zsh-history-substring-search \ | ||
/usr/lib/ohmyzsh/custom/plugins/zsh-history-subscring-search \ | ||
&& git clone https://github.com/zsh-users/zsh-syntax-highlighting.git \ | ||
/usr/lib/ohmyzsh/custom/plugins/zsh-syntax-highlighting \ | ||
&& chsh -s /bin/zsh root \ | ||
&& echo 'PATH=~/bin:~/.bin:~/.opt/bin:$PATH' >> /etc/zshenv \ | ||
&& sed -i 's|^SHELL=.*|SHELL=/usr/bin/zsh|' /etc/default/useradd \ | ||
# ${VARIANT_ID^} is not posix compliant and is not parsed correctly by zsh \ | ||
&& sed -i 's/VARIANT_ID^/VARIANT_ID/' /etc/profile.d/toolbox.sh \ | ||
&& ostree container commit | ||
|
||
RUN set -x; update-crypto-policies --set legacy --no-reload \ | ||
&& echo "image = \"${TOOLBOX_IMAGE}\"" >> /etc/containers/toolbox.conf \ | ||
&& ostree container commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
overlay.d/05-systemd/usr/lib/systemd/system-preset/85-common.preset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
enable kargs-mitigations.service | ||
enable rpm-ostreed-automatic.timer | ||
enable lower-priority.slice |
1 change: 0 additions & 1 deletion
1
overlay.d/05-systemd/usr/lib/systemd/system-preset/90-mitigations.preset
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
overlay.d/10-desktop/usr/lib/systemd/system-preset/90-fedora-custom.preset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
enable ensure-flatpak.service | ||
enable ensure-flatpak-flathub.service | ||
enable docker.service |
6 changes: 0 additions & 6 deletions
6
overlay.d/10-desktop/usr/lib/systemd/system-preset/97-fedora-custom.preset
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
overlay.d/10-desktop/usr/lib/systemd/system/ensure-flatpak.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
[Unit] | ||
Description="Ensure a list of Flatpak applications is installed" | ||
Description=Ensure a list of Flatpak applications is installed | ||
After=ensure-flatpak-flathub.service network-online.target | ||
Slice=lower-priority.slice | ||
|
||
[Service] | ||
Type=oneshot | ||
RemainAfterExit=true | ||
ExecStart=/usr/bin/bash -c '/usr/bin/flatpak install --or-update --noninteractive --assumeyes $(</usr/share/ensure-flatpak/applications.list)' | ||
Restart=on-failure | ||
RestartSec=30 | ||
Slice=lower-priority.slice | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
22 changes: 0 additions & 22 deletions
22
overlay.d/10-desktop/usr/lib/systemd/system/initramfs-rebuild.service
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
overlay.d/10-fcos/usr/lib/systemd/system/ovsdb-server.service.d/99-okd-permission-fix.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
[Service] | ||
Restart=always | ||
ExecStartPre=-/bin/sh -c '/usr/bin/chown -R ${OVS_USER_ID} /var/lib/openvswitch' | ||
ExecStartPre=-/bin/sh -c '/usr/bin/chown -R ${OVS_USER_ID} /etc/openvswitch' | ||
ExecStartPre=-/bin/sh -c '/usr/bin/chown -R ${OVS_USER_ID} /run/openvswitch' |
4 changes: 0 additions & 4 deletions
4
overlay.d/15-microshift/usr/lib/systemd/system-preset/70-microshift.preset
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
overlay.d/15-microshift/usr/lib/systemd/system-preset/95-microshift.preset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
disable systemd-resolved.service | ||
enable crio.service | ||
enable firewalld.service | ||
enable fix-resolvconf.service | ||
enable openvswitch.service | ||
enable microshift-firewall.service | ||
enable microshift.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
firewall-config | ||
pulseaudio-utils | ||
virt-manager |
Oops, something went wrong.