Commit 9d7cae2d authored by Carlyle, Adam's avatar Carlyle, Adam
Browse files

Provision script needs libarchive-dev package for Singularity 2.5

parent 27e232c5
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ function ssh_is_up() {
    ssh -o StrictHostKeyChecking=no -i ${KEY_FILE} cades@${VM_IP} exit &> /dev/null
}
while ! ssh_is_up; do
    sleep 1
    sleep 3
done

# Reboot to fix a strange issue with apt-get update: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
@@ -56,7 +56,7 @@ echo "Reboot the server to work around /var/lib/apt/lists/lock issue when using
openstack server reboot --wait ${VM_UUID}
sleep 10
while ! ssh_is_up; do
    sleep 1
    sleep 3
done

echo "Fixing ORNL TCP timeout issue for current session"
@@ -81,7 +81,7 @@ openstack server reboot --wait ${VM_UUID}
echo "Shutting down server"
openstack server stop ${VM_UUID}
until openstack server list --status SHUTOFF | grep ${VM_UUID} > /dev/null 2>&1; do
  sleep 1
  sleep 3
done
echo -ne "\n"

+3 −3
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ function ssh_is_up() {
    ssh -o StrictHostKeyChecking=no -i ${KEY_FILE} cades@${VM_IP} exit &> /dev/null
}
while ! ssh_is_up; do
    sleep 1
    sleep 3
done

# Reboot to fix a strange issue with apt-get update: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
@@ -44,7 +44,7 @@ echo "Reboot the server to work around /var/lib/apt/lists/lock issue when using
openstack server reboot --wait ${VM_UUID}
sleep 10
while ! ssh_is_up; do
    sleep 1
    sleep 3
done

echo "Fixing ORNL TCP timeout issue for current session"
+1 −0
Original line number Diff line number Diff line
@@ -73,6 +73,7 @@ cat << EOF > /root/.rpmmacros
EOF

# Install Singularity
apt-get install -y libarchive-dev
cd /
git clone https://github.com/singularityware/singularity.git
cd singularity