Created
April 19, 2018 12:08
-
-
Save CrossR/a6b71f8b86ce3ea74fd99366af0452ae to your computer and use it in GitHub Desktop.
Singularity File for SC2
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
Bootstrap: docker | |
From: ubuntu:16.04 | |
%post | |
apt-get -y update && apt-get install -y build-essential | |
apt-get install -y apt-utils | |
apt-get install -y gfortran | |
apt-get install -y libopenblas-base | |
apt-get install -y wget | |
apt-get install -y ed | |
apt-get install -y zip | |
apt-get install -y unzip | |
#Set correct locale | |
apt-get -y update && apt-get install -y locales | |
locale-gen en_GB.UTF-8 | |
export LANG=en_GB.UTF-8 | |
export LANGUAGE=en_GB.UTF-8 | |
export LC_ALL=en_GB.UTF-8 | |
apt-get install -y git-all | |
apt-get -y update | |
apt-get install -y libgtk2.0-dev | |
echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh && \ | |
wget --quiet https://repo.continuum.io/archive/Anaconda3-5.1.0-Linux-x86_64.sh -O ~/anaconda.sh && \ | |
/bin/bash ~/anaconda.sh -b -p /opt/conda && \ | |
rm ~/anaconda.sh | |
export PATH=/opt/conda/bin:$PATH | |
# Install Starcraft II | |
wget --continue --tries=0 http://blzdistsc2-a.akamaihd.net/Linux/SC2.4.0.2.zip -O /tmp/sc2.zip | |
unzip -P iagreetotheeula /tmp/sc2.zip -d /opt/ | |
rm /tmp/sc2.zip | |
wget --continue http://blzdistsc2-a.akamaihd.net/MapPacks/Melee.zip -O /tmp/melee.zip | |
unzip -P iagreetotheeula /tmp/melee.zip -d /opt/StarCraftII/Maps/ | |
rm /tmp/melee.zip | |
wget --continue https://github.com/deepmind/pysc2/releases/download/v1.2/mini_games.zip -O /tmp/mini_games.zip | |
unzip /tmp/mini_games.zip -d /opt/StarCraftII/Maps/ | |
rm /tmp/mini_games.zip | |
chmod -R 755 /opt/StarCraftII/Maps/ | |
/opt/conda/bin/pip install pysc2 | |
/opt/conda/bin/conda install -y --quiet -c anaconda tensorflow-gpu | |
mkdir /nobackup | |
%environment | |
export PATH=/opt/conda/bin:$PATH | |
export SC2PATH=/opt/StarCraftII | |
%runscript | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment