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

ARROW-2350: Consolidated RUN step in spark_integration Dockerfile #1787

Closed
wants to merge 1 commit into from
Closed
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
34 changes: 18 additions & 16 deletions dev/spark_integration/Dockerfile
Expand Up @@ -17,24 +17,23 @@
FROM maven:3.5.2-jdk-8-slim

# Basic OS utilities
RUN apt-get update && apt-get install -y \
RUN apt-get update && \
apt-get install -y \
wget \
git build-essential \
software-properties-common

# This will install conda in /home/ubuntu/miniconda
RUN wget -O /tmp/miniconda.sh \
git \
build-essential \
software-properties-common && \
apt-get clean && \
# install conda in /home/ubuntu/miniconda
wget -O /tmp/miniconda.sh \
https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
bash /tmp/miniconda.sh -b -p /home/ubuntu/miniconda && \
rm /tmp/miniconda.sh

# Python dependencies
RUN apt-get install -y \
pkg-config

# Create Conda environment
ENV PATH="/home/ubuntu/miniconda/bin:${PATH}"
RUN conda create -y -q -n pyarrow-dev \
rm /tmp/miniconda.sh && \
# Python dependencies
apt-get install -y \
pkg-config && \
# Create Conda environment
/home/ubuntu/miniconda/bin/conda create -y -q -n pyarrow-dev \
# Python
python=2.7 \
numpy \
Expand All @@ -59,7 +58,10 @@ RUN conda create -y -q -n pyarrow-dev \
jemalloc \
lz4-c \
zstd \
-c conda-forge
-c conda-forge && \
/home/ubuntu/miniconda/bin/conda clean --all

ENV PATH="/home/ubuntu/miniconda/bin:${PATH}"

ADD . /apache-arrow
WORKDIR /apache-arrow
Expand Down