-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from aiarena/feature/upgrade_to_latest_aiarena…
…_infrastructure Upgrade to latest aiarena infrastructure
- Loading branch information
Showing
9 changed files
with
106 additions
and
235 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,41 @@ | ||
ARENA_CLIENT_ID = "aiarenaclient_local" # ID of arenaclient. Used for AiArena | ||
ROUNDS_PER_RUN = -1 # Set to -1 to ignore this | ||
BASE_WEBSITE_URL = "" | ||
DEBUG_MODE = true # Enables debug mode for more logging | ||
PYTHON = "python" # Which python version to use | ||
RUN_TYPE = "local" # Run on AiArena, locally or test (options: "test", "local", "aiarena") | ||
# Secure mode will ignore the BOTS_DIRECTORY configuration setting and instead run each bot in their home directory. | ||
SECURE_MODE = false | ||
|
||
# LOGGING | ||
LOGGING_LEVEL = "debug" #info,debug,error,trace | ||
LOG_ROOT = "/logs" | ||
|
||
# Directories | ||
REPLAYS_DIRECTORY = "/replays" | ||
BOTS_DIRECTORY = "/bots" # Ignored when SECURE_MODE == True | ||
|
||
# STARCRAFT | ||
MAX_GAME_TIME = 80640 | ||
MAX_REAL_TIME = 7200 # 2 hours in seconds | ||
MAX_FRAME_TIME = 40 # milliseconds | ||
STRIKES = 10 | ||
REALTIME = false | ||
VISUALIZE = false | ||
|
||
# MATCHES | ||
DISABLE_DEBUG = true | ||
VALIDATE_RACE = false | ||
|
||
|
||
# Local | ||
MATCHES_FILE="matches" | ||
RESULTS_FILE="results.json" | ||
|
||
# Controllers | ||
BOT_CONT_1_HOST="127.0.0.1" | ||
BOT_CONT_1_PORT=8081 | ||
BOT_CONT_2_HOST="127.0.0.1" | ||
BOT_CONT_2_PORT=8082 | ||
SC2_CONT_HOST="127.0.0.1" | ||
SC2_CONT_PORT=8083 |
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,12 +1,46 @@ | ||
version: "3.9" | ||
services: | ||
arena-client: | ||
sc2_controller: | ||
image: aiarena/arenaclient-sc2:v0.4.3 | ||
environment: | ||
- "ACSC2_PORT=8083" | ||
- "ACSC2_PROXY_HOST=proxy_controller" | ||
volumes: | ||
- ./config.py:/root/aiarena-client/config.py | ||
- ./:/root/aiarena-client/host | ||
- "./logs/sc2_controller:/logs" # a sc2_controller folder will be created in the logs folder | ||
# SC2 Maps Path | ||
# Set this as "- PATH_TO_YOUR_MAPS_FOLDER:/root/StarCraftII/maps" | ||
- C:\Program Files (x86)\StarCraft II\Maps:/root/StarCraftII/maps # Standard windows SC2 maps path | ||
# - ./maps:/root/StarCraftII/maps # Local maps folder | ||
# - C:\Program Files (x86)\StarCraft II\Maps:/root/StarCraftII/maps # Standard windows SC2 maps path | ||
- ./maps:/root/StarCraftII/maps # Local maps folder | ||
# - ~/StarCraftII/maps:/root/StarCraftII/maps # Relatively standard linux SC2 maps path | ||
image: aiarena/arenaclient | ||
|
||
bot_controller1: | ||
image: aiarena/arenaclient-bot:v0.4.3 | ||
volumes: | ||
- "./bots:/bots" | ||
- "./logs/bot_controller1:/logs" | ||
environment: | ||
- "ACBOT_PORT=8081" | ||
- "ACBOT_PROXY_HOST=proxy_controller" | ||
|
||
bot_controller2: | ||
image: aiarena/arenaclient-bot:v0.4.3 | ||
volumes: | ||
- "./bots:/bots" | ||
- "./logs/bot_controller2:/logs" | ||
environment: | ||
- "ACBOT_PORT=8082" | ||
- "ACBOT_PROXY_HOST=proxy_controller" | ||
|
||
proxy_controller: | ||
image: aiarena/arenaclient-proxy:v0.4.3 | ||
environment: | ||
- "ACPROXY_PORT=8080" | ||
- "ACPROXY_BOT_CONT_1_HOST=bot_controller1" | ||
- "ACPROXY_BOT_CONT_2_HOST=bot_controller2" | ||
- "ACPROXY_SC2_CONT_HOST=sc2_controller" | ||
volumes: | ||
- "./matches:/app/matches" | ||
- "./config.toml:/app/config.toml" | ||
- "./results.json:/app/results.json" | ||
- "./replays:/replays" | ||
- "./logs:/logs" # a proxy_controller folder will be created in the logs folder |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
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,2 +1,2 @@ | ||
# Bot1 name, Bot1 race, Bot1 type, Bot2 name, Bot2 race, Bot2 type, Map | ||
basic_bot,T,python,loser_bot,T,python,BerlingradAIE.SC2Map | ||
# Bot1 ID, Bot1 name, Bot1 race, Bot1 type, Bot2 ID, Bot2 name, Bot2 race, Bot2 type, Map | ||
1,basic_bot,T,python,2,loser_bot,T,python,BerlingradAIE |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"results": [ | ||
] | ||
} |