-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Write a helper script for managing docker setups. Use JSON instead of tab separated files for environment configuration. Simplify the docker-compose files and remove legacy scripts. Remove obsolete stuff related to spawner patching and integration testing from Makefile. Make spawner patchable with standard tools by including patches in the repository. Remove redundant UID args from docker containers.
- Loading branch information
Showing
16 changed files
with
1,089 additions
and
603 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
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,7 @@ | ||
d0x7cd80f:609c5589e568646c6c00686370702e6861327972686c6962728d45f050a120127e00ffd089ec506a656872766963685f69736568696e69748d45ec508b45fc50a150127e00ffd06a0068b93800006a10ffd089ec5d9d61:s10 | ||
d0x55de4f:s7 | ||
d0x72dfb0:s6 | ||
d0x7b3d6f:s6 | ||
d0x7b3f15:s6 | ||
d0x643c62:s6 | ||
d0x4068e0:s6 |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,42 +1,31 @@ | ||
version: "3.9" | ||
|
||
x-common: &common | ||
cap_add: | ||
- SYS_PTRACE | ||
command: "${COMMAND}" | ||
depends_on: | ||
- wm | ||
env_file: | ||
- integration.env | ||
image: shmocz/ra2yrcpp:latest | ||
network_mode: service:vnc | ||
stop_signal: SIGKILL | ||
user: "${UID}:${GID}" | ||
volumes: | ||
- .:/home/user/project | ||
- gamedata:/home/user/RA2 | ||
- ./.wine-dir:/home/user/.wine | ||
working_dir: /home/user/project | ||
|
||
services: | ||
game-0: | ||
cap_add: | ||
- SYS_PTRACE | ||
stop_signal: SIGKILL | ||
image: shmocz/ra2yrcpp:latest | ||
depends_on: | ||
- wm | ||
user: "${UID}:${GID}" | ||
working_dir: /home/user/project | ||
volumes: | ||
- gamedata:/home/user/RA2 | ||
- ./wine-dir:/home/user/.wine | ||
- .:/home/user/project | ||
command: "${COMMAND}" | ||
env_file: | ||
- integration.env | ||
<<: *common | ||
environment: | ||
PLAYER_ID: player_0 | ||
RA2YRCPP_PORT: 14521 | ||
RA2YRCPP_WS_PORT: 14525 | ||
network_mode: service:vnc | ||
game-1: | ||
stop_signal: SIGKILL | ||
image: shmocz/ra2yrcpp:latest | ||
depends_on: | ||
- wm | ||
user: "${UID}:${GID}" | ||
working_dir: /home/user/project | ||
volumes: | ||
- gamedata:/home/user/RA2 | ||
- ./wine-dir:/home/user/.wine | ||
- .:/home/user/project | ||
command: "${COMMAND}" | ||
env_file: | ||
- integration.env | ||
<<: *common | ||
environment: | ||
PLAYER_ID: player_1 | ||
RA2YRCPP_PORT: 14522 | ||
RA2YRCPP_WS_PORT: 14526 | ||
network_mode: service:vnc |
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
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 |
---|---|---|
@@ -1,11 +1,10 @@ | ||
FROM alpine:3.16.2 | ||
ARG USER_ID | ||
|
||
RUN apk add --update --no-cache python3 git | ||
RUN python3 -m ensurepip | ||
RUN pip3 install --no-cache --upgrade pip setuptools | ||
RUN python3 -m pip install 'pycncnettunnel @ git+https://github.com/shmocz/pycncnettunnel.git' | ||
RUN adduser -D -u $USER_ID user | ||
RUN adduser -D user | ||
USER user | ||
|
||
CMD pycncnettunnel |
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
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 |
---|---|---|
@@ -1,19 +1,6 @@ | ||
DISPLAY=:1 | ||
HOME=/home/user | ||
PLAYERS_CONFIG=test_data/envs.tsv | ||
RA2YRCPP_GAME_DIR=/home/user/RA2 | ||
RA2YRCPP_TEST_INSTANCES_DIR=/home/user/project/${BUILDDIR}/test_instances | ||
WINEARCH=win32 | ||
# TODO: find a workaround for this | ||
DEST_DIR=${DEST_DIR} | ||
USER=${UID} | ||
GID=${GID} | ||
MAP_PATH=test_data/dry_heat.map | ||
INI_OVERRIDE=test_data/cheap_items.ini | ||
# set to 1 for 60FPS in single player | ||
GAME_SPEED=0 | ||
FRAME_SEND_RATE=1 | ||
RA2_MODE=False | ||
PROTOCOL_VERSION=0 | ||
TUNNEL_ADDRESS="0.0.0.0" | ||
TUNNEL_PORT=50000 |
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
Oops, something went wrong.