Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove mentions of there being multiple snekbox containers #988

Merged
merged 1 commit into from
May 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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