-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
송호연
committed
Jan 4, 2018
1 parent
dea63c9
commit 2068411
Showing
7 changed files
with
949 additions
and
68 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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
FROM tensorflow/tensorflow:latest-gpu-py3 | ||
MAINTAINER chris.ai <chris.ai@navercorp.com> | ||
|
||
USER root | ||
|
||
WORKDIR /root | ||
|
||
# Change default python 2.7 => 3 | ||
RUN rm /usr/bin/python | ||
RUN ln -s /usr/bin/python3 /usr/bin/python | ||
|
||
# Install wget | ||
RUN apt-get update | ||
RUN apt-get install wget unzip git python-mpi4py cmake libopenmpi-dev -y | ||
|
||
# Install StarCraftII | ||
RUN wget -q http://blzdistsc2-a.akamaihd.net/Linux/SC2.4.0.2.zip | ||
|
||
# Uncompress StarCraftII | ||
RUN unzip -P iagreetotheeula SC2.4.0.2.zip | ||
|
||
# Download StarCraftII Maps | ||
RUN wget -q https://github.com/deepmind/pysc2/releases/download/v1.2/mini_games.zip | ||
|
||
RUN wget -q http://blzdistsc2-a.akamaihd.net/MapPacks/Melee.zip | ||
RUN wget -q http://blzdistsc2-a.akamaihd.net/MapPacks/Ladder2017Season3.zip | ||
RUN wget -q http://blzdistsc2-a.akamaihd.net/MapPacks/Ladder2017Season2.zip | ||
RUN wget -q http://blzdistsc2-a.akamaihd.net/MapPacks/Ladder2017Season1.zip | ||
|
||
# Uncompress zip files | ||
RUN unzip mini_games.zip -d ~/StarCraftII/Maps/ | ||
RUN unzip -P iagreetotheeula Melee.zip -d ~/StarCraftII/Maps/ | ||
RUN unzip -P iagreetotheeula Ladder2017Season3.zip -d ~/StarCraftII/Maps/ | ||
RUN unzip -P iagreetotheeula Ladder2017Season2.zip -d ~/StarCraftII/Maps/ | ||
RUN unzip -P iagreetotheeula Ladder2017Season1.zip -d ~/StarCraftII/Maps/ | ||
|
||
# Delete zip files | ||
RUN rm SC2.4.0.2.zip | ||
RUN rm mini_games.zip | ||
RUN rm Melee.zip | ||
RUN rm Ladder2017Season3.zip | ||
RUN rm Ladder2017Season2.zip | ||
RUN rm Ladder2017Season1.zip | ||
|
||
# Make Directory | ||
RUN mkdir -p /home/nsml/ | ||
|
||
# Change permissions | ||
RUN chmod -R 777 /home/nsml | ||
|
||
# Move StarCraftII to /home/nsml | ||
RUN mv ~/StarCraftII /home/nsml/ |
Oops, something went wrong.