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

[Enhancement] Dockerize everything for dev env setup? #41

Closed
lpatmo opened this issue Jan 14, 2020 · 11 comments
Closed

[Enhancement] Dockerize everything for dev env setup? #41

lpatmo opened this issue Jan 14, 2020 · 11 comments
Assignees
Labels
enhancement New feature or request

Comments

@lpatmo
Copy link
Member

lpatmo commented Jan 14, 2020

Context

A couple of people (@bengineerdavis, @d3vild06) have brought up/asked about docker-izing the entire app with docker-compose. My take was that I didn't think it was necessary, unless the benefits (easier setup) is very clear. @billglover explored it, and recorded a screencast of it here: https://codebuddies.slack.com/archives/C04BRN86J/p1578770421053800. @kennethlove offered some suggestions to tweak the approach.

Acceptance Criteria

[ ] Explore a dockerized Django, Postgres, Mailhog, and Adminer (for viewing the DB). (Re: Mailhog -- that's fine! I expect at some point we'll be building out the transactional emails features)
[ ] Write a draft of instructions that users (like me) could test to set up the dev environment. Instructions should be friendly for those who've never used Docker before.

@lpatmo lpatmo changed the title [Documentation] Docker setup [Documentation] Dockerize everything for dev env setup? Jan 14, 2020
@billglover
Copy link
Contributor

Happy to pick this up.

Have removed the documentation label as this requires the addition of a Dockerfile and probably a docker-compose.yaml.

@billglover billglover changed the title [Documentation] Dockerize everything for dev env setup? [Enhancement] Dockerize everything for dev env setup? Jan 14, 2020
@billglover billglover added the enhancement New feature or request label Jan 14, 2020
@billglover
Copy link
Contributor

For reference, this is the link to suggestions by @kennethlove: Docker for Django

@billglover
Copy link
Contributor

Would be nice to re-name the app from cbv3_django_prototype to app. Any thoughts on this?

@lpatmo
Copy link
Member Author

lpatmo commented Jan 16, 2020

Haha, that's an excellent idea. I'll file a Github ticket for it. The renaming (including the parts that need to be changed in the Dockerfile) could be all done in one go/one PR without any problems, right?

@billglover
Copy link
Contributor

Yeah, probably best to do this as a separate issue.

@billglover
Copy link
Contributor

Running into conflicting migrations with the latest merge. They aren't related to Docker, but I'll try to get this fixed so that we have a clean starting point.

@lpatmo
Copy link
Member Author

lpatmo commented Jan 16, 2020

Oof, I remember Bethany saying she ran into issues with migrations too (near the end of the thread at https://codebuddies.slack.com/archives/C04BRN86J/p1579044879187600). I didn't because I had a clean install with no data and no migration files.

Heading to sleep now, but let me know if you need help!

@billglover
Copy link
Contributor

I don't think it was that as I removed my database entirely before starting. Either way, migrations issue should be resolved and PR #44 should work. An edge case we may want to cover in documentation is that you'll need to ensure you don't have anything running that is already listening on these ports, e.g. an existing PostgreSQL install.

@lpatmo
Copy link
Member Author

lpatmo commented Jan 16, 2020 via email

@billglover
Copy link
Contributor

I believe #44 covers the above. I'd love to get more people go through testing it, but suspect that will come post merge now.

@bengineerdavis
Copy link

bengineerdavis commented Jan 28, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants