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

Install Python3 during build #21

Merged
merged 1 commit into from
May 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 8 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ RUN apk update \
&& apk add --no-cache libc6-compat \
&& ln -s /lib/libc.musl-x86_64.so.1 /lib/ld-linux-x86-64.so.2

# Git and Wget
RUN apk add --update \
# Git, Wget, Python3;
# ln python3 to python, to make /spark/bin/pyspark happy.
RUN apk --no-cache --virtual build-dependencies add --update \
git \
wget
wget \
&& apk add python3 \
&& ln -sf /usr/bin/python3 /usr/local/bin/python

# Sample resources
RUN git clone https://github.com/archivesunleashed/aut-resources.git
Expand All @@ -39,4 +42,6 @@ RUN mkdir /spark \
&& tar -xf "/tmp/spark-$SPARK_VERSION-bin-hadoop2.7.tgz" -C /spark --strip-components=1 \
&& rm "/tmp/spark-$SPARK_VERSION-bin-hadoop2.7.tgz"

RUN apk del build-dependencies

CMD /spark/bin/spark-shell --packages "io.archivesunleashed:aut:0.70.1-SNAPSHOT"