-
Notifications
You must be signed in to change notification settings - Fork 52
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
update conda store dockerfile to have prod target #621
update conda store dockerfile to have prod target #621
Conversation
✅ Deploy Preview for kaleidoscopic-dango-0cf31d canceled.
|
conda-store/Dockerfile
Outdated
|
||
FROM base as prod | ||
RUN cd /opt/conda-store && \ | ||
pip install . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer installing directly from PyPA than from the repository.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@trallard Do you mean to install the conda-store package from pypi when packing the docker release?
right now, docker images are built and pushed on every merge to main, and on every release. Using PyPi would mean that we should split the workflow, so pushes to main used this repo (since it isn't pushed to PyPi), and releases installed from PyPi, which would add a dependency in the order that the jobs run.
I am fine with that if we want to do it that way, I just want to make sure we are on the same page here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct - I added more context in #621 (comment) since I got sidetracked 🧠
I do not think splitting the workflow would be too much of an inconvenience but will allow us to know exactly which tagged version of the library we have installed at a given time.
While reviewing the PR I realised that the GH workflow logic actually needs some tuning too. Right now the triggers are: on:
push:
branches:
- "main"
release:
types: [created] While this PR creates separate dev and prod Docker targets, the images are built more frequently than releases are made, and since conda-store is installed with
|
Ok, no problem. I will make these changes and let you know when it is ready for 👀 |
@trallard the same applies to conda-store-server correct? |
yes this should apply for both |
@trallard This is ready for another look. We can't test the the full release workflow without cutting a release though. Can we cut a test release and then delete it from pypi after? Or are you comfortable with not testing that bit? |
@trallard is this one good to go? |
🤔 I got confused since the changes here are also in #625, so it seems some of my changes will not be introduced here (e.g. timezone) but in the other PR which is fine by me so will mark this as merge ready. As for the release - I will cut a release candidate today/tomorrow so that should work as a test |
Fixes #614
Part of #599
Description
updates Dockerfile for conda-store to have a prod target that does not install pip dependencies in editable mode, and a dev target that does.
This pull request:
Pull request checklist