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

fix: Upgrade and fix Dockerfiles #1472

Merged

Conversation

ppruthi
Copy link
Contributor

@ppruthi ppruthi commented Apr 12, 2022

Summary

This Pull Request upgrades and fixes Dockerfiles that users can build images locally and run synapseml notebooks to experiment easily.

Tests

N/A

Dependency chances

None

AB#1745424

@ppruthi ppruthi requested a review from mhamilton723 as a code owner April 12, 2022 20:12

ARG SPARK_VERSION=3.2.0
ARG MMLSPARK_VERSION=0.9.5
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: we might want to rename this to SYNAPSEML_VERSION

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

ENV PYTHONPATH $SPARK_HOME/python/:$SPARK_HOME/python/lib/py4j*:$PYTHON_PATH
ENV PATH $SPARK_HOME/bin/:$SPARK_HOME/python/:$PATH

RUN apt-get remove --purge -y \
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this needs to be run when apt-get install happens otherwise it will only increase the image size

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think you might be talking about apt-get autoclean / autoremove. This remove sub-command is to remove packages we installed in the first run on Line 13. Let me know if I am wrong here.

@@ -0,0 +1,18 @@
# demo Dockerfile
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for documenting :)!

@ppruthi
Copy link
Contributor Author

ppruthi commented Apr 15, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@codecov-commenter
Copy link

codecov-commenter commented Apr 15, 2022

Codecov Report

Merging #1472 (4ceb16b) into master (82fdf95) will decrease coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1472      +/-   ##
==========================================
- Coverage   84.43%   84.41%   -0.03%     
==========================================
  Files         295      295              
  Lines       14779    14779              
  Branches      714      714              
==========================================
- Hits        12479    12475       -4     
- Misses       2300     2304       +4     
Impacted Files Coverage Δ
...crosoft/azure/synapse/ml/io/http/HTTPClients.scala 76.47% <0.00%> (-7.36%) ⬇️
...zure/synapse/ml/stages/PartitionConsolidator.scala 95.74% <0.00%> (+2.12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 82fdf95...4ceb16b. Read the comment docs.

@mhamilton723
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ppruthi ppruthi enabled auto-merge (squash) April 18, 2022 17:35
@ppruthi
Copy link
Contributor Author

ppruthi commented Apr 18, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mhamilton723 mhamilton723 disabled auto-merge April 18, 2022 23:46
@mhamilton723 mhamilton723 merged commit d4f52e8 into microsoft:master Apr 18, 2022
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.

3 participants