aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2022-07-13 18:59:38 +0100
committerGravatar Chris Lovering <[email protected]>2022-07-16 23:30:08 +0100
commit3ad7cd9a5880853771e6af1f050bd5eb251b9b88 (patch)
tree10d6576d1dba853a4ac3217672aa1f8b949c16bd
parentMerge pull request #2215 from python-discord/revival-of-code-role (diff)
Add required config and constants for snekbox 3.11
-rw-r--r--bot/constants.py1
-rw-r--r--config-default.yml1
-rw-r--r--docker-compose.yml12
3 files changed, 14 insertions, 0 deletions
diff --git a/bot/constants.py b/bot/constants.py
index c39f9d2b8..db98e6f47 100644
--- a/bot/constants.py
+++ b/bot/constants.py
@@ -540,6 +540,7 @@ class URLs(metaclass=YAMLGetter):
# Snekbox endpoints
snekbox_eval_api: str
+ snekbox_311_eval_api: str
# Discord API endpoints
discord_api: str
diff --git a/config-default.yml b/config-default.yml
index 91945e2b8..a12b680e1 100644
--- a/config-default.yml
+++ b/config-default.yml
@@ -379,6 +379,7 @@ urls:
# Snekbox
snekbox_eval_api: !ENV ["SNEKBOX_EVAL_API", "http://snekbox.default.svc.cluster.local/eval"]
+ snekbox_311_eval_api: !ENV ["SNEKBOX_311_EVAL_API", "http://snekbox-311.default.svc.cluster.local/eval"]
# Discord API URLs
discord_api: &DISCORD_API "https://discordapp.com/api/v7/"
diff --git a/docker-compose.yml b/docker-compose.yml
index ce78f65aa..f0d3f934f 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -62,6 +62,18 @@ services:
- "127.0.0.1:8060:8060"
privileged: true
+ snekbox-311:
+ << : *logging
+ << : *restart_policy
+ image: ghcr.io/python-discord/snekbox:3.11-dev
+ init: true
+ ipc: none
+ ports:
+ - "127.0.0.1:8065:8060"
+ privileged: true
+ profiles:
+ - "3.11"
+
web:
<< : *logging
<< : *restart_policy