Skip to content

Commit 9f91d57

Browse files
committed
docker: install libssh2 1.8.2 on Xenial
While Xenial provides libssh2 in its repositories, it only has version 1.5.0 available. This version will unfortunately not be able to connect to GitHub due to their removal of weak cryptographic standards [1]. To still enable our CI to execute tests against GitHub, we thus have to update the provided libssh2 version to a newer one. Manually install libssh2 1.8.2 on Xenial. There's no need to do the same for Bionic, as it already provides libssh2 1.8.0. [1]: https://github.blog/2018-02-01-crypto-removal-notice/
1 parent 253dbea commit 9f91d57

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

azure-pipelines/docker/xenial

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,13 @@ RUN cd /tmp && \
1616
make install && \
1717
cd .. && \
1818
rm -rf mbedtls-2.16.2
19+
20+
RUN cd /tmp && \
21+
curl -LO https://www.libssh2.org/download/libssh2-1.8.2.tar.gz && \
22+
tar -xf libssh2-1.8.2.tar.gz && \
23+
rm -f libssh2-1.8.2.tar.gz && \
24+
cd libssh2-1.8.2 && \
25+
CFLAGS=-fPIC cmake -G Ninja -DCRYPTO_BACKEND=Libgcrypt . && \
26+
ninja install && \
27+
cd .. && \
28+
rm -rf libssh2-1.8.2

0 commit comments

Comments
 (0)