-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update container installation scripts.
- Loading branch information
1 parent
bb74bec
commit 72019f8
Showing
4 changed files
with
49 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
For installing the container software itself, not building images. | ||
Scripts to install the container software itself, not building images. | ||
|
||
See Dockerfiles at https://github.com/geoschem/geos-chem-docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# /bin/bash | ||
# https://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html | ||
|
||
sudo yum update -y | ||
sudo amazon-linux-extras install -y docker | ||
sudo service docker start | ||
sudo usermod -a -G docker ec2-user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
scripts/build_environment/Container/install_singularity_alinux.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
# https://www.sylabs.io/guides/3.0/user-guide/installation.html#installation | ||
|
||
# Dependencies | ||
sudo yum update -y && \ | ||
sudo yum groupinstall -y 'Development Tools' && \ | ||
sudo yum install -y \ | ||
openssl-devel \ | ||
libuuid-devel \ | ||
libseccomp-devel \ | ||
wget \ | ||
squashfs-tools | ||
|
||
export VERSION=1.11 OS=linux ARCH=amd64 && \ | ||
wget https://dl.google.com/go/go$VERSION.$OS-$ARCH.tar.gz && \ | ||
sudo tar -C /usr/local -xzvf go$VERSION.$OS-$ARCH.tar.gz && \ | ||
rm go$VERSION.$OS-$ARCH.tar.gz | ||
|
||
echo 'export GOPATH=${HOME}/go' >> ~/.bashrc && \ | ||
echo 'export PATH=/usr/local/go/bin:${PATH}:${GOPATH}/bin' >> ~/.bashrc && \ | ||
. ~/.bashrc | ||
|
||
|
||
go get -u github.com/golang/dep/cmd/dep | ||
|
||
# Install singularity from source | ||
go get -d github.com/sylabs/singularity | ||
|
||
export VERSION=v3.0.1 # or another tag or branch if you like && \ | ||
cd $GOPATH/src/github.com/sylabs/singularity && \ | ||
git fetch && \ | ||
git checkout $VERSION # omit this command to install the latest bleeding edge code from master | ||
|
||
./mconfig && \ | ||
make -C ./builddir && \ | ||
sudo make -C ./builddir install | ||
|
||
echo '. /usr/local/etc/bash_completion.d/singularity' >> ~/.bashrc |