switch to hybrid

This commit is contained in:
aptalca
2022-08-10 16:37:46 -04:00
parent 10972c2914
commit da2a074c87
13 changed files with 25 additions and 3 deletions
@@ -0,0 +1,15 @@
#!/usr/bin/with-contenv bash
if ! dpkg -l | grep gnupg > /dev/null; then
apt-get update && apt-get install -y gnupg
fi
if [ ! -f "/etc/apt/sources.list.d/hashicorp.list" ]; then
echo "**** Adding terraform packages to install list ****"
curl -s https://apt.releases.hashicorp.com/gpg | apt-key add -
source /etc/lsb-release
echo "deb https://apt.releases.hashicorp.com ${DISTRIB_CODENAME} main" > /etc/apt/sources.list.d/hashicorp.list
echo "terraform" >> /mod-repo-packages-to-install.list
else
echo "**** Terraform packages already installed, skipping ****"
fi
@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-mod-code-server-terraform-add-package/run
@@ -0,0 +1,3 @@
#!/usr/bin/with-contenv bash
install-extension hashicorp.terraform
@@ -0,0 +1 @@
oneshot
@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-mod-code-server-terraform-install/run