1%YAML 1.2 2--- | 3 # Copyright 2021 the gRPC authors. 4 # 5 # Licensed under the Apache License, Version 2.0 (the "License"); 6 # you may not use this file except in compliance with the License. 7 # You may obtain a copy of the License at 8 # 9 # http://www.apache.org/licenses/LICENSE-2.0 10 # 11 # Unless required by applicable law or agreed to in writing, software 12 # distributed under the License is distributed on an "AS IS" BASIS, 13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 # See the License for the specific language governing permissions and 15 # limitations under the License. 16 17 FROM debian:11 18 19 <%include file="../../apt_get_basic.include"/> 20 <%include file="../../run_tests_python_deps.include"/> 21 <%include file="../../cxx_test_deps.include"/> 22 <%include file="../../cxx_deps.include"/> 23 <%include file="../../cmake.include"/> 24 <%include file="../../ccache.include"/> 25 <%include file="../../run_tests_addons.include"/> 26 27 # Install openssl 1.0.2 from source 28 RUN apt-get update && apt-get install -y build-essential zlib1g-dev 29 RUN cd /tmp && ${"\\"} 30 wget --no-check-certificate https://www.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz && ${"\\"} 31 tar -xf openssl-1.0.2u.tar.gz && ${"\\"} 32 cd openssl-1.0.2u && ${"\\"} 33 ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib && ${"\\"} 34 make -j 4 && ${"\\"} 35 make install && ${"\\"} 36 rm -rf /tmp/openssl-1.0.2u* 37 ENV OPENSSL_ROOT_DIR=/usr/local/ssl 38 39 # Define the default command. 40 CMD ["bash"] 41