Skip to content

Commit

Permalink
njs: use GitHub repository to get the source code (#150)
Browse files Browse the repository at this point in the history
* njs: use GitHub repository to get the source code

Resolves #149

* Make njs configure script executable

* njs: git checkout -q FETCH_HEAD
  • Loading branch information
macbre authored Aug 15, 2024
1 parent 1681115 commit e60a345
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ ARG NGX_BROTLI_COMMIT=a71f9312c2deb28875acc7bacfdd5695a111aa53
# https://github.com/google/boringssl
#ARG BORINGSSL_COMMIT=fae0964b3d44e94ca2a2d21f86e61dabe683d130

# http://hg.nginx.org/njs / v0.8.5
ARG NJS_COMMIT=a419f9189f55
# https://github.com/nginx/njs/releases/tag/0.8.5
ARG NJS_COMMIT=9d4bf6c60aa60a828609f64d1b5c50f71bb7ef62

# https://github.com/openresty/headers-more-nginx-module#installation
# we want to have https://github.com/openresty/headers-more-nginx-module/commit/e536bc595d8b490dbc9cf5999ec48fca3f488632
Expand Down Expand Up @@ -165,9 +165,12 @@ RUN \

RUN \
echo "Cloning and configuring njs ..." \
&& cd /usr/src \
&& hg clone --rev ${NJS_COMMIT} http://hg.nginx.org/njs \
&& mkdir /usr/src/njs \
&& cd /usr/src/njs \
&& git init \
&& git remote add origin https://github.com/nginx/njs.git \
&& git fetch --depth 1 origin ${NJS_COMMIT} \
&& git checkout -q FETCH_HEAD \
&& ./configure \
&& make njs \
&& mv /usr/src/njs/build/njs /usr/sbin/njs \
Expand Down

0 comments on commit e60a345

Please sign in to comment.