File tree Expand file tree Collapse file tree 4 files changed +28
-6
lines changed Expand file tree Collapse file tree 4 files changed +28
-6
lines changed File renamed without changes.
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Run an interactive container with the build-mount (see build/all.sh)
4
+ docker run --entrypoint=" /bin/bash" -v build-mount:/build-mount -it s2client-game
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ #! /bin/bash
4
+
5
+ # Run an interactive container with the build-mount (see build/all.sh)
6
+ docker run -v build-mount:/build-mount -t --entrypoint=" /build-mount/all_tests -e /SC2/3.16.1/StarCraftII/Versions/Base55958/SC2_x64" s2client-game
Original file line number Diff line number Diff line change 6
6
VERSION=3.16.1
7
7
8
8
# Download and extract the replay pack if it doesn't exist
9
+ #
9
10
# TODO: make replay pack handling more dynamic
11
+ #
10
12
REPLAY_PACK=3.16.1-Pack_1-fix.zip
13
+
11
14
if [ ! -f downloads/${REPLAY_PACK} ]; then
12
15
pushd downloads
13
16
wget http://blzdistsc2-a.akamaihd.net/ReplayPacks/${REPLAY_PACK}
14
17
mkdir -p replays
15
- unzip ${REPLAY_PACK} -d replays/
18
+ unzip -Piagreetotheeula ${REPLAY_PACK} -d replays/
16
19
popd
17
20
fi
18
21
19
-
22
+ #
20
23
# Start a new game container if GAME_CONTAINER is not yet defined
24
+ #
21
25
if [ " ${GAME_CONTAINER} " == " " ]; then
22
- GAME_CONTAINER=` docker run -d s2client-game`
26
+ export GAME_CONTAINER=` docker run -d s2client-game`
23
27
echo " New game container started ${GAME_CONTAINER} "
24
- export GAME_CONTAINER
25
28
fi
26
29
30
+
31
+ SRC_PATH=" downloads/replays/Replays"
27
32
DEST_PATH=" /SC2/${VERSION} /StarCraftII/Replays/"
28
- echo " Copying into ${CONTAINER} ${DEST_PATH} "
29
- # docker cp downloads/$REPLAY_PACK $CONTAINER:$DEST_PATH
33
+
34
+ echo " Copying into ${GAME_CONTAINER} ${SRC_PATH} -> ${DEST_PATH} "
35
+ # docker cp ${SRC_PATH} ${GAME_CONTAINER}:${DEST_PATH}
36
+
37
+ SRC_PATH=" downloads/replays/Battle.net/"
38
+ DEST_PATH=" /SC2/${VERSION} /StarCraftII/Battle.net/"
39
+
40
+ echo " Copying into ${GAME_CONTAINER} ${SRC_PATH} -> ${DEST_PATH} "
41
+ # docker cp ${SRC_PATH} ${GAME_CONTAINER}:${DEST_PATH}
You can’t perform that action at this time.
0 commit comments