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

🐳 Refactor docker compose #1159

Merged
merged 10 commits into from
May 24, 2024
Merged

🐳 Refactor docker compose #1159

merged 10 commits into from
May 24, 2024

Conversation

jefftriplett
Copy link
Contributor

tl;dr Modern Compose drops the docker- prefix and I'd like to make the project easier for our incoming new devs.

I need to test in production to see if I can update fabric.py to the latest docker version when I have time to put out fires.

@jefftriplett jefftriplett marked this pull request as draft May 23, 2024 01:41
@ryancheley
Copy link
Member

I did a cursory review of it and it looks good. i'll need to download it and run it locally to see if I run into any issues (which will most likely be Friday or Saturday).

@jefftriplett In terms of testing on production, if you need any help with trying to put out fires, let me know when you're thinking you'll be able to try it out and I can potentially be there with you if you're looking for an extra set of hands/eyes 😄

@jefftriplett
Copy link
Contributor Author

@ryancheley that'd be great. I'll probably do test it Friday if I don't get to it sooner.

Copy link
Member

@saadmk11 saadmk11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran this branch on GitHub Codespaces and it is working as expected. 👍

@@ -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].
Copy link
Member

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?

Copy link
Contributor Author

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.

@@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@ryancheley
Copy link
Member

I ran this branch on GitHub Codespaces and it is working as expected. 👍

I need to remember that GitHub Codespaces are a thing!

@jefftriplett
Copy link
Contributor Author

I ran this branch on GitHub Codespaces and it is working as expected. 👍

I need to remember that GitHub Codespaces are a thing!

I need to remember this too. I eyeballed the change but Codespaces might be worth mentioning in our docs for our new djangonaut space recruits.

jefftriplett and others added 3 commits May 24, 2024 15:04
* ✨ Adds pypi_update_top_package_stats management command

* 🔥 Removes unused variable

* ✨ Adds other management command

* 🤝 Update package/management/commands/pypi_update_download_package_stats.py

Co-authored-by: Maksudul Haque <saad.mk112@gmail.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* 🤝 Update package/management/commands/pypi_update_top_package_stats.py

Co-authored-by: Maksudul Haque <saad.mk112@gmail.com>

* 🤝 Update package/management/commands/pypi_update_top_package_stats.py

Co-authored-by: Maksudul Haque <saad.mk112@gmail.com>

* 🚜 Update package/management/commands/pypi_update_download_package_stats.py

Co-authored-by: Maksudul Haque <saad.mk112@gmail.com>

* 📝 Apply suggestions from code review

Co-authored-by: Maksudul Haque <saad.mk112@gmail.com>

* 🔥 Removes filename

* 🚜 Applies PR feedback

---------

Co-authored-by: Maksudul Haque <saad.mk112@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@jefftriplett jefftriplett changed the title 🚜 Refactor docker compose 🐳 Refactor docker compose May 24, 2024
@jefftriplett jefftriplett marked this pull request as ready for review May 24, 2024 20:17
@jefftriplett
Copy link
Contributor Author

🚀 and going to quick fix if I break all the things 😬

@jefftriplett jefftriplett merged commit 93d2f0d into main May 24, 2024
3 checks passed
@jefftriplett jefftriplett deleted the refactor-docker-compose branch May 24, 2024 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants