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

Move .env file to docker/.env #354

Merged
merged 4 commits into from Oct 1, 2020
Merged

Move .env file to docker/.env #354

merged 4 commits into from Oct 1, 2020

Conversation

jjnesbitt
Copy link
Member

Fixes #344

The reason the volume was failing to be removed was due to a mismatch between the a .env file in the docker directory, and the source-controlled .env file in the root directory. The deploy runs under the docker directory, and so environment files pertaining to the docker stack should live in that directory. I believe it's best practice to keep these files at the same level as the compose file anyway.

The only reason I could see to keep this file in the root directory would be to run girder/other parts of the stack locally. However that's not a use case we currently support/endorse, so I don't see a reason to keep the .env file in the root directory.

Copy link
Contributor

@subdavis subdavis left a comment

Choose a reason for hiding this comment

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

This breaks LDC, pull latest kitware/ldc for support. FYI @BryonLewis

In order to support ldc from both / and /docker, could you add LDC_BASE_DIR=. to the environment file? No other change is necessary, I closed my other branch.

Copy link
Collaborator

@BryonLewis BryonLewis left a comment

Choose a reason for hiding this comment

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

pulled latest ldc, ran it from the root dir (ldc dev girder) and everything seemed to come up and function properly.

@jjnesbitt jjnesbitt merged commit 8be20fe into master Oct 1, 2020
@jjnesbitt jjnesbitt deleted the move-env-file branch October 1, 2020 22:30
@jjnesbitt jjnesbitt mentioned this pull request Oct 9, 2020
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.

[BUG] Docker pipeline volume isn't recreated during deployment.
3 participants