-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a Docker image for Spark in Scala (#2)
* build: add a Docker image with sbt installed + add gitignore
- Loading branch information
1 parent
7ed5e67
commit 2b28ec9
Showing
3 changed files
with
60 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.idea |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# | ||
# Source: https://github.com/data-engineering-helpers/dpp-images/tree/main/pyspark-py310/Dockerfile | ||
# On Docker Hub: https://hub.docker.com/repository/docker/infrahelpers/dpp/general | ||
# Usual Docker tags: | ||
# * infrahelpers/dpp:jdk8-sbt{SBT_VERSION} | ||
# | ||
# Image containing python installation, to be accessed by EMR and Databricks (for spark scala) | ||
# See https://github.com/data-engineering-helpers/dpp-images/tree/main/coretto-emr-dbs-universal-base/Dockerfile | ||
# for more details about the base image (tag: infrahelpers/dpp:jdk{JDK_VERSION}) | ||
# | ||
FROM infrahelpers/dpp:jdk8 | ||
|
||
ARG SBT_VERSION | ||
|
||
LABEL authors="Antoine Chenon<antoine.chenon@decathlon.com>" | ||
|
||
# Update the OS | ||
RUN yum -y update && yum clean all | ||
|
||
# Install sbt | ||
RUN rm -f /etc/yum.repos.d/bintray-rpm.repo; curl -L https://www.scala-sbt.org/sbt-rpm.repo > sbt-rpm.repo; mv sbt-rpm.repo /etc/yum.repos.d/; yum -y install sbt-${SBT_VERSION}-0 |