Skip to content

Commit

Permalink
upgrade nginx 1.24, dev kit, misc...
Browse files Browse the repository at this point in the history
  • Loading branch information
noogen committed Sep 5, 2023
1 parent b3e2293 commit e656dec
Show file tree
Hide file tree
Showing 6 changed files with 318 additions and 226 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
FROM ubuntu:22.04 AS buildstep
ENV TERM=xterm container=docker DEBIAN_FRONTEND=noninteractive \
NGINX_DEVEL_KIT_VERSION=0.3.1 NGINX_SET_MISC_MODULE_VERSION=0.32 \
NGINX_VERSION=1.22.0
NGINX_DEVEL_KIT_VERSION=0.3.2 NGINX_SET_MISC_MODULE_VERSION=0.33 \
NGINX_VERSION=1.24.0
ADD ./build/ /tmp/
RUN bash /tmp/ubuntu.sh


FROM ubuntu:22.04
LABEL maintainer="noogen <[email protected]>"
ENV TERM=xterm container=docker DEBIAN_FRONTEND=noninteractive \
NGINX_VERSION=_1.22.0-1~jammy_amd64.deb \
NGINX_VERSION=_1.24.0-1~jammy_amd64.deb \
NGINX_DEBUG=-dbg${NGINX_VERSION}

COPY --from=buildstep /usr/src/nginx/nginx${NGINX_VERSION} /tmp
Expand All @@ -19,10 +19,10 @@ RUN cd /tmp \
&& apt-get update -y && apt-get upgrade -y --no-install-recommends --no-install-suggests \
&& apt-get install -y --no-install-recommends --no-install-suggests curl gpg-agent nano \
libgd3 gettext-base unzip rsync cron apt-transport-https software-properties-common \
ca-certificates libmaxminddb0 libmaxminddb-dev mmdb-bin python3-pip \
ca-certificates libmaxminddb0 libmaxminddb-dev mmdb-bin python3-pip git \
&& dpkg --configure -a \
&& touch /var/log/cron.log \
&& curl -s https://nginx.org/keys/nginx_signing.key | apt-key add - \
&& curl -fsSL https://nginx.org/keys/nginx_signing.key | apt-key add - \
&& cp /etc/apt/sources.list /etc/apt/sources.list.bak \
&& echo "deb http://nginx.org/packages/ubuntu/ jammy nginx" | tee -a /etc/apt/sources.list \
&& echo "deb-src http://nginx.org/packages/ubuntu/ jammy nginx" | tee -a /etc/apt/sources.list \
Expand Down
7 changes: 4 additions & 3 deletions build/ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
export NGINX_BUILD_DIR=/usr/src/nginx/nginx-${NGINX_VERSION}
cd /tmp

add-apt-repository ppa:maxmind/ppa
apt-get update
apt-get install -y --no-install-recommends --no-install-suggests curl apt-transport-https \
apt-utils software-properties-common build-essential ca-certificates libssl-dev \
zlib1g zlib1g-dev dpkg-dev libpcre3 libpcre3-dev libgd-dev gpg-agent
zlib1g zlib1g-dev dpkg-dev libpcre3 libpcre3-dev libgd-dev gpg-agent git

add-apt-repository ppa:maxmind/ppa
apt-get install -y libmaxminddb0 libmaxminddb-dev mmdb-bin

dpkg --configure -a
Expand All @@ -22,7 +23,7 @@ mkdir -p /usr/src/nginx/set-misc-nginx-module
tar -xof ngx-misc.tar.gz -C /usr/src/nginx/set-misc-nginx-module --strip-components=1
rm ngx-misc.tar.gz

curl -s https://nginx.org/keys/nginx_signing.key | apt-key add -
curl -fsSL https://nginx.org/keys/nginx_signing.key | apt-key add -
cp /etc/apt/sources.list /etc/apt/sources.list.bak
echo "deb http://nginx.org/packages/ubuntu/ jammy nginx" | tee -a /etc/apt/sources.list
echo "deb-src http://nginx.org/packages/ubuntu/ jammy nginx" | tee -a /etc/apt/sources.list
Expand Down
46 changes: 0 additions & 46 deletions files/etc/nginx/cdn/cdn-arvancloud.conf

This file was deleted.

16 changes: 0 additions & 16 deletions files/etc/nginx/cdn/cdn-arvancloud.py

This file was deleted.

Loading

0 comments on commit e656dec

Please sign in to comment.