-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·28 lines (23 loc) · 880 Bytes
/
install.sh
File metadata and controls
executable file
·28 lines (23 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/sh
# install docker
sudo dnf config-manager \
--add-repo \
https://download.docker.com/linux/fedora/docker-ce.repo
sudo dnf makecache fast
sudo dnf install -y docker-ce
sudo usermod -aG docker $USER
sudo systemctl enable docker
sudo systemctl start docker
# pull slurm batch scheduler, webdav, and SSH docker containers
sudo docker pull nlesc/xenon-slurm:17
sudo docker pull nlesc/xenon-webdav
sudo docker pull nlesc/xenon-ssh
# download/untar van xenon-cli
wget https://github.com/NLeSC/xenon-cli/releases/download/v1.1.0-rc2/xenon-cli-shadow-1.1.0-rc2.tar
tar -xf xenon-cli-shadow-*.tar
rm *.tar
mv xenon-cli-shadow* xenon-cli
# add xenon-cli/bin to PATH at login
echo 'export PATH=$PATH:$HOME/xenon/xenon-cli/bin' >> ~/.bashrc
# Correct permissions of unsafe id_rsa private key, so it can be used to login to Docker containers
chmod go-rw unsafe-id_rsa