Merge skylab and fpf dev environments into single unified env

This commit is contained in:
2025-08-18 13:35:27 -06:00
parent b75e06638c
commit 8b0490cab5
7 changed files with 168 additions and 19 deletions

30
install-rpms.bash Executable file
View File

@@ -0,0 +1,30 @@
#!/usr/bin/env bash
set -e
latest_tenv=$(curl -sSL https://api.github.com/repos/tofuutils/tenv/releases/latest | jq -r '.tag_name')
latest_sops=$(curl -sSL https://api.github.com/repos/getsops/sops/releases/latest | jq -r '.tag_name')
latest_cosign=$(curl -sSL https://api.github.com/repos/sigstore/cosign/releases/latest | jq -r '.tag_name')
latest_codium=$(curl -sSL https://api.github.com/repos/VSCodium/vscodium/releases/latest | jq -r '.tag_name')
mkdir -p /tmp/rpms
tenv_url="https://github.com/tofuutils/tenv/releases/download/${latest_tenv}/tenv_${latest_tenv}_amd64.rpm"
echo "Downloading tenv-${latest_tenv}: ${tenv_url}"
curl --fail-with-body -sSLo /tmp/rpms/tenv.rpm "${tenv_url}"
sops_url="https://github.com/getsops/sops/releases/download/${latest_sops}/sops-${latest_sops:1}-1.x86_64.rpm"
echo "Downloading sops-${latest_sops}: ${sops_url}"
curl --fail-with-body -sSLo /tmp/rpms/sops.rpm "${sops_url}"
cosign_url="https://github.com/sigstore/cosign/releases/download/${latest_cosign}/cosign-${latest_cosign:1}-1.x86_64.rpm"
echo "Downloading cosign-${latest_cosign}: ${cosign_url}"
curl --fail-with-body -sSLo /tmp/rpms/cosign.rpm "${cosign_url}"
codium_url="https://github.com/VSCodium/vscodium/releases/download/${latest_codium}/codium-${latest_codium}-el8.x86_64.rpm"
echo "Downloading vscodium-${latest_codium}: ${codium_url}"
curl -sSLo /tmp/rpms/codium.rpm "${codium_url}"
dnf install --assumeyes /tmp/rpms/*.rpm
rm -rf /tmp/rpms