Add compose.yml for Docker#4
Open
danilo-alm wants to merge 1 commit intokrishnaik06:mainfrom
Open
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds a Docker Compose setup intended to make the repository’s PySpark tutorials easier to run locally, so beginners can start a Spark + Jupyter environment without installing Spark manually.
Changes:
- Adds a
compose.ymlfile to define a local Spark master, one Spark worker, and a Jupyter PySpark notebook service. - Publishes the Spark UI, Spark master, and Jupyter ports for local access.
- Adds bind mounts intended to share tutorial files between the host and containers.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+27
to
+28
| volumes: | ||
| - ./notebooks:/home/jovyan/work |
Comment on lines
+36
to
+37
| volumes: | ||
| - ./notebooks:/home/jovyan/work |
| - ./notebooks:/home/jovyan/work | ||
| command: start.sh jupyter notebook --NotebookApp.token='' | ||
| environment: | ||
| - JUPYTER_ENABLE_LAB=yes |
| - "8888:8888" | ||
| volumes: | ||
| - ./notebooks:/home/jovyan/work | ||
| command: start.sh jupyter notebook --NotebookApp.token='' |
| - ./notebooks:/home/jovyan/work | ||
| ports: | ||
| - "8080:8080" | ||
| - "7077:7077" |
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.
Installing spark is no simple task for beginners. Adding a compose.yml for those familiarized with Docker Compose would make the job a lot easier for studying purposes.