Skip to content

Commit ec422aa

Browse files
committed
Adding documentation and comments
1 parent e499274 commit ec422aa

File tree

6 files changed

+57
-2
lines changed

6 files changed

+57
-2
lines changed

README.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,51 @@
22

33
A docker image for building and running the StarCraft II API on Linux
44

5+
This is a work in progress. Contributions welcome!
6+
7+
TODO:
8+
* Get unit tests working on s2client-game container
9+
* Automate the replay & Battle.net Cache population
10+
* Create a combined container for developers (with git, API and game)
11+
* Get some compose / swarm examples for doing larger training exercises
12+
513
# Summary
614

715
By downloading and running this you are agreeing to the [StarCraft II AI and Machine Learning License](https://github.com/Blizzard/s2client-proto/blob/dca8b6831a84747c2cd6e0c33d6416e14838d886/DATA_LICENSE)
816

917
There are three main components to getting docker image of StarCraft II running
1018

1119
1. Downloading the Linux build and base maps
20+
21+
~~~
22+
./download.sh && ./clone.sh && ./unpack.sh
23+
~~~
24+
1225
2. Installing replay packs and the Battle.net cache to run hem
13-
3. Building and running the API interface for running tests
26+
27+
~~~
28+
TODO
29+
~~~
30+
31+
3. Building the containers
32+
33+
~~~
34+
./build-containers.sh
35+
~~~
36+
37+
38+
4. Test the containers
39+
40+
### Build
41+
42+
~~~
43+
docker run -it s2client-api
44+
./api-build.sh
45+
~~~
46+
47+
### Game
48+
49+
~~~
50+
docker run -d s2client-game
51+
~~~
1452

api-build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/bin/bash
2+
3+
# This script is intended to be embedded in the build container for
4+
# automating the CMake / GNU make build process
5+
26
mkdir -p build
37
pushd build
48
cmake -G "Unix Makefiles" ..

build-containers.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/bin/bash
22

3+
# This builds both containers in one shot
4+
35
docker build . -f Dockerfile.build -t s2client-api
46
docker build . -f Dockerfile.game -t s2client-game

clone.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/bin/bash
2+
3+
# This clones a clean copy of the repo
4+
25
mkdir -p downloads
36
pushd downloads
47
rm -rf s2client-api

download.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
#!/bin/bash
2+
3+
VERSION=3.16.1
4+
5+
# This downloads zip files for current version
26
mkdir -p downloads/
37
pushd downloads
4-
wget http://blzdistsc2-a.akamaihd.net/Linux/SC2.3.16.1.zip
8+
wget http://blzdistsc2-a.akamaihd.net/Linux/SC2.${VERSION}.zip
59
wget http://blzdistsc2-a.akamaihd.net/MapPacks/Ladder2017Season1.zip
610
wget http://blzdistsc2-a.akamaihd.net/MapPacks/Ladder2017Season2.zip
711
wget http://blzdistsc2-a.akamaihd.net/MapPacks/Ladder2017Season3.zip

unpack.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#!/bin/bash
2+
3+
# This unpacks all of the zip files automatically
4+
15
VERSION=3.16.1
26
UNZIP_CMD="unzip -Piagreetotheeula"
37

0 commit comments

Comments
 (0)