switch to hybrid

This commit is contained in:
aptalca 2022-08-02 11:14:57 -04:00
parent 7d00141eae
commit 4d0beb6c86
6 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,21 @@
#!/usr/bin/with-contenv bash
echo "**** installing nodejs dev environment ****"
if ! dpkg -l | grep gnupg > /dev/null; then
apt-get update && apt-get install -y --no-install-recommends gnupg
fi
source /etc/lsb-release
[[ ! -f "/etc/apt/sources.list.d/nodesource.list" ]] && \
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
echo "deb https://deb.nodesource.com/node_14.x ${DISTRIB_CODENAME} main" \
> /etc/apt/sources.list.d/nodesource.list
[[ ! -f "/etc/apt/sources.list.d/yarn.list" ]] && \
curl -s https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo 'deb https://dl.yarnpkg.com/debian/ stable main' \
> /etc/apt/sources.list.d/yarn.list
echo "**** Adding nodejs and yarn to package install list ****"
echo "\
nodejs \
yarn" >> /mod-repo-packages-to-install.list

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-mod-code-server-nodejs-add-package/run