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 .env file setup #991

Merged
merged 2 commits into from Feb 15, 2021
Merged

Refactor .env file setup #991

merged 2 commits into from Feb 15, 2021

Conversation

hemberger
Copy link
Member

Volume-mounting individual files is unreliable due to limitations
with the way Docker handles inode changes. If editing a file creates
a new inode, then those changes will unexpectedly not be propagated
into the container.

See moby/moby#15793 (comment).

To fix this, we will avoid volume-mounting files. We move the .env
file to config/env, so that we can reuse the config directory
volume-mount. We also create a symlink to .env for the convenience
of docker-compose commands (since it reads .env by default).

Also, fix upload volume-mount path for the smr-dev service.

This change was erroneously omitted from smrealms#961, and only affected
the `smr-dev` service.
Volume-mounting individual files is unreliable due to limitations
with the way Docker handles inode changes. If editing a file creates
a new inode, then those changes will unexpectedly not be propagated
into the container.

See moby/moby#15793 (comment).

To fix this, we will avoid volume-mounting files. We move the `.env`
file to `config/env`, so that we can reuse the `config` directory
volume-mount. We also create a symlink to `.env` for the convenience
of docker-compose commands (since it reads `.env` by default).
@codecov
Copy link

codecov bot commented Feb 15, 2021

Codecov Report

Merging #991 (ff13d72) into master (8e0213b) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##             master    #991   +/-   ##
========================================
  Coverage      2.75%   2.75%           
  Complexity     4062    4062           
========================================
  Files            74      74           
  Lines         11199   11199           
========================================
  Hits            308     308           
  Misses        10891   10891           
Impacted Files Coverage Δ Complexity Δ
src/lib/Smr/Container/DiContainer.php 88.88% <100.00%> (ø) 8.00 <0.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8e0213b...ff13d72. Read the comment docs.

hemberger added a commit to hemberger/dockerize that referenced this pull request Feb 15, 2021
hemberger added a commit to hemberger/seed-server that referenced this pull request Feb 15, 2021
@hemberger hemberger merged commit f5cebc6 into smrealms:master Feb 15, 2021
@hemberger hemberger deleted the env-fixes branch February 15, 2021 01:06
hemberger added a commit to smrealms/seed-server that referenced this pull request Feb 21, 2021
hemberger added a commit to hemberger/seed-server that referenced this pull request Feb 21, 2021
hemberger added a commit to hemberger/seed-server that referenced this pull request Jul 21, 2021
hemberger added a commit to smrealms/seed-server that referenced this pull request Aug 15, 2021
hemberger added a commit to smrealms/dockerize that referenced this pull request Aug 15, 2021
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.

None yet

1 participant