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

Update Dockerfile #11

Merged
merged 4 commits into from
Mar 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/spark-docker-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

env:
IMAGE_NAME: 'grupoabraxas/spark-base'
IMAGE_TAG: '3.1.1_py-3.11.2_hadoop-3'
IMAGE_TAG: '3.1.1_py-3.10.10_hadoop-3_1'

jobs:
publish:
Expand Down
12 changes: 7 additions & 5 deletions spark-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ FROM gcr.io/spark-operator/spark-py:v3.1.1-hadoop3
USER root
# Update python version
RUN apt update --allow-releaseinfo-change -y
ADD https://www.python.org/ftp/python/3.11.2/Python-3.11.2.tgz Python-3.11.2.tgz
RUN tar -xzvf Python-3.11.2.tgz
RUN apt install -y build-essential libbz2-dev zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev unzip
RUN cd Python-3.11.2/ && ./configure --enable-optimizations && make altinstall && cd ..
RUN update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.11 1
ADD https://www.python.org/ftp/python/3.10.10/Python-3.10.10.tgz Python-3.10.10.tgz
RUN tar -xzvf Python-3.10.10.tgz
RUN apt install -y build-essential libbz2-dev zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libsqlite3-dev libffi-dev unzip
RUN cd Python-3.10.10/ && ./configure --enable-optimizations && make altinstall && cd ..
RUN update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.10 1
RUN rm Python-3.10.10.tgz
RUN rm -rf Python-3.10.10/
USER ${spark_uid}

ENTRYPOINT ["python3"]