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

Install datalab as editable inside docker build to make env passing simpler #917

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

ml-evs
Copy link
Member

@ml-evs ml-evs commented Oct 9, 2024

In #914 we switched to a non-editable install inside the docker containers, which means that datalab runs from the installed module (/opt/.venv/lib/python3.10/site-packages/... etc), but the dotenv loader only looks in that folder and above (rather than the datalab source folder).

Long term,

  • We should add a way to specify where the .env file is as a config (and error if it is missing)

but short-term, we can just got back to an editable install (makes no difference inside the container) so that the current deployment .env path is still found.

@ml-evs ml-evs added the build For issues/PRs pertaining to the build or deployment of the package label Oct 9, 2024
Copy link

cypress bot commented Oct 9, 2024

datalab    Run #2532

Run Properties:  status check passed Passed #2532  •  git commit d595efc345 ℹ️: Merge d1435a5b8cf49613cfd4d448a91319aa1fa09999 into ebed305f39c6910fb7ca06940630...
Project datalab
Run status status check passed Passed #2532
Run duration 06m 37s
Commit git commit d595efc345 ℹ️: Merge d1435a5b8cf49613cfd4d448a91319aa1fa09999 into ebed305f39c6910fb7ca06940630...
Committer Matthew Evans
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 396

@ml-evs ml-evs merged commit d829102 into main Oct 9, 2024
15 checks passed
@ml-evs ml-evs deleted the ml-evs/docker-build branch October 9, 2024 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build For issues/PRs pertaining to the build or deployment of the package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant