Wake Forest University (WFU) HPC Team
Primary Contact: Sean Anderson (anderss@wfu.edu)
Developed for DEAC OnDemand, the OOD deployment on the DEAC Cluster which is a part of the WFU HPC Facility.
Click here to see instructions on how to install the Code Server package.
# convenient environment variables
export VERSION=4.103.2
export TARGET="/deac/opt/rocky9-noarch/code-server/${VERSION}"
export MODULE="/deac/opt/modulefiles/rocky9-noarch/utils/code-server/${VERSION}"
# prepare directories
mkdir -p /tmp/code
mkdir -p $(dirname ${TARGET})
# download and uncompress package
curl -fL https://github.com/coder/code-server/releases/download/v${VERSION}/code-server-${VERSION}-linux-amd64.tar.gz | tar -xz -C /tmp/code
# install
mv /tmp/code/code-server-${VERSION}-linux-amd64 $TARGET
cd ${TARGET}/lib/vscode/bin/remote-cli
ln -sf code-server code
# clean temp files
rm -rf /tmp/code
# create module file directory
mkdir -p $(dirname ${MODULE})
# create module file
cat <<EOF > $MODULE
#%Module
##
proc ModulesHelp { } {
puts stderr "\tSets up environment for using code-server."
}
module-whatis "Sets up environment for using code-server"
set version "$VERSION"
set basedir "$TARGET"
################################################################################
################################################################################
prepend-path PATH \$basedir/bin
EOF