Skip to content

Commit 663cbe1

Browse files
committed
Working on test startup
1 parent e27da10 commit 663cbe1

File tree

4 files changed

+28
-6
lines changed

4 files changed

+28
-6
lines changed
File renamed without changes.

game/run-interactive.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
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

game/run-tests.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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

replays/add_replays.sh renamed to replays/add-replays.sh

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,36 @@
66
VERSION=3.16.1
77

88
# Download and extract the replay pack if it doesn't exist
9+
#
910
# TODO: make replay pack handling more dynamic
11+
#
1012
REPLAY_PACK=3.16.1-Pack_1-fix.zip
13+
1114
if [ ! -f downloads/${REPLAY_PACK} ]; then
1215
pushd downloads
1316
wget http://blzdistsc2-a.akamaihd.net/ReplayPacks/${REPLAY_PACK}
1417
mkdir -p replays
15-
unzip ${REPLAY_PACK} -d replays/
18+
unzip -Piagreetotheeula ${REPLAY_PACK} -d replays/
1619
popd
1720
fi
1821

19-
22+
#
2023
# Start a new game container if GAME_CONTAINER is not yet defined
24+
#
2125
if [ "${GAME_CONTAINER}" == "" ]; then
22-
GAME_CONTAINER=`docker run -d s2client-game`
26+
export GAME_CONTAINER=`docker run -d s2client-game`
2327
echo "New game container started ${GAME_CONTAINER}"
24-
export GAME_CONTAINER
2528
fi
2629

30+
31+
SRC_PATH="downloads/replays/Replays"
2732
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}

0 commit comments

Comments
 (0)