Skip to content
Snippets Groups Projects
Commit 15bc8e70 authored by Stanley Cheung's avatar Stanley Cheung
Browse files

allow explicit BUILD_INTEROP_DOCKER_EXTRA_ARGS params to docker run command

parent 60f406ab
No related branches found
No related tags found
No related merge requests found
...@@ -33,6 +33,13 @@ ...@@ -33,6 +33,13 @@
set -x set -x
# Params:
# INTEROP_IMAGE - name of tag of the final interop image
# BASE_NAME - base name used to locate the base Dockerfile and build script
# TTY_FLAG - optional -t flag to make docker allocate tty
# BUILD_INTEROP_DOCKER_EXTRA_ARGS - optional args to be passed to the
# docker run command
cd `dirname $0`/../.. cd `dirname $0`/../..
GRPC_ROOT=`pwd` GRPC_ROOT=`pwd`
MOUNT_ARGS="-v $GRPC_ROOT:/var/local/jenkins/grpc:ro" MOUNT_ARGS="-v $GRPC_ROOT:/var/local/jenkins/grpc:ro"
...@@ -55,11 +62,6 @@ fi ...@@ -55,11 +62,6 @@ fi
mkdir -p /tmp/ccache mkdir -p /tmp/ccache
# Params:
# INTEROP_IMAGE - name of tag of the final interop image
# BASE_NAME - base name used to locate the base Dockerfile and build script
# TTY_FLAG - optional -t flag to make docker allocate tty.
# Mount service account dir if available. # Mount service account dir if available.
# If service_directory does not contain the service account JSON file, # If service_directory does not contain the service account JSON file,
# some of the tests will fail. # some of the tests will fail.
...@@ -84,6 +86,7 @@ CONTAINER_NAME="build_${BASE_NAME}_$(uuidgen)" ...@@ -84,6 +86,7 @@ CONTAINER_NAME="build_${BASE_NAME}_$(uuidgen)"
-e CCACHE_DIR=/tmp/ccache \ -e CCACHE_DIR=/tmp/ccache \
-i $TTY_FLAG \ -i $TTY_FLAG \
$MOUNT_ARGS \ $MOUNT_ARGS \
$BUILD_INTEROP_DOCKER_EXTRA_ARGS \
-v /tmp/ccache:/tmp/ccache \ -v /tmp/ccache:/tmp/ccache \
--name=$CONTAINER_NAME \ --name=$CONTAINER_NAME \
$BASE_IMAGE \ $BASE_IMAGE \
......
...@@ -87,12 +87,6 @@ RUN /bin/bash -l -c "gem install bundler --no-ri --no-rdoc" ...@@ -87,12 +87,6 @@ RUN /bin/bash -l -c "gem install bundler --no-ri --no-rdoc"
# Install dependencies # Install dependencies
RUN /bin/bash -l -c "echo 'deb http://packages.dotdeb.org wheezy-php55 all' \
>> /etc/apt/sources.list.d/dotdeb.list"
RUN /bin/bash -l -c "echo 'deb-src http://packages.dotdeb.org wheezy-php55 all' \
>> /etc/apt/sources.list.d/dotdeb.list"
RUN wget http://www.dotdeb.org/dotdeb.gpg -O- | apt-key add -
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
git php5 php5-dev phpunit unzip git php5 php5-dev phpunit unzip
...@@ -102,8 +96,6 @@ RUN apt-get update && apt-get install -y \ ...@@ -102,8 +96,6 @@ RUN apt-get update && apt-get install -y \
# rake: a ruby version of make used to build the PHP Protobuf extension # rake: a ruby version of make used to build the PHP Protobuf extension
RUN /bin/bash -l -c "rvm all do gem install ronn rake" RUN /bin/bash -l -c "rvm all do gem install ronn rake"
ENV DEBIAN_FRONTEND noniteractive
# Install composer # Install composer
RUN curl -sS https://getcomposer.org/installer | php RUN curl -sS https://getcomposer.org/installer | php
RUN mv composer.phar /usr/local/bin/composer RUN mv composer.phar /usr/local/bin/composer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment