Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updates from Gateways24 #188

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion coldfront/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ dnf install -y \
nginx \
openssl \
openldap-devel \
redis
redis \
mariadb-server

log_info "Creating coldfront system user account.."
groupadd -r coldfront
Expand Down
44 changes: 29 additions & 15 deletions ondemand/install-dex-arm64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,45 @@ log_info() {
printf "\n\e[0;35m $1\e[0m\n\n"
}

DEX_VERSION=${DEX_VERSION:-2.32.0}
DEX_PATCH_VERSION=${DEX_PATCH_VERSION:-9366a1969bd656daa1df44e0bdd02f14437ed466}
DEX_VERSION=${DEX_VERSION:-2.36.0}
ARCH=${ARCH:-arm64} # Set architecture, change to 'amd64' if needed

dnf install -y golang-bin
log_info "Install dex ${DEX_VERSION}..."
log_info "Installing dependencies..."
dnf install -y wget git gcc make go

log_info "Downloading and building dex ${DEX_VERSION} for ${ARCH}..."
wget -O /tmp/dex-${DEX_VERSION}.tar.gz https://github.com/dexidp/dex/archive/v${DEX_VERSION}.tar.gz
wget -O /tmp/dex-ood.patch https://github.com/OSC/dex/commit/${DEX_PATCH_VERSION}.patch
pushd /tmp
tar xvf dex-${DEX_VERSION}.tar.gz
pushd dex-${DEX_VERSION}
make build
mv bin/dex bin/dex-orig
patch -p1 < ../dex-ood.patch
make build
mv bin/dex /usr/sbin/ondemand-dex-session
mv bin/dex-orig /usr/sbin/ondemand-dex
mv bin/dex /usr/sbin/ondemand-dex
cp /usr/sbin/ondemand-dex /usr/sbin/ondemand-dex-session
popd
rm -rf /tmp/dex*

log_info "Setting up ondemand-dex..."
mkdir -p /usr/share/ondemand-dex/
git clone https://github.com/OSC/ondemand-dex.git
pushd ondemand-dex
mv web /usr/share/ondemand-dex/
popd
rm -Rf ondemand-dex
git clone https://github.com/OSC/ondemand-dex.git /tmp/ondemand-dex
mv /tmp/ondemand-dex/web /usr/share/ondemand-dex/
rm -rf /tmp/ondemand-dex

groupadd -r ondemand-dex
useradd -r -d /var/lib/ondemand-dex -g ondemand-dex -s /sbin/nologin -c "OnDemand Dex" ondemand-dex
mkdir -p /etc/ood/dex
chown ondemand-dex:ondemand-dex /etc/ood/dex

log_info "Creating default config.yaml for dex"
cat <<EOL > /etc/ood/dex/config.yaml
issuer: http://localhost:5556
storage:
type: sqlite3
config:
file: /var/lib/ondemand-dex/dex.db
web:
http: 0.0.0.0:5556
EOL

chown ondemand-dex:ondemand-dex /etc/ood/dex/config.yaml

log_info "ondemand-dex installation completed."
16 changes: 7 additions & 9 deletions slurm/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ log_info() {

SLURM_VERSION=${SLURM_VERSION:-21.08.8-2}
WEBSOCKIFY_VERSION=${WEBSOCKIFY_VERSION:-0.11.0}
ARCHTYPE=`uname -m`
ARCHTYPE=$(uname -m)

log_info "Installing required packages for building slurm.."
curl -o /etc/yum.repos.d/turbovnc.repo https://turbovnc.org/pmwiki/uploads/Downloads/TurboVNC.repo
curl -o /etc/yum.repos.d/turbovnc.repo https://raw.githubusercontent.com/TurboVNC/repo/main/TurboVNC.repo
dnf -y install dnf-plugins-core
dnf -y config-manager --set-enabled powertools
dnf -y module enable ruby:3.0 nodejs:14
Expand All @@ -35,7 +35,7 @@ dnf install -y \
mariadb-devel \
python39 \
python39-devel \
python2-numpy \
python3-numpy \
kitty-terminfo \
stress

Expand All @@ -50,7 +50,7 @@ wget -O /tmp/websockify-${WEBSOCKIFY_VERSION}.tar.gz https://github.com/novnc/we
pushd /tmp
tar xzf websockify-${WEBSOCKIFY_VERSION}.tar.gz
pushd websockify-${WEBSOCKIFY_VERSION}
python3 setup.py install
python3 -m pip install .
popd
rm -rf /tmp/websockify*

Expand All @@ -59,7 +59,7 @@ curl -o /tmp/slurm-${SLURM_VERSION}.tar.bz2 https://download.schedmd.com/slurm/s
pushd /tmp
tar xf slurm-${SLURM_VERSION}.tar.bz2
pushd slurm-${SLURM_VERSION}
./configure --prefix=/usr --sysconfdir=/etc/slurm
./configure --prefix=/usr --sysconfdir=/etc/slurm
make -j4
make install
install -D -m644 etc/cgroup.conf.example /etc/slurm/cgroup.conf.example
Expand All @@ -74,7 +74,7 @@ groupadd -r --gid=1000 slurm
useradd -r -g slurm --uid=1000 slurm

log_info "Setting up slurm directories.."
mkdir /etc/sysconfig/slurm \
mkdir -p /etc/sysconfig/slurm \
/var/spool/slurmd \
/var/run/slurmd \
/var/run/slurmdbd \
Expand Down Expand Up @@ -110,10 +110,8 @@ log_info "Configuring PCP logger with suitable container defaults.."
sed -i 's#^LOCALHOSTNAME.*$#LOCALHOSTNAME y n "/home/pcp/$(date +%Y)/$(date +%m)/LOCALHOSTNAME/$(date +%Y)-$(date +%m)-$(date +%d)" -r -c /etc/pcp/pmlogger/pmlogger-supremm.config#' /etc/pcp/pmlogger/control.d/local

log_info "Installing Jupyter.."
python3 -m venv --without-pip --prompt jupyter/2.1.4 /usr/local/jupyter/2.1.4
python3 -m venv /usr/local/jupyter/2.1.4 --prompt jupyter/2.1.4
source /usr/local/jupyter/2.1.4/bin/activate
curl https://bootstrap.pypa.io/get-pip.py | python

pip install jupyterlab==2.1.4 jupyter-console qtconsole ipywidgets plotly==4.8.2 pandas scikit-learn numpy
deactivate

Expand Down
4 changes: 4 additions & 0 deletions xdmod/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ ARCHTYPE=`uname -m`
dnf module -y reset nodejs
dnf module -y install nodejs:16

dnf -y module reset php
dnf -y module install php:7.4

dnf install -y \
expect \
python3-devel \
Expand Down Expand Up @@ -64,6 +67,7 @@ dnf install -y \
#------------------------
#
#------------------------
pecl channel-update pecl.php.net
pecl install mongodb
echo "extension=mongodb.so" >> /etc/php.d/40-mongodb.ini

Expand Down