Skip to content

Commit 5036e92

Browse files
committed
Merge pull request #35 from infosiftr/gosu-1.2
Update to gosu 1.2 (including GPG verification)
2 parents 981ac75 + 73d7376 commit 5036e92

File tree

7 files changed

+35
-7
lines changed

7 files changed

+35
-7
lines changed

Diff for: 8.4/Dockerfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ FROM debian:wheezy
55
RUN groupadd -r postgres && useradd -r -g postgres postgres
66

77
# grab gosu for easy step-down from root
8+
RUN gpg --keyserver pgp.mit.edu --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4
89
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* \
9-
&& curl -o /usr/local/bin/gosu -SL 'https://github.com/tianon/gosu/releases/download/1.1/gosu' \
10+
&& curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/1.2/gosu-$(dpkg --print-architecture)" \
11+
&& curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/1.2/gosu-$(dpkg --print-architecture).asc" \
12+
&& gpg --verify /usr/local/bin/gosu.asc \
13+
&& rm /usr/local/bin/gosu.asc \
1014
&& chmod +x /usr/local/bin/gosu \
1115
&& apt-get purge -y --auto-remove curl
1216

Diff for: 9.0/Dockerfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ FROM debian:wheezy
55
RUN groupadd -r postgres && useradd -r -g postgres postgres
66

77
# grab gosu for easy step-down from root
8+
RUN gpg --keyserver pgp.mit.edu --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4
89
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* \
9-
&& curl -o /usr/local/bin/gosu -SL 'https://github.com/tianon/gosu/releases/download/1.1/gosu' \
10+
&& curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/1.2/gosu-$(dpkg --print-architecture)" \
11+
&& curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/1.2/gosu-$(dpkg --print-architecture).asc" \
12+
&& gpg --verify /usr/local/bin/gosu.asc \
13+
&& rm /usr/local/bin/gosu.asc \
1014
&& chmod +x /usr/local/bin/gosu \
1115
&& apt-get purge -y --auto-remove curl
1216

Diff for: 9.1/Dockerfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ FROM debian:wheezy
55
RUN groupadd -r postgres && useradd -r -g postgres postgres
66

77
# grab gosu for easy step-down from root
8+
RUN gpg --keyserver pgp.mit.edu --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4
89
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* \
9-
&& curl -o /usr/local/bin/gosu -SL 'https://github.com/tianon/gosu/releases/download/1.1/gosu' \
10+
&& curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/1.2/gosu-$(dpkg --print-architecture)" \
11+
&& curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/1.2/gosu-$(dpkg --print-architecture).asc" \
12+
&& gpg --verify /usr/local/bin/gosu.asc \
13+
&& rm /usr/local/bin/gosu.asc \
1014
&& chmod +x /usr/local/bin/gosu \
1115
&& apt-get purge -y --auto-remove curl
1216

Diff for: 9.2/Dockerfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ FROM debian:wheezy
55
RUN groupadd -r postgres && useradd -r -g postgres postgres
66

77
# grab gosu for easy step-down from root
8+
RUN gpg --keyserver pgp.mit.edu --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4
89
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* \
9-
&& curl -o /usr/local/bin/gosu -SL 'https://github.com/tianon/gosu/releases/download/1.1/gosu' \
10+
&& curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/1.2/gosu-$(dpkg --print-architecture)" \
11+
&& curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/1.2/gosu-$(dpkg --print-architecture).asc" \
12+
&& gpg --verify /usr/local/bin/gosu.asc \
13+
&& rm /usr/local/bin/gosu.asc \
1014
&& chmod +x /usr/local/bin/gosu \
1115
&& apt-get purge -y --auto-remove curl
1216

Diff for: 9.3/Dockerfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ FROM debian:wheezy
55
RUN groupadd -r postgres && useradd -r -g postgres postgres
66

77
# grab gosu for easy step-down from root
8+
RUN gpg --keyserver pgp.mit.edu --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4
89
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* \
9-
&& curl -o /usr/local/bin/gosu -SL 'https://github.com/tianon/gosu/releases/download/1.1/gosu' \
10+
&& curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/1.2/gosu-$(dpkg --print-architecture)" \
11+
&& curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/1.2/gosu-$(dpkg --print-architecture).asc" \
12+
&& gpg --verify /usr/local/bin/gosu.asc \
13+
&& rm /usr/local/bin/gosu.asc \
1014
&& chmod +x /usr/local/bin/gosu \
1115
&& apt-get purge -y --auto-remove curl
1216

Diff for: 9.4/Dockerfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ FROM debian:wheezy
55
RUN groupadd -r postgres && useradd -r -g postgres postgres
66

77
# grab gosu for easy step-down from root
8+
RUN gpg --keyserver pgp.mit.edu --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4
89
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* \
9-
&& curl -o /usr/local/bin/gosu -SL 'https://github.com/tianon/gosu/releases/download/1.1/gosu' \
10+
&& curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/1.2/gosu-$(dpkg --print-architecture)" \
11+
&& curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/1.2/gosu-$(dpkg --print-architecture).asc" \
12+
&& gpg --verify /usr/local/bin/gosu.asc \
13+
&& rm /usr/local/bin/gosu.asc \
1014
&& chmod +x /usr/local/bin/gosu \
1115
&& apt-get purge -y --auto-remove curl
1216

Diff for: Dockerfile.template

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ FROM debian:wheezy
55
RUN groupadd -r postgres && useradd -r -g postgres postgres
66

77
# grab gosu for easy step-down from root
8+
RUN gpg --keyserver pgp.mit.edu --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4
89
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* \
9-
&& curl -o /usr/local/bin/gosu -SL 'https://github.com/tianon/gosu/releases/download/1.1/gosu' \
10+
&& curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/1.2/gosu-$(dpkg --print-architecture)" \
11+
&& curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/1.2/gosu-$(dpkg --print-architecture).asc" \
12+
&& gpg --verify /usr/local/bin/gosu.asc \
13+
&& rm /usr/local/bin/gosu.asc \
1014
&& chmod +x /usr/local/bin/gosu \
1115
&& apt-get purge -y --auto-remove curl
1216

0 commit comments

Comments
 (0)