|
|
|
@ -12,7 +12,8 @@ |
|
|
|
|
# See the License for the specific language governing permissions and |
|
|
|
|
# limitations under the License. |
|
|
|
|
|
|
|
|
|
FROM php:7.3-zts-stretch |
|
|
|
|
# debian 11 = "bullseye" |
|
|
|
|
FROM php:7.3-zts-bullseye |
|
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \ |
|
|
|
|
autoconf automake build-essential git libtool curl \ |
|
|
|
@ -59,10 +60,31 @@ RUN python3 -m pip install --upgrade google-auth==1.23.0 google-api-python-clien |
|
|
|
|
RUN curl -sS https://getcomposer.org/installer | php |
|
|
|
|
RUN mv composer.phar /usr/local/bin/composer |
|
|
|
|
|
|
|
|
|
#================= |
|
|
|
|
# Install cmake |
|
|
|
|
# Note that this step should be only used for distributions that have new enough cmake to satisfy gRPC's cmake version requirement. |
|
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y cmake && apt-get clean |
|
|
|
|
|
|
|
|
|
#================= |
|
|
|
|
# Install ccache |
|
|
|
|
|
|
|
|
|
# Install ccache from source since ccache 3.x packaged with most linux distributions |
|
|
|
|
# does not support Redis backend for caching. |
|
|
|
|
RUN curl -sSL -o ccache.tar.gz https://github.com/ccache/ccache/releases/download/v4.5.1/ccache-4.5.1.tar.gz \ |
|
|
|
|
&& tar -zxf ccache.tar.gz \ |
|
|
|
|
&& cd ccache-4.5.1 \ |
|
|
|
|
&& mkdir build && cd build \ |
|
|
|
|
&& cmake -DCMAKE_BUILD_TYPE=Release -DZSTD_FROM_INTERNET=ON -DHIREDIS_FROM_INTERNET=ON .. \ |
|
|
|
|
&& make -j4 && make install \ |
|
|
|
|
&& cd ../.. \ |
|
|
|
|
&& rm -rf ccache-4.5.1 ccache.tar.gz |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RUN mkdir /var/local/jenkins |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Seems required by XDS interop tests. |
|
|
|
|
RUN python3 -m pip install virtualenv==16.7.9 |
|
|
|
|
|
|
|
|
|
# Define the default command. |