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

Update docker config #700

Merged
merged 4 commits into from
Sep 17, 2020
Merged

Update docker config #700

merged 4 commits into from
Sep 17, 2020

Conversation

cflipse
Copy link
Contributor

@cflipse cflipse commented Sep 13, 2020

Update the docker config.

Attempt to streamline the development config, and the test-run; there are a few things that we can do to clear up the structure going forward, but ... at least this should work

We're missing some configs from `docker-development` environment, which
causes a launch to fail.
Mount the application:  This loads the application into the running
docker image, allowing the running image to do the expected rails
development environment thing of seeing your code changes.

Run as the current user:  this (attempts) to prevent files owned by root
from being left on the filesystem.

cache mounts:  these will keep installed gems and node modules
avavilable, so we don't have to grab and reinstall on every rebuild.
Copy link
Collaborator

@solebared solebared left a comment

Choose a reason for hiding this comment

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

Awesome, thank you for digging into this!!

depends_on:
- db
- email
environment:
<<: *x-shared-postgres-environment
<<: *x-email-defaults
RAILS_ENV: docker-development
RAILS_ENV: development
Copy link
Collaborator

Choose a reason for hiding this comment

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

Such a small diff causing much loss of hair!

@solebared solebared merged commit 44a3671 into main Sep 17, 2020
@solebared solebared deleted the update-docker-config branch September 17, 2020 21:24
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.

2 participants