Skip to content

Commit

Permalink
bumped spark version. fixed docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
andremann committed Nov 6, 2024
1 parent 0cc3b75 commit 01ea0d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM eclipse-temurin:21

RUN apt-get update && apt-get install -y curl vim wget software-properties-common ssh net-tools ca-certificates python3 python3-pip
RUN apt-get update && apt-get install -y curl vim wget software-properties-common ssh net-tools ca-certificates python3 python3-pip

RUN update-alternatives --install "/usr/bin/python" "python" "$(which python3)" 1

Expand All @@ -26,16 +26,14 @@ RUN useradd -d /app -s /bin/bash -G sudo -u 1001 openaire

WORKDIR /app


RUN chown -R openaire /app

USER openaire

RUN pip install jupyter notebook
# Prepare environment for python
COPY requirements.txt .
RUN pip install -r requirements.txt
RUN pip install -r requirements.txt --break-system-packages
EXPOSE 8889
RUN pip install jupyter notebook
ENV PATH="$PATH:/opt/spark/bin:/app/.local/bin"
ENV PYSPARK_DRIVER_PYTHON='jupyter'
ENV PYSPARK_DRIVER_PYTHON_OPTS='lab --ip 0.0.0.0 --no-browser --port=8889'
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
jupyter
numpy
pandas
coverage
Expand Down

0 comments on commit 01ea0d2

Please sign in to comment.