Skip to content

Commit 06af492

Browse files
committed
Explicitly invoke "passenger-config download-nginx-engine" during image build time to avoid the runtime trying to download NGINX
1 parent a375cef commit 06af492

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

3.1/passenger/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
FROM redmine:3.1
22

33
ENV PASSENGER_VERSION 5.1.2
4+
45
RUN buildDeps=' \
56
make \
67
' \
78
&& set -x \
89
&& apt-get update && apt-get install -y --no-install-recommends $buildDeps && rm -rf /var/lib/apt/lists/* \
910
&& gem install passenger --version "$PASSENGER_VERSION" \
1011
&& apt-get purge -y --auto-remove $buildDeps
12+
13+
# pre-download the PassengerAgent and the NGINX engine
1114
RUN set -x \
1215
&& passenger-config install-agent \
13-
&& passenger-config install-standalone-runtime
16+
&& passenger-config download-nginx-engine
1417

1518
CMD ["passenger", "start"]

3.2/passenger/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
FROM redmine:3.2
22

33
ENV PASSENGER_VERSION 5.1.2
4+
45
RUN buildDeps=' \
56
make \
67
' \
78
&& set -x \
89
&& apt-get update && apt-get install -y --no-install-recommends $buildDeps && rm -rf /var/lib/apt/lists/* \
910
&& gem install passenger --version "$PASSENGER_VERSION" \
1011
&& apt-get purge -y --auto-remove $buildDeps
12+
13+
# pre-download the PassengerAgent and the NGINX engine
1114
RUN set -x \
1215
&& passenger-config install-agent \
13-
&& passenger-config install-standalone-runtime
16+
&& passenger-config download-nginx-engine
1417

1518
CMD ["passenger", "start"]

3.3/passenger/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
FROM redmine:3.3
22

33
ENV PASSENGER_VERSION 5.1.2
4+
45
RUN buildDeps=' \
56
make \
67
' \
78
&& set -x \
89
&& apt-get update && apt-get install -y --no-install-recommends $buildDeps && rm -rf /var/lib/apt/lists/* \
910
&& gem install passenger --version "$PASSENGER_VERSION" \
1011
&& apt-get purge -y --auto-remove $buildDeps
12+
13+
# pre-download the PassengerAgent and the NGINX engine
1114
RUN set -x \
1215
&& passenger-config install-agent \
13-
&& passenger-config install-standalone-runtime
16+
&& passenger-config download-nginx-engine
1417

1518
CMD ["passenger", "start"]

Dockerfile-passenger.template

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ RUN buildDeps=' \
99
&& apt-get update && apt-get install -y --no-install-recommends $buildDeps && rm -rf /var/lib/apt/lists/* \
1010
&& gem install passenger --version "$PASSENGER_VERSION" \
1111
&& apt-get purge -y --auto-remove $buildDeps
12+
13+
# pre-download the PassengerAgent and the NGINX engine
1214
RUN set -x \
1315
&& passenger-config install-agent \
14-
&& passenger-config install-standalone-runtime
16+
&& passenger-config download-nginx-engine
1517

1618
CMD ["passenger", "start"]

0 commit comments

Comments
 (0)