Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 6eb3d49a authored by Thomas Lavocat's avatar Thomas Lavocat
Browse files

Final image

parent 58c7c480
......@@ -20,6 +20,46 @@
apt-get install -y python-setuptools
apt-get install -y python-setuptools
apt-get install -y python3-zmq
echo 'deb http://ftp.fr.debian.org/debian/ stretch main contrib non-free' > /etc/apt/sources.list.d/stretch.list
apt-get update
apt-get install -y --no-install-recommends openjdk-8-jre-headless openjdk-8-jdk-headless
rm /etc/apt/sources.list.d/stretch.list
apt-get clean
rm -rf /var/lib/apt/lists/*
#Fetch and build ZMQ
#
#One should check the library version between his build and this one.
#If you want to upgrade your zmq version, make sure that zeromq is compatible
#with libsodium. After rebuilding the dependecies, you will have to get the new
#pebee zmq4 version. Otherwise this will lead to execution error not compilation
#one.
- install_libsodium:
- exec_in : |
wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.10.tar.gz
wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.10.tar.gz.sig
wget https://download.libsodium.org/jedi.gpg.asc
gpg --import jedi.gpg.asc
gpg --verify libsodium-1.0.10.tar.gz.sig libsodium-1.0.10.tar.gz
tar zxvf libsodium-1.0.10.tar.gz
cd libsodium-1.0.10
./configure
make check
make install
ldconfig
cd ..
- install_zeromq:
- exec_in : |
wget https://github.com/zeromq/libzmq/releases/download/v4.2.2/zeromq-4.2.2.tar.gz
tar zxvf zeromq-4.2.2.tar.gz
cd zeromq-4.2.2
./configure
make; make check; make install;
ldconfig
cd ..
# We are on a jessie, so /home mount is override by the nfs one.
# If we want to have an other user, we need to put his home environnement inside
......@@ -28,22 +68,26 @@
# encrypted version of the password.
# The password was generated using openssl : openssl passwd -crypt erebor
- install_user:
- exec_in :
useradd erebor -b /var/lib -p rFzpghxChujSM -s /bin/bash -m
- exec_in : useradd erebor -b /var/lib -p rFzpghxChujSM -s /bin/bash -m
#Install Yggdrasil
- install_erebor:
- exec_in : |
git clone https://gricad-gitlab.univ-grenoble-alpes.fr/lavocatt/yggdrasil.git
pip3 install -e yggdrasil
mkdir /var/lib/yggdrasil
cd /var/lib/yggdrasil
git clone https://gricad-gitlab.univ-grenoble-alpes.fr/lavocatt/yggdrasil.git
cd yggdrasil
pip3 install -e .
#Install spark
- install_spark:
- exec_in : |
wget http://apache.crihan.fr/dist/spark/spark-2.2.0/spark-2.2.0-bin-hadoop2.7.tgz
tar -zxvf spark-2.2.0-bin-hadoop2.7.tgz
echo "export PATH=$PATH:/spark/spark-2.2.0-bin-hadoop2.7/bin" > /etc/profile.d/spark.sh
echo "export CLASSPATH=$CLASSPATH:/spark/spark-2.2.0-bin-hadoop2.7/jars" >> /etc/profile.d/spark.sh
mkdir /var/lib/spark
cd /var/lib/spark
wget http://apache.crihan.fr/dist/spark/spark-2.2.0/spark-2.2.0-bin-hadoop2.7.tgz
tar -zxvf spark-2.2.0-bin-hadoop2.7.tgz
echo "export PATH=$PATH:/var/lib/spark/spark-2.2.0-bin-hadoop2.7/bin" > /etc/profile.d/spark.sh
echo "export CLASSPATH=$CLASSPATH:/var/lib/spark/spark-2.2.0-bin-hadoop2.7/jars" >> /etc/profile.d/spark.sh
#id_local is a special sshkey without passphrase. I created it to run erebor
#tests. The ssh key generator launch an interactive shell to enter the
......@@ -53,8 +97,7 @@
#So, if you want to reuse this code, you need to change .ssh/id_local to another
#or generate a new one.
- install_shkeys:
- exec_in: |
mkdir /var/lib/erebor/.ssh/
- exec_in : mkdir /var/lib/erebor/.ssh/
- local2in :
- ~/Documents/inria/m2/kameleon/steps/.ssh/id_local
- /var/lib/erebor/.ssh/id_local
......@@ -62,22 +105,22 @@
- ~/Documents/inria/m2/kameleon/steps/.ssh/id_local.pub
- /var/lib/erebor/.ssh/id_local.pub
- exec_in : |
cp /var/lib/erebor/.ssh/id_local /var/lib/erebor/.ssh/id_rsa
cp /var/lib/erebor/.ssh/id_local.pub /var/lib/erebor/.ssh/id_rsa.pub
chown erebor:erebor /var/lib/erebor/.ssh
chown erebor:erebor /var/lib/erebor/.ssh/id_rsa
chown erebor:erebor /var/lib/erebor/.ssh/id_rsa.pub
chown erebor:erebor /var/lib/erebor/.ssh/id_local
chown erebor:erebor /var/lib/erebor/.ssh/id_local.pub
chmod 700 /var/lib/erebor/.ssh
chmod 600 /var/lib/erebor/.ssh/id_rsa
chmod 644 /var/lib/erebor/.ssh/id_rsa.pub
chmod 600 /var/lib/erebor/.ssh/id_local
chmod 644 /var/lib/erebor/.ssh/id_local.pub
cat /var/lib/erebor/.ssh/id_local.pub > /var/lib/erebor/.ssh/authorized_keys
cat /var/lib/erebor/.ssh/id_local.pub > /var/lib/erebor/.ssh/known_hosts
chown erebor:erebor /var/lib/erebor/.ssh/authorized_keys
chown erebor:erebor /var/lib/erebor/.ssh/known_hosts
echo "MaxSessions 1000" >> /etc/ssh/sshd_config
cp /var/lib/erebor/.ssh/id_local /var/lib/erebor/.ssh/id_rsa
cp /var/lib/erebor/.ssh/id_local.pub /var/lib/erebor/.ssh/id_rsa.pub
chown erebor:erebor /var/lib/erebor/.ssh
chown erebor:erebor /var/lib/erebor/.ssh/id_rsa
chown erebor:erebor /var/lib/erebor/.ssh/id_rsa.pub
chown erebor:erebor /var/lib/erebor/.ssh/id_local
chown erebor:erebor /var/lib/erebor/.ssh/id_local.pub
chmod 700 /var/lib/erebor/.ssh
chmod 600 /var/lib/erebor/.ssh/id_rsa
chmod 644 /var/lib/erebor/.ssh/id_rsa.pub
chmod 600 /var/lib/erebor/.ssh/id_local
chmod 644 /var/lib/erebor/.ssh/id_local.pub
cat /var/lib/erebor/.ssh/id_local.pub > /var/lib/erebor/.ssh/authorized_keys
cat /var/lib/erebor/.ssh/id_local.pub > /var/lib/erebor/.ssh/known_hosts
chown erebor:erebor /var/lib/erebor/.ssh/authorized_keys
chown erebor:erebor /var/lib/erebor/.ssh/known_hosts
echo "MaxSessions 1000" >> /etc/ssh/sshd_config
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment