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

ORC-447: Update docker to use shared volume for m2 cache. #350

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions docker/centos6/Dockerfile
Expand Up @@ -60,6 +60,8 @@ RUN cd snappy-1.1.3 && \
./configure && \
make install

VOLUME /root/.m2/repository

CMD git clone https://github.com/apache/orc.git -b master && \
mkdir orc/build && \
cd orc/build && \
Expand Down
2 changes: 2 additions & 0 deletions docker/centos7/Dockerfile
Expand Up @@ -52,6 +52,8 @@ RUN cd snappy-1.1.3 && \
./configure && \
make install

VOLUME /root/.m2/repository

CMD git clone https://github.com/apache/orc.git -b master && \
mkdir orc/build && \
cd orc/build && \
Expand Down
2 changes: 2 additions & 0 deletions docker/debian8/Dockerfile
Expand Up @@ -51,6 +51,8 @@ RUN cd snappy-1.1.3 && \
./configure && \
make install

VOLUME /root/.m2/repository

CMD git clone https://github.com/apache/orc.git -b master && \
mkdir orc/build && \
cd orc/build && \
Expand Down
2 changes: 2 additions & 0 deletions docker/debian9/Dockerfile
Expand Up @@ -34,6 +34,8 @@ RUN apt-get install -y \

WORKDIR /root

VOLUME /root/.m2/repository

CMD git clone https://github.com/apache/orc.git -b master && \
mkdir orc/build && \
cd orc/build && \
Expand Down
3 changes: 2 additions & 1 deletion docker/run-all.sh
Expand Up @@ -21,6 +21,7 @@ BRANCH=$2

CLONE="git clone $URL -b $BRANCH"
MAKEDIR="mkdir orc/build && cd orc/build"
VOLUME="--volume m2cache:/root/.m2/repository"
mkdir -p logs

start=`date`
Expand All @@ -43,7 +44,7 @@ for os in `cat os-list.txt`; do
OPTS=""
;;
esac
docker run "orc-$os" /bin/bash -c \
docker run $VOLUME "orc-$os" /bin/bash -c \
"$CLONE && $MAKEDIR && cmake $OPTS .. && make package test-out" \
> logs/$os-test.log 2>&1 || exit 1
done
Expand Down
2 changes: 2 additions & 0 deletions docker/ubuntu14/Dockerfile
Expand Up @@ -49,6 +49,8 @@ RUN cd snappy-1.1.3 && \
./configure && \
make install

VOLUME /root/.m2/repository

CMD git clone https://github.com/apache/orc.git -b master && \
mkdir orc/build && \
cd orc/build && \
Expand Down
1 change: 1 addition & 0 deletions docker/ubuntu16-clang5/Dockerfile
Expand Up @@ -40,6 +40,7 @@ ENV CC=clang-5.0
ENV CXX=clang++-5.0

WORKDIR /root
VOLUME /root/.m2/repository

CMD git clone https://github.com/apache/orc.git -b master && \
mkdir orc/build && \
Expand Down
1 change: 1 addition & 0 deletions docker/ubuntu16/Dockerfile
Expand Up @@ -34,6 +34,7 @@ RUN apt-get install -y \
tzdata

WORKDIR /root
VOLUME /root/.m2/repository

CMD git clone https://github.com/apache/orc.git -b master && \
mkdir orc/build && \
Expand Down
1 change: 1 addition & 0 deletions docker/ubuntu18/Dockerfile
Expand Up @@ -36,6 +36,7 @@ RUN apt-get install -y \
RUN update-java-alternatives --set java-1.8.0-openjdk-amd64

WORKDIR /root
VOLUME /root/.m2/repository

CMD git clone https://github.com/apache/orc.git -b master && \
mkdir orc/build && \
Expand Down