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 docker build to plug repo #25

Merged
merged 3 commits into from
Aug 25, 2021
Merged

Move docker build to plug repo #25

merged 3 commits into from
Aug 25, 2021

Conversation

jenhagg
Copy link
Collaborator

@jenhagg jenhagg commented Aug 23, 2021

Purpose

Consolidate the builds currently in powersimdata and postreise, which prevents having an out of date postreise image or the need to synchronize builds across repos. Currently, only the latest tag is built, but in the future I'm thinking the simplest option would be to have a stable tag which builds the latest versioned postreise image, and make that the default in the compose files included here.

What the code is doing

Add the Dockerfile and update things as necessary. In particular, the .dev.yml file provided for users who want to build locally, which now works without cloning any other repos.

Testing

Ran the build with docker compose using the override file. Quick test using the resulting image to make sure we can still import from powersimdata and postreise.

Time estimate

15 min

@jenhagg jenhagg self-assigned this Aug 23, 2021
WORKDIR /PostREISE
RUN pipenv sync --dev --system;
RUN pip install .
RUN pip install ../PowerSimData
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Since we will soon be restricting the version of powersimdata specified in postreise, we need to install from the develop branch for this to be consistent with the current setup.

Copy link
Collaborator

@BainanXia BainanXia left a comment

Choose a reason for hiding this comment

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

LGTM

@jenhagg jenhagg merged commit 9e6e6f5 into main Aug 25, 2021
@jenhagg jenhagg deleted the jon/build branch August 25, 2021 00:18
@jenhagg
Copy link
Collaborator Author

jenhagg commented Aug 25, 2021

Relates to #26

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