mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Update httptester for httpbin==0.6.2
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
FROM nginx:alpine
|
||||
# We are pinning at 1.13.8 due to the 1.13.9 image having a vastly different /etc/ssl/openssl.cnf that do not work with our below commands
|
||||
FROM nginx:1.13.8-alpine
|
||||
|
||||
# The following packages are required to get httpbin/brotlipy/cffi installed
|
||||
# openssl-dev python2-dev libffi-dev gcc libstdc++ make musl-dev
|
||||
# Symlinking /usr/lib/libstdc++.so.6 to /usr/lib/libstdc++.so is specifically required for brotlipy
|
||||
RUN set -x && \
|
||||
apk add -U openssl py-pip && \
|
||||
apk add --no-cache openssl ca-certificates py-pip openssl-dev python2-dev libffi-dev gcc libstdc++ make musl-dev && \
|
||||
update-ca-certificates && \
|
||||
ln -s /usr/lib/libstdc++.so.6 /usr/lib/libstdc++.so && \
|
||||
mkdir -p /root/ca/certs /root/ca/private /root/ca/newcerts && \
|
||||
echo 1000 > /root/ca/serial && \
|
||||
touch /root/ca/index.txt && \
|
||||
@@ -23,7 +29,8 @@ RUN set -x && \
|
||||
cp /root/ca/cacert.pem /usr/share/nginx/html/cacert.pem && \
|
||||
cp /root/ca/client.ansible.http.tests-cert.pem /usr/share/nginx/html/client.pem && \
|
||||
cp /root/ca/private/client.ansible.http.tests-key.pem /usr/share/nginx/html/client.key && \
|
||||
pip install gunicorn httpbin==0.5.0
|
||||
pip install gunicorn httpbin==0.6.2 && \
|
||||
apk del openssl-dev python2-dev libffi-dev gcc libstdc++ make musl-dev
|
||||
|
||||
ADD services.sh /services.sh
|
||||
ADD nginx.sites.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
Reference in New Issue
Block a user