Skip to content

Commit 48c809d

Browse files
authored
Merge pull request #39 from infosiftr/wget
Account for "ruby:slim" changes by explicitly installing "wget" and "ca-certificates"
2 parents f462a40 + dd11f72 commit 48c809d

File tree

4 files changed

+44
-24
lines changed

4 files changed

+44
-24
lines changed

3.1/Dockerfile

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@ FROM ruby:2.2-slim
33
# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
44
RUN groupadd -r redmine && useradd -r -g redmine redmine
55

6+
RUN apt-get update && apt-get install -y --no-install-recommends \
7+
ca-certificates \
8+
wget \
9+
&& rm -rf /var/lib/apt/lists/*
10+
611
# grab gosu for easy step-down from root
712
ENV GOSU_VERSION 1.7
813
RUN set -x \
9-
&& curl -fSL -o /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
10-
&& curl -fSL -o /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \
14+
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
15+
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \
1116
&& export GNUPGHOME="$(mktemp -d)" \
1217
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \
1318
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
@@ -18,8 +23,8 @@ RUN set -x \
1823
# grab tini for signal processing and zombie killing
1924
ENV TINI_VERSION v0.9.0
2025
RUN set -x \
21-
&& curl -fSL -o /usr/local/bin/tini "https://github.com/krallin/tini/releases/download/$TINI_VERSION/tini" \
22-
&& curl -fSL -o /usr/local/bin/tini.asc "https://github.com/krallin/tini/releases/download/$TINI_VERSION/tini.asc" \
26+
&& wget -O /usr/local/bin/tini "https://github.com/krallin/tini/releases/download/$TINI_VERSION/tini" \
27+
&& wget -O /usr/local/bin/tini.asc "https://github.com/krallin/tini/releases/download/$TINI_VERSION/tini.asc" \
2328
&& export GNUPGHOME="$(mktemp -d)" \
2429
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 6380DC428747F6C393FEACA59A84159D7001A4E5 \
2530
&& gpg --batch --verify /usr/local/bin/tini.asc /usr/local/bin/tini \
@@ -46,14 +51,14 @@ WORKDIR /usr/src/redmine
4651
ENV REDMINE_VERSION 3.1.6
4752
ENV REDMINE_DOWNLOAD_MD5 ce846787e490ec5121b1c4b960a2a32b
4853

49-
RUN curl -fSL "https://www.redmine.org/releases/redmine-${REDMINE_VERSION}.tar.gz" -o redmine.tar.gz \
54+
RUN wget -O redmine.tar.gz "https://www.redmine.org/releases/redmine-${REDMINE_VERSION}.tar.gz" \
5055
&& echo "$REDMINE_DOWNLOAD_MD5 redmine.tar.gz" | md5sum -c - \
5156
&& tar -xvf redmine.tar.gz --strip-components=1 \
5257
&& rm redmine.tar.gz files/delete.me log/delete.me \
5358
&& mkdir -p tmp/pdf public/plugin_assets \
5459
&& chown -R redmine:redmine ./
5560

56-
RUN buildDeps='\
61+
RUN buildDeps=' \
5762
gcc \
5863
libmagickcore-dev \
5964
libmagickwand-dev \

3.2/Dockerfile

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@ FROM ruby:2.2-slim
33
# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
44
RUN groupadd -r redmine && useradd -r -g redmine redmine
55

6+
RUN apt-get update && apt-get install -y --no-install-recommends \
7+
ca-certificates \
8+
wget \
9+
&& rm -rf /var/lib/apt/lists/*
10+
611
# grab gosu for easy step-down from root
712
ENV GOSU_VERSION 1.7
813
RUN set -x \
9-
&& curl -fSL -o /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
10-
&& curl -fSL -o /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \
14+
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
15+
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \
1116
&& export GNUPGHOME="$(mktemp -d)" \
1217
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \
1318
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
@@ -18,8 +23,8 @@ RUN set -x \
1823
# grab tini for signal processing and zombie killing
1924
ENV TINI_VERSION v0.9.0
2025
RUN set -x \
21-
&& curl -fSL -o /usr/local/bin/tini "https://github.com/krallin/tini/releases/download/$TINI_VERSION/tini" \
22-
&& curl -fSL -o /usr/local/bin/tini.asc "https://github.com/krallin/tini/releases/download/$TINI_VERSION/tini.asc" \
26+
&& wget -O /usr/local/bin/tini "https://github.com/krallin/tini/releases/download/$TINI_VERSION/tini" \
27+
&& wget -O /usr/local/bin/tini.asc "https://github.com/krallin/tini/releases/download/$TINI_VERSION/tini.asc" \
2328
&& export GNUPGHOME="$(mktemp -d)" \
2429
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 6380DC428747F6C393FEACA59A84159D7001A4E5 \
2530
&& gpg --batch --verify /usr/local/bin/tini.asc /usr/local/bin/tini \
@@ -46,14 +51,14 @@ WORKDIR /usr/src/redmine
4651
ENV REDMINE_VERSION 3.2.3
4752
ENV REDMINE_DOWNLOAD_MD5 46178231093ed8a90e9d9b6c1e7d42b6
4853

49-
RUN curl -fSL "https://www.redmine.org/releases/redmine-${REDMINE_VERSION}.tar.gz" -o redmine.tar.gz \
54+
RUN wget -O redmine.tar.gz "https://www.redmine.org/releases/redmine-${REDMINE_VERSION}.tar.gz" \
5055
&& echo "$REDMINE_DOWNLOAD_MD5 redmine.tar.gz" | md5sum -c - \
5156
&& tar -xvf redmine.tar.gz --strip-components=1 \
5257
&& rm redmine.tar.gz files/delete.me log/delete.me \
5358
&& mkdir -p tmp/pdf public/plugin_assets \
5459
&& chown -R redmine:redmine ./
5560

56-
RUN buildDeps='\
61+
RUN buildDeps=' \
5762
gcc \
5863
libmagickcore-dev \
5964
libmagickwand-dev \

3.3/Dockerfile

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@ FROM ruby:2.2-slim
33
# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
44
RUN groupadd -r redmine && useradd -r -g redmine redmine
55

6+
RUN apt-get update && apt-get install -y --no-install-recommends \
7+
ca-certificates \
8+
wget \
9+
&& rm -rf /var/lib/apt/lists/*
10+
611
# grab gosu for easy step-down from root
712
ENV GOSU_VERSION 1.7
813
RUN set -x \
9-
&& curl -fSL -o /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
10-
&& curl -fSL -o /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \
14+
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
15+
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \
1116
&& export GNUPGHOME="$(mktemp -d)" \
1217
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \
1318
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
@@ -18,8 +23,8 @@ RUN set -x \
1823
# grab tini for signal processing and zombie killing
1924
ENV TINI_VERSION v0.9.0
2025
RUN set -x \
21-
&& curl -fSL -o /usr/local/bin/tini "https://github.com/krallin/tini/releases/download/$TINI_VERSION/tini" \
22-
&& curl -fSL -o /usr/local/bin/tini.asc "https://github.com/krallin/tini/releases/download/$TINI_VERSION/tini.asc" \
26+
&& wget -O /usr/local/bin/tini "https://github.com/krallin/tini/releases/download/$TINI_VERSION/tini" \
27+
&& wget -O /usr/local/bin/tini.asc "https://github.com/krallin/tini/releases/download/$TINI_VERSION/tini.asc" \
2328
&& export GNUPGHOME="$(mktemp -d)" \
2429
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 6380DC428747F6C393FEACA59A84159D7001A4E5 \
2530
&& gpg --batch --verify /usr/local/bin/tini.asc /usr/local/bin/tini \
@@ -46,14 +51,14 @@ WORKDIR /usr/src/redmine
4651
ENV REDMINE_VERSION 3.3.0
4752
ENV REDMINE_DOWNLOAD_MD5 0c0abb2d4efde455c3505d8caf01cb2d
4853

49-
RUN curl -fSL "https://www.redmine.org/releases/redmine-${REDMINE_VERSION}.tar.gz" -o redmine.tar.gz \
54+
RUN wget -O redmine.tar.gz "https://www.redmine.org/releases/redmine-${REDMINE_VERSION}.tar.gz" \
5055
&& echo "$REDMINE_DOWNLOAD_MD5 redmine.tar.gz" | md5sum -c - \
5156
&& tar -xvf redmine.tar.gz --strip-components=1 \
5257
&& rm redmine.tar.gz files/delete.me log/delete.me \
5358
&& mkdir -p tmp/pdf public/plugin_assets \
5459
&& chown -R redmine:redmine ./
5560

56-
RUN buildDeps='\
61+
RUN buildDeps=' \
5762
gcc \
5863
libmagickcore-dev \
5964
libmagickwand-dev \

Dockerfile.template

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@ FROM ruby:2.2-slim
33
# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
44
RUN groupadd -r redmine && useradd -r -g redmine redmine
55

6+
RUN apt-get update && apt-get install -y --no-install-recommends \
7+
ca-certificates \
8+
wget \
9+
&& rm -rf /var/lib/apt/lists/*
10+
611
# grab gosu for easy step-down from root
712
ENV GOSU_VERSION 1.7
813
RUN set -x \
9-
&& curl -fSL -o /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
10-
&& curl -fSL -o /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \
14+
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
15+
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \
1116
&& export GNUPGHOME="$(mktemp -d)" \
1217
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \
1318
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
@@ -18,8 +23,8 @@ RUN set -x \
1823
# grab tini for signal processing and zombie killing
1924
ENV TINI_VERSION v0.9.0
2025
RUN set -x \
21-
&& curl -fSL -o /usr/local/bin/tini "https://github.com/krallin/tini/releases/download/$TINI_VERSION/tini" \
22-
&& curl -fSL -o /usr/local/bin/tini.asc "https://github.com/krallin/tini/releases/download/$TINI_VERSION/tini.asc" \
26+
&& wget -O /usr/local/bin/tini "https://github.com/krallin/tini/releases/download/$TINI_VERSION/tini" \
27+
&& wget -O /usr/local/bin/tini.asc "https://github.com/krallin/tini/releases/download/$TINI_VERSION/tini.asc" \
2328
&& export GNUPGHOME="$(mktemp -d)" \
2429
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 6380DC428747F6C393FEACA59A84159D7001A4E5 \
2530
&& gpg --batch --verify /usr/local/bin/tini.asc /usr/local/bin/tini \
@@ -46,14 +51,14 @@ WORKDIR /usr/src/redmine
4651
ENV REDMINE_VERSION %%REDMINE_VERSION%%
4752
ENV REDMINE_DOWNLOAD_MD5 %%REDMINE_DOWNLOAD_MD5%%
4853

49-
RUN curl -fSL "https://www.redmine.org/releases/redmine-${REDMINE_VERSION}.tar.gz" -o redmine.tar.gz \
54+
RUN wget -O redmine.tar.gz "https://www.redmine.org/releases/redmine-${REDMINE_VERSION}.tar.gz" \
5055
&& echo "$REDMINE_DOWNLOAD_MD5 redmine.tar.gz" | md5sum -c - \
5156
&& tar -xvf redmine.tar.gz --strip-components=1 \
5257
&& rm redmine.tar.gz files/delete.me log/delete.me \
5358
&& mkdir -p tmp/pdf public/plugin_assets \
5459
&& chown -R redmine:redmine ./
5560

56-
RUN buildDeps='\
61+
RUN buildDeps=' \
5762
gcc \
5863
libmagickcore-dev \
5964
libmagickwand-dev \

0 commit comments

Comments
 (0)