generated from ublue-os/image-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·79 lines (67 loc) · 1.83 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/bin/bash
set -ouex pipefail
RELEASE="$(rpm -E %fedora)"
### Install repos
# Docker Community Edition
curl -L https://download.docker.com/linux/fedora/docker-ce.repo \
-o /etc/yum.repos.d/docker-ce.repo
# Koi
curl -L \
https://copr.fedorainfracloud.org/coprs/birkch/Koi/repo/fedora-$RELEASE/birkch-Koi-fedora-$RELEASE.repo \
-o /etc/yum.repos.d/birkch-Koi-fedora-$RELEASE.repo
# Visual Studio Code
rpm --import https://packages.microsoft.com/keys/microsoft.asc
cat << EOF > /etc/yum.repos.d/vscode.repo
[code]
name=Visual Studio Code
baseurl=https://packages.microsoft.com/yumrepos/vscode
enabled=1
gpgcheck=1
gpgkey=https://packages.microsoft.com/keys/microsoft.asc
EOF
### Install packages
# Packages can be installed from any enabled yum repo on the image.
# RPMfusion repos are available by default in ublue main images
# List of rpmfusion packages can be found here:
# https://mirrors.rpmfusion.org/mirrorlist?path=free/fedora/updates/39/x86_64/repoview/index.html&protocol=https&redirect=1
# Uninstall base packages
rpm-ostree uninstall \
firefox \
firefox-langpacks \
toolbox
# Installs packages
rpm-ostree install -y \
code \
containerd.io \
distrobox \
docker-buildx-plugin \
docker-ce \
docker-ce-cli \
docker-compose-plugin \
git-lfs \
Koi \
libvirt-daemon-config-network \
libvirt-daemon-kvm \
python3-libguestfs \
qemu-kvm \
remmina \
remmina-plugins-exec \
remmina-plugins-kwallet \
remmina-plugins-python \
remmina-plugins-rdp \
remmina-plugins-secret \
remmina-plugins-spice \
remmina-plugins-vnc \
remmina-plugins-www \
remmina-plugins-x2go \
solaar \
virt-install \
virt-manager \
virt-top \
virt-viewer \
wireshark
### Enable services
systemctl enable \
docker \
libvirtd \
podman.socket