-
-
Notifications
You must be signed in to change notification settings - Fork 173
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
🐳 Refactor docker compose #1159
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
543377f
:shirt: Lints .env.local.example
jefftriplett c1164b3
:gear: Adds compose to ignore list
jefftriplett 08cd5dc
:fire: Remove compose override example
jefftriplett 7547b7e
:shirt: Lints start-dev.sh
jefftriplett 8e42dc9
:tractor: Upgrades compose recipes
jefftriplett dec009f
:tractor: Update docker-compose and python -m usage
jefftriplett 868bdb0
:tractor: docker-compose => docker compose
jefftriplett 44c5c40
:sparkles: Adds pypi_update_top_package_stats management command (#1160)
jefftriplett 6e5b64b
:bookmark: bump version 2024.5.6 -> 2024.5.7
4d907e2
:tractor: docker-compose => docker compose
jefftriplett File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
.gitignore | ||
.pytest_cache | ||
.rsync-exclude-from | ||
compose*.yml | ||
CONTRIBUTORS.txt | ||
data | ||
design | ||
|
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
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
File renamed without changes.
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 +1 @@ | ||
__version__ = "2024.5.6" | ||
__version__ = "2024.5.7" |
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
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,3 +1,4 @@ | ||
#!/bin/sh | ||
python -m manage migrate --noinput | ||
|
||
python -m manage runserver 0.0.0.0:8000 |
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
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ You'll want to make sure your local environment is ready by installing the follo | |
|
||
### Docker | ||
|
||
If you don't have them installed yet, install [Docker] and [docker-compose]. | ||
If you don't have them installed yet, install [Docker] and [Compose]. | ||
|
||
### Grab a Local Copy of the Project | ||
|
||
|
@@ -35,10 +35,10 @@ cp .env.local.example .env.local | |
|
||
### Build the Docker Containers | ||
|
||
Now build the project using docker-compose: | ||
Now build the project using Docker Compose: | ||
|
||
```shell | ||
docker-compose build | ||
docker compose build | ||
``` | ||
|
||
### Add A GitHub API Token (optional) | ||
|
@@ -52,7 +52,7 @@ metadata, and required for certain tests. | |
To start the project, run: | ||
|
||
```shell | ||
docker-compose up --detach | ||
docker compose up --detach | ||
``` | ||
|
||
Then point your browser to <http://localhost:8000> and start hacking! | ||
|
@@ -64,7 +64,7 @@ Now, you'll give yourself an admin account on the locally-running version of Dja | |
Create a Django superuser for yourself, replacing joe with your username/email: | ||
|
||
```shell | ||
docker-compose run django python manage.py createsuperuser --username=joe --email=joe@example.com | ||
docker compose run django python -m manage createsuperuser --username=joe --email=joe@example.com | ||
``` | ||
|
||
And then login into the admin interface (/admin/) and create a profile for your user filling all the fields with any data. | ||
|
@@ -74,7 +74,7 @@ And then login into the admin interface (/admin/) and create a profile for your | |
We use a **Mock** system of creating sample data in our tests and for running a development version of the site. To create some development data, just run: | ||
|
||
```shell | ||
docker-compose run --rm django python manage.py load_dev_data | ||
docker compose run --rm django python -m manage load_dev_data | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💯 |
||
``` | ||
|
||
### Formatters, Linters, and other miscellanea | ||
|
@@ -104,7 +104,7 @@ pre-commit run ruff | |
|
||
A more [opinionated] set up using the command runner `just` is also available. | ||
|
||
[docker-compose]: https://docs.docker.com/compose/install/ | ||
[compose]: https://docs.docker.com/compose/install/ | ||
[docker]: https://docs.docker.com/install/ | ||
[just]: https://github.com/casey/just | ||
[opinionated]: install_opinionated.md | ||
|
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we mention the minimum required versions here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea. I don't know what the minimum should be.