Skip to content

Commit e60a345

Browse files
authored
njs: use GitHub repository to get the source code (#150)
* njs: use GitHub repository to get the source code Resolves #149 * Make njs configure script executable * njs: git checkout -q FETCH_HEAD
1 parent 1681115 commit e60a345

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ ARG NGX_BROTLI_COMMIT=a71f9312c2deb28875acc7bacfdd5695a111aa53
1010
# https://github.com/google/boringssl
1111
#ARG BORINGSSL_COMMIT=fae0964b3d44e94ca2a2d21f86e61dabe683d130
1212

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

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

166166
RUN \
167167
echo "Cloning and configuring njs ..." \
168-
&& cd /usr/src \
169-
&& hg clone --rev ${NJS_COMMIT} http://hg.nginx.org/njs \
168+
&& mkdir /usr/src/njs \
170169
&& cd /usr/src/njs \
170+
&& git init \
171+
&& git remote add origin https://github.com/nginx/njs.git \
172+
&& git fetch --depth 1 origin ${NJS_COMMIT} \
173+
&& git checkout -q FETCH_HEAD \
171174
&& ./configure \
172175
&& make njs \
173176
&& mv /usr/src/njs/build/njs /usr/sbin/njs \

0 commit comments

Comments
 (0)