-
Notifications
You must be signed in to change notification settings - Fork 72
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 dockerfile setup to use mamba #583
Draft
ayushdg
wants to merge
15
commits into
dask-contrib:main
Choose a base branch
from
ayushdg:enh-dockerfile-mamba
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
1c16a30
Use mamba instead of conda for dockerfile package installation
ayushdg e657bbf
Test docker builds on pr if those files are modified
ayushdg 350fb50
Use mamba on cloud dockerfile
ayushdg dd12f76
docker login only on pushes to main
ayushdg e655c35
Load the main image into docker for use by the cloud image
ayushdg f5e5dd9
Use env for docker_push action
ayushdg ee47381
Apply suggestions from code review
ayushdg 52abd46
Debug env variable value
ayushdg c0d160c
Debug env variable value
ayushdg 34b21d4
Use fromJSON to evaluate string env variables as boolean
ayushdg 76a4afb
Use fromJSON to evaluate string env variables as boolean
ayushdg ba36faf
Inspect loaded image from main dockerfile
ayushdg 6f4ea4a
Some more debug checks during inspect phase
ayushdg 5969f9c
fix image list command
ayushdg 3c6be77
Add debug prints after docker meta step
ayushdg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ LABEL author "Nils Braun <[email protected]>" | |
# Install dependencies for dask-sql | ||
COPY docker/conda.txt /opt/dask_sql/ | ||
RUN conda config --add channels conda-forge \ | ||
&& /opt/conda/bin/conda install --freeze-installed \ | ||
&& /opt/conda/bin/mamba install --freeze-installed \ | ||
"jpype1>=1.0.2" \ | ||
"openjdk>=11" \ | ||
"maven>=3.6.0" \ | ||
|
@@ -18,7 +18,7 @@ RUN conda config --add channels conda-forge \ | |
"pygments>=2.7.1" \ | ||
"dask-ml>=2022.1.22" \ | ||
"scikit-learn>=1.0.0" \ | ||
"intake>=0.6.0" \ | ||
"intake>=0.6.0" -y \ | ||
&& conda clean -ay | ||
|
||
# install dask-sql | ||
|
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.
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'm not 100% sure but I think you might need to change this to be
load: true
in order for it to pick up the local base image. Then add an additional push step. Settingload: true
changes the behaviour of the builder.See https://stackoverflow.com/a/63927832/1003288