Migrate off Anaconda to Poetry and create dedicated RMG-Py builder image#165
Draft
DarkAce65 wants to merge 10 commits intocomocheng:masterfrom
Draft
Migrate off Anaconda to Poetry and create dedicated RMG-Py builder image#165DarkAce65 wants to merge 10 commits intocomocheng:masterfrom
DarkAce65 wants to merge 10 commits intocomocheng:masterfrom
Conversation
DarkAce65
commented
Feb 24, 2021
Dockerfile
Outdated
| @@ -1,11 +1,26 @@ | |||
| FROM ghcr.io/comocheng/kineticmodelssite/kms-build:latest | |||
| # Fetch RMG-Py build | |||
| FROM comocheng/kms-rmgpy:latest as rmgpy | |||
Author
There was a problem hiding this comment.
comocheng/kms-rmgpy doesn't exist yet - this should be where the Dockerfile.rmg image should be built to
| RUN apk add --no-cache curl \ | ||
| && (curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -) | ||
| ENV PATH="$POETRY_HOME/bin:$PATH" \ | ||
| PYTHONPATH="/rmgpy:$PYTHONPATH" |
Author
There was a problem hiding this comment.
Note that RMG-Py is not specified as a dependency in the pyproject.toml - the dependency is added to the PYTHONPATH here
| volumes: | ||
| rmg-models: | ||
| external: true | ||
| conda: |
Author
There was a problem hiding this comment.
This volume should no longer be necessary
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR migrates the base application off of Anaconda and onto poetry. It does this by creating a new image dedicated to building RMG-Py from source and copies the resulting binaries into application container via a Docker multi-stage build (Docker docs).
Another couple things to note:
Note that I wasn't able to run the application since I don't have access to RMG-Models - @kianmehrabani you'll have to verify this (and fix a couple other things like the README, keys, deployment, etc. 😄)
Resolves #166.