Skip to content

Commit

Permalink
Remove mentions of there being multiple snekbox containers
Browse files Browse the repository at this point in the history
With python-discord/bot#2618 there will only be 1 snekbox container, that runs the latest verison of snekbox.

Supporting multiple versions of snekbox will be covered by python-discord/snekbox#158 where a single instance of snekbox will nativly support multiple Python verisons.
  • Loading branch information
ChrisLovering committed May 30, 2023
1 parent 3cf5bf3 commit f351709
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,13 @@ The advantage of this method is that you can run the bot's code in your preferre

* Append the following line to your `.env` file: `API_KEYS_SITE_API=badbot13m0n8f570f942013fc818f234916ca531`.
* In your `.env.server` file, set `urls_site_api="http://localhost:8000/api"`. If you wish to keep using `http://web:8000/api`, then [COMPOSE_PROJECT_NAME](../docker/#compose-project-names) has to be set.
* To work with snekbox, set `urls_snekbox_eval_api="http://localhost:8060/eval"` and `urls_snekbox_311_eval_api="http://localhost:8065/eval"`
* To work with snekbox, set `urls_snekbox_eval_api="http://localhost:8060/eval"`.


You will need to start the services separately, but if you got the previous section with Docker working, that's pretty simple:

* `docker compose up web` to start the site container. This is required.
* `docker compose up snekbox` to start the snekbox container. You only need this if you're planning on working on the snekbox cog.
* `docker compose up snekbox-311` to start the snekbox 3.11 container. You only need this if you're planning on working on the snekbox cog.
* `docker compose up redis` to start the Redis container. You only need this if you're not using fakeredis. For more info refer to [Working with Redis](#optional-working-with-redis).

You can start several services together: `docker compose up web snekbox redis`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ Some other useful docker commands are as follows:

1. `docker compose pull` this pulls updates for all non-bot services, such as psotgres, redis and our [site](../site) project!
1. `docker compose build` this rebuilds the bot's docker image, this is only needed if you need to make changes to the bot's dependencies, or the Dockerfile itself.
1. `docker compose --profile 3.10 up` this starts a 3.10 snekbox container, in addition to the default 3.11 container!

Your bot is now running, all inside Docker.

Expand Down

0 comments on commit f351709

Please sign in to comment.