-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsingularity-build-latest.sh
More file actions
29 lines (25 loc) · 1.02 KB
/
singularity-build-latest.sh
File metadata and controls
29 lines (25 loc) · 1.02 KB
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
29
#!/bin/bash
sudo apt-get update > /tmp/.install-log
sudo apt-get -y install git \
build-essential \
libtool \
autotools-dev \
automake \
autoconf \
debootstrap \
yum \
python3-pip >> /tmp/.install-log
# Install Singularity from Github
cd /tmp && git clone http://www.github.com/singularityware/singularity
cd /tmp/singularity && ./autogen.sh && ./configure --prefix=/usr/local && make && sudo make install
# Pip3 installs
sudo pip3 install --upgrade pip &&
sudo pip3 install --upgrade google-api-python-client &&
sudo pip3 install --upgrade google &&
sudo pip3 install singularity --upgrade &&
sudo pip3 install oauth2client==3.0.0
# Main running script
python3 -c "from singularity.build.google import run_build; run_build()" > /tmp/.shub-log 2>&1
# Finish by sending log
export command=$(echo "from singularity.build.google import finish_build; finish_build()") &&
python3 -c "$command"