Skip to content

Commit 4c9ac1b

Browse files
committed
Refactoring to scoped directories to reduce docker daemon transfers
1 parent ec422aa commit 4c9ac1b

14 files changed

+58
-17
lines changed

README.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,37 +14,42 @@ TODO:
1414

1515
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)
1616

17-
There are three main components to getting docker image of StarCraft II running
1817

19-
1. Downloading the Linux build and base maps
18+
# Building Containers
19+
20+
1. Building the game container
2021

2122
~~~
22-
./download.sh && ./clone.sh && ./unpack.sh
23+
cd game && ./all.sh
2324
~~~
2425

25-
2. Installing replay packs and the Battle.net cache to run hem
26+
27+
3. Building the API build container
2628

2729
~~~
28-
TODO
30+
cd build && ./all.sh
2931
~~~
3032

31-
3. Building the containers
33+
4. Test the containers
3234

3335
~~~
34-
./build-containers.sh
36+
TODO
3537
~~~
3638

39+
2. Installing replay packs and the Battle.net cache to run hem
3740

38-
4. Test the containers
41+
~~~
42+
TODO
43+
~~~
3944

40-
### Build
45+
### Running the API build
4146

4247
~~~
4348
docker run -it s2client-api
4449
./api-build.sh
4550
~~~
4651

47-
### Game
52+
### Running the Game
4853

4954
~~~
5055
docker run -d s2client-game

build-containers.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.
File renamed without changes.

build/all.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
./clone.sh && ./make-container.sh
File renamed without changes.

clone.sh renamed to build/clone.sh

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

33
# This clones a clean copy of the repo
4-
54
mkdir -p downloads
65
pushd downloads
76
rm -rf s2client-api

build/make-container.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
# This builds the container
4+
docker build . -t s2client-api

docker_cleanup.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
docker rm $(docker ps -qaf status=exited)
File renamed without changes.

game/all.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
./download.sh && ./unpack.sh && make-container.sh

0 commit comments

Comments
 (0)