File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
nginx-regex-tester/regextester Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,13 @@ RUN chmod +x /usr/local/sbin/start.sh
6
6
RUN apt-get update && apt-get install -y -q wget curl apt-transport-https lsb-release ca-certificates gnupg
7
7
8
8
RUN wget -q -O - http://nginx.org/keys/nginx_signing.key | gpg --dearmor > /usr/share/keyrings/nginx-archive-keyring.gpg
9
+ RUN wget -q -O - https://unit.nginx.org/keys/nginx-keyring.gpg | gpg --dearmor > /usr/share/keyrings/nginx-keyring.gpg
9
10
10
11
RUN rm /etc/nginx/conf.d/*
11
12
COPY regextester.conf /etc/nginx/conf.d
12
13
13
- RUN printf "deb https://packages.nginx.org/unit/debian/ `lsb_release -cs` unit" > /etc/apt/sources.list.d/unit.list
14
- RUN printf "deb-src https://packages.nginx.org/unit/debian/ `lsb_release -cs` unit" >> /etc/apt/sources.list.d/unit.list
14
+ RUN printf "deb [signed-by=/usr/share/keyrings/nginx-keyring.gpg] https://packages.nginx.org/unit/debian/ `lsb_release -cs` unit" > /etc/apt/sources.list.d/unit.list
15
+ RUN printf "deb-src [signed-by=/usr/share/keyrings/nginx-keyring.gpg] https://packages.nginx.org/unit/debian/ `lsb_release -cs` unit" >> /etc/apt/sources.list.d/unit.list
15
16
RUN apt-get update && apt-get install -y unit php7.0 unit-php
16
17
17
18
COPY regextester.php /usr/share/nginx/html
Original file line number Diff line number Diff line change 10
10
11
11
echo " NGINX started"
12
12
13
- unitd --modules /usr/lib/unit/modules/ --log /var/log/unit.log
13
+ unitd --modulesdir /usr/lib/unit/modules/ --log /var/log/unit.log
14
14
15
15
i=$( curl --unix-socket /run/control.unit.sock -s -o /dev/null -w " %{http_code}" localhost/config)
16
16
if [ " $i " != " 200" ]; then
You can’t perform that action at this time.
0 commit comments