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

Enable pyspark console in docker container #20

Closed
wants to merge 1 commit into from
Closed

Enable pyspark console in docker container #20

wants to merge 1 commit into from

Conversation

sepastian
Copy link
Contributor

Additions:

  • install python in Dockerfile
  • reduce image size: remove apk build dependencies after building
  • updating README.md

…ove alpine/apk dependencies at the end of the build to reduce image size.

README: describe how to start pyspark console inside Docker container.
git \
wget
wget \
&& apk add --update python
Copy link
Member

Choose a reason for hiding this comment

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

Any reason this line can't just be python?

Copy link
Contributor Author

@sepastian sepastian Feb 25, 2020

Choose a reason for hiding this comment

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

Both git and wget are installed into the virtual package build-dependencies, which gets deleted at the end of the build. To keep python out of this package, a separate add without --virtual is required.

Actually, --update is not required again here.

Copy link
Member

Choose a reason for hiding this comment

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

Ah, gotcha!

Copy link
Member

Choose a reason for hiding this comment

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

(2/2) Installing python2 (2.7.16-r2)

We should go with Python 3 here. Any reason we're using Python 2?

@sepastian
Copy link
Contributor Author

sepastian commented Feb 25, 2020 via email

@ruebot
Copy link
Member

ruebot commented Feb 25, 2020

@sepastian I don't believe so. I use Python 3.7.3 locally with PySpark, and aut.

@sepastian
Copy link
Contributor Author

sepastian commented Feb 25, 2020 via email

@sepastian
Copy link
Contributor Author

Closing this and creating a new PR against current docker-aut.

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.

None yet

2 participants