Compare commits
6 Commits
f0af09d779
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
c8ac923bca
|
|||
|
|
2e49de82b4 | ||
|
|
c7a34a3d5d | ||
|
|
694be4b410 | ||
|
|
fcd2779c85 | ||
|
|
29397cc965 |
@@ -3,6 +3,8 @@
|
|||||||
My personal development environment for using [Toolbox](https://containertoolbx.org/) containers, VSCodium,
|
My personal development environment for using [Toolbox](https://containertoolbx.org/) containers, VSCodium,
|
||||||
and custom shell configuration:
|
and custom shell configuration:
|
||||||
|
|
||||||
|
* rpm-ostree (start here)
|
||||||
|
* System level overlays and fixes required to make it go
|
||||||
* Toolbox
|
* Toolbox
|
||||||
* Build a custom Toolbox container image with all my stuff in it
|
* Build a custom Toolbox container image with all my stuff in it
|
||||||
* Enable the podman socket to allow running containers via podman from within Toolbox
|
* Enable the podman socket to allow running containers via podman from within Toolbox
|
||||||
@@ -18,5 +20,5 @@ and custom shell configuration:
|
|||||||
* Copy settings and keybindings
|
* Copy settings and keybindings
|
||||||
* Install and update specified extensions
|
* Install and update specified extensions
|
||||||
|
|
||||||
Use `make toolbox|shell|vscodium` for installation of specific components, or `make install` to install all
|
Use `make toolbox|shell|vscodium|act-runner` for installation of specific components, or `make install` to install all
|
||||||
components.
|
components.
|
||||||
|
|||||||
5
rpm-ostree/01-install-rpmfusion.bash
Executable file
5
rpm-ostree/01-install-rpmfusion.bash
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
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
|
||||||
9
rpm-ostree/02-install-helpers.sh
Executable file
9
rpm-ostree/02-install-helpers.sh
Executable file
@@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
rpm-ostree install \
|
||||||
|
make \
|
||||||
|
gnome-tweaks \
|
||||||
|
net-tools \
|
||||||
|
yubikey-manager \
|
||||||
|
tailscale \
|
||||||
|
NetworkManager-tui
|
||||||
8
rpm-ostree/10-install-virtualization.bash
Executable file
8
rpm-ostree/10-install-virtualization.bash
Executable file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
rpm-ostree install \
|
||||||
|
qemu \
|
||||||
|
libvirt \
|
||||||
|
libvirt-daemon-driver-storage-core \
|
||||||
|
virt-install \
|
||||||
|
virt-manager
|
||||||
21
rpm-ostree/10-install-vlc.bash
Executable file
21
rpm-ostree/10-install-vlc.bash
Executable file
@@ -0,0 +1,21 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
rpm-ostree override remove \
|
||||||
|
noopenh264 \
|
||||||
|
--install openh264 \
|
||||||
|
--install gstreamer1-plugin-openh264 \
|
||||||
|
--install mozilla-openh264
|
||||||
|
|
||||||
|
rpm-ostree override remove \
|
||||||
|
mesa-va-drivers \
|
||||||
|
libavcodec-free \
|
||||||
|
libavfilter-free \
|
||||||
|
libavformat-free \
|
||||||
|
libavutil-free \
|
||||||
|
libswresample-free \
|
||||||
|
libswscale-free \
|
||||||
|
--install ffmpeg \
|
||||||
|
--install mesa-va-drivers-freeworld \
|
||||||
|
--install ffmpegthumbnailer
|
||||||
|
|
||||||
|
rpm-ostree install vlc
|
||||||
7
rpm-ostree/README.md
Normal file
7
rpm-ostree/README.md
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# rpm-ostree
|
||||||
|
|
||||||
|
Because `make` is not installed on silverblue by default, we need to bootstrap
|
||||||
|
some stuff at the OS level directly before we can build the other targets. These
|
||||||
|
scripts will install the system level requirements, roughly in the order they
|
||||||
|
need to be done. Running `systemctl reboot` when prompted is left as an excercise
|
||||||
|
for the reader.
|
||||||
@@ -9,12 +9,13 @@ LABEL local.build.commit=${BUILD_COMMIT}
|
|||||||
|
|
||||||
ADD static-repos/google-cloud-sdk.repo /etc/yum.repos.d/google-cloud-sdk.repo
|
ADD static-repos/google-cloud-sdk.repo /etc/yum.repos.d/google-cloud-sdk.repo
|
||||||
ADD static-repos/kubernetes.repo /etc/yum.repos.d/kubernetes.repo
|
ADD static-repos/kubernetes.repo /etc/yum.repos.d/kubernetes.repo
|
||||||
ADD https://rpm.releases.hashicorp.com/fedora/hashicorp.repo /etc/yum.repos.d/hashicorp.repo
|
|
||||||
ADD https://cli.github.com/packages/rpm/gh-cli.repo /etc/yum.repos.d/github-cli.repo
|
ADD https://cli.github.com/packages/rpm/gh-cli.repo /etc/yum.repos.d/github-cli.repo
|
||||||
ADD https://download.docker.com/linux/fedora/docker-ce.repo /etc/yum.repos.d/docker-ce.repo
|
ADD https://download.docker.com/linux/fedora/docker-ce.repo /etc/yum.repos.d/docker-ce.repo
|
||||||
|
ADD https://packages.freedom.press/yum-tools-prod/dangerzone/dangerzone.repo /etc/yum.repos.d/dangerzone.repo
|
||||||
|
|
||||||
RUN dnf install --assumeyes \
|
RUN dnf install --assumeyes \
|
||||||
bind-utils \
|
bind-utils \
|
||||||
|
dangerzone \
|
||||||
direnv \
|
direnv \
|
||||||
docker-ce-cli \
|
docker-ce-cli \
|
||||||
docker-buildx-plugin \
|
docker-buildx-plugin \
|
||||||
@@ -38,7 +39,6 @@ RUN dnf install --assumeyes \
|
|||||||
net-tools \
|
net-tools \
|
||||||
oathtool \
|
oathtool \
|
||||||
openssl-devel \
|
openssl-devel \
|
||||||
packer \
|
|
||||||
pinentry \
|
pinentry \
|
||||||
podman-remote \
|
podman-remote \
|
||||||
postgresql \
|
postgresql \
|
||||||
@@ -56,7 +56,8 @@ RUN dnf install --assumeyes \
|
|||||||
ShellCheck \
|
ShellCheck \
|
||||||
virsh \
|
virsh \
|
||||||
virt-install \
|
virt-install \
|
||||||
xxhash-devel
|
xxhash-devel \
|
||||||
|
zbar-devel
|
||||||
|
|
||||||
ADD github-install.bash /tmp/github-install.bash
|
ADD github-install.bash /tmp/github-install.bash
|
||||||
RUN bash /tmp/github-install.bash && \
|
RUN bash /tmp/github-install.bash && \
|
||||||
@@ -67,4 +68,4 @@ RUN bash /tmp/github-install.bash && \
|
|||||||
|
|
||||||
ADD profile.d/*.sh /etc/profile.d/
|
ADD profile.d/*.sh /etc/profile.d/
|
||||||
|
|
||||||
RUN ln -s /usr/bin/podman-remote /usr/bin/podman
|
RUN ln -fs /usr/bin/podman-remote /usr/bin/podman
|
||||||
|
|||||||
@@ -14,6 +14,9 @@ function do_install() {
|
|||||||
local url
|
local url
|
||||||
url="${2}"
|
url="${2}"
|
||||||
|
|
||||||
|
local origin
|
||||||
|
origin="${3:-$name}"
|
||||||
|
|
||||||
local working
|
local working
|
||||||
working=$(mktemp -d)
|
working=$(mktemp -d)
|
||||||
|
|
||||||
@@ -37,9 +40,9 @@ function do_install() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${url}" == *.rpm ]]; then
|
if [[ "${url}" == *.rpm ]]; then
|
||||||
dnf install --assumeyes "${working}/${name}.rpm"
|
dnf install --assumeyes "${working}/${origin}.rpm"
|
||||||
else
|
else
|
||||||
mv "${working}/${name}" "/usr/local/bin/${name}"
|
mv "${working}/${origin}" "/usr/local/bin/${name}"
|
||||||
chmod +x "/usr/local/bin/${name}"
|
chmod +x "/usr/local/bin/${name}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -73,3 +76,6 @@ do_install cosign "https://github.com/sigstore/cosign/releases/download/${cosign
|
|||||||
|
|
||||||
codium=$(get_latest VSCodium/vscodium)
|
codium=$(get_latest VSCodium/vscodium)
|
||||||
do_install codium "https://github.com/VSCodium/vscodium/releases/download/${codium}/codium-${codium}-el8.x86_64.rpm"
|
do_install codium "https://github.com/VSCodium/vscodium/releases/download/${codium}/codium-${codium}-el8.x86_64.rpm"
|
||||||
|
|
||||||
|
yq=$(get_latest mikefarah/yq)
|
||||||
|
do_install yq "https://github.com/mikefarah/yq/releases/download/${yq}/yq_linux_amd64.tar.gz" yq_linux_amd64
|
||||||
|
|||||||
Reference in New Issue
Block a user