Skip to content
Snippets Groups Projects
Commit e22b9e1a authored by Brandon Pfeifer's avatar Brandon Pfeifer
Browse files

chore: only try gpg key-recv once

parent 768932c9
No related branches found
No related tags found
No related merge requests found
Showing
with 106 additions and 180 deletions
FROM debian:bullseye-slim
RUN set -ex && \
mkdir ~/.gnupg; \
echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf; \
apt-get update && apt-get install -y gnupg ca-certificates dirmngr --no-install-recommends && \
rm -rf /var/lib/apt/lists/* && \
for key in \
05CE15085FC09D18E99EFB22684A14CF2582E0C5 ; \
do \
gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys "$key" ; \
done
RUN apt-get update && \
apt-get install \
--yes \
--no-install-recommends \
ca-certificates \
curl \
gnupg && \
rm -rf /var/lib/apt/lists
RUN gpg --yes --batch \
--keyserver hkps://keyserver.ubuntu.com:443 \
--recv-keys 05CE15085FC09D18E99EFB22684A14CF2582E0C5
ENV CHRONOGRAF_VERSION 1.10.0
RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" && \
......@@ -21,14 +23,11 @@ RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" && \
*) echo "Unsupported architecture: ${dpkgArch}"; exit 1;; \
esac && \
set -x && \
apt-get update && apt-get install -y ca-certificates curl --no-install-recommends && \
rm -rf /var/lib/apt/lists/* && \
curl -SLO "https://dl.influxdata.com/chronograf/releases/chronograf_${CHRONOGRAF_VERSION}_${ARCH}.deb.asc" && \
curl -SLO "https://dl.influxdata.com/chronograf/releases/chronograf_${CHRONOGRAF_VERSION}_${ARCH}.deb" && \
gpg --batch --verify chronograf_${CHRONOGRAF_VERSION}_${ARCH}.deb.asc chronograf_${CHRONOGRAF_VERSION}_${ARCH}.deb && \
dpkg -i chronograf_${CHRONOGRAF_VERSION}_${ARCH}.deb && \
rm -f chronograf_${CHRONOGRAF_VERSION}_${ARCH}.deb* && \
apt-get purge -y --auto-remove $buildDeps
rm -f chronograf_${CHRONOGRAF_VERSION}_${ARCH}.deb*
COPY LICENSE /usr/share/chronograf/LICENSE
COPY agpl-3.0.md /usr/share/chronograf/agpl-3.0.md
......
......
FROM alpine:3.14
RUN echo 'hosts: files dns' >> /etc/nsswitch.conf
RUN apk add --no-cache ca-certificates && \
RUN apk add --no-cache ca-certificates gnupg && \
update-ca-certificates
RUN gpg --yes --batch \
--keyserver hkps://keyserver.ubuntu.com:443 \
--recv-keys 05CE15085FC09D18E99EFB22684A14CF2582E0C5
ENV CHRONOGRAF_VERSION 1.10.0
RUN set -ex && \
mkdir ~/.gnupg; \
echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf; \
apk add --no-cache --virtual .build-deps wget gnupg tar && \
for key in \
05CE15085FC09D18E99EFB22684A14CF2582E0C5 ; \
do \
gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys "$key" ; \
done && \
apk add --no-cache --virtual .build-deps wget tar && \
wget --no-verbose https://dl.influxdata.com/chronograf/releases/chronograf-${CHRONOGRAF_VERSION}-static_linux_amd64.tar.gz.asc && \
wget --no-verbose https://dl.influxdata.com/chronograf/releases/chronograf-${CHRONOGRAF_VERSION}-static_linux_amd64.tar.gz && \
gpg --batch --verify chronograf-${CHRONOGRAF_VERSION}-static_linux_amd64.tar.gz.asc chronograf-${CHRONOGRAF_VERSION}-static_linux_amd64.tar.gz && \
......@@ -23,8 +20,7 @@ RUN set -ex && \
rm -f /usr/src/chronograf-*/chronograf.conf && \
chmod +x /usr/src/chronograf-*/* && \
cp -a /usr/src/chronograf-*/* /usr/bin/ && \
gpgconf --kill all && \
rm -rf *.tar.gz* /usr/src /root/.gnupg && \
rm -rf *.tar.gz* /usr/src && \
apk del .build-deps
COPY LICENSE /usr/share/chronograf/LICENSE
......
......
FROM debian:bullseye-slim
RUN apt-get update && \
apt-get install --no-install-recommends -y \
apt-get install \
--yes \
--no-install-recommends \
ca-certificates \
curl \
dirmngr \
gnupg && \
rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists
RUN for attempt in 1 2 3 ; \
do \
sleep 1 && \
gpg --yes --batch --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys \
05CE15085FC09D18E99EFB22684A14CF2582E0C5 && \
break ; \
done
RUN gpg --yes --batch \
--keyserver hkps://keyserver.ubuntu.com:443 \
--recv-keys 05CE15085FC09D18E99EFB22684A14CF2582E0C5
ENV CHRONOGRAF_VERSION 1.6.2
RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" && \
......
......
......@@ -4,13 +4,9 @@ RUN echo 'hosts: files dns' >> /etc/nsswitch.conf
RUN apk add --no-cache ca-certificates gnupg && \
update-ca-certificates
RUN for attempt in 1 2 3 ; \
do \
sleep 1 && \
gpg --yes --batch --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys \
05CE15085FC09D18E99EFB22684A14CF2582E0C5 && \
break ; \
done
RUN gpg --yes --batch \
--keyserver hkps://keyserver.ubuntu.com:443 \
--recv-keys 05CE15085FC09D18E99EFB22684A14CF2582E0C5
ENV CHRONOGRAF_VERSION 1.6.2
......
......
FROM debian:bullseye-slim
RUN apt-get update && \
apt-get install --no-install-recommends -y \
apt-get install \
--yes \
--no-install-recommends \
ca-certificates \
curl \
dirmngr \
gnupg && \
rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists
RUN for attempt in 1 2 3 ; \
do \
sleep 1 && \
gpg --yes --batch --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys \
05CE15085FC09D18E99EFB22684A14CF2582E0C5 && \
break ; \
done
RUN gpg --yes --batch \
--keyserver hkps://keyserver.ubuntu.com:443 \
--recv-keys 05CE15085FC09D18E99EFB22684A14CF2582E0C5
ENV CHRONOGRAF_VERSION 1.7.17
RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" && \
......
......
......@@ -4,13 +4,9 @@ RUN echo 'hosts: files dns' >> /etc/nsswitch.conf
RUN apk add --no-cache ca-certificates gnupg && \
update-ca-certificates
RUN for attempt in 1 2 3 ; \
do \
sleep 1 && \
gpg --yes --batch --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys \
05CE15085FC09D18E99EFB22684A14CF2582E0C5 && \
break ; \
done
RUN gpg --yes --batch \
--keyserver hkps://keyserver.ubuntu.com:443 \
--recv-keys 05CE15085FC09D18E99EFB22684A14CF2582E0C5
ENV CHRONOGRAF_VERSION 1.7.17
RUN set -ex && \
......
......
FROM debian:bullseye-slim
RUN apt-get update && \
apt-get install --no-install-recommends -y \
apt-get install \
--yes \
--no-install-recommends \
ca-certificates \
curl \
dirmngr \
gnupg && \
rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists
RUN for attempt in 1 2 3 ; \
do \
sleep 1 && \
gpg --yes --batch --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys \
05CE15085FC09D18E99EFB22684A14CF2582E0C5 && \
break ; \
done
RUN gpg --yes --batch \
--keyserver hkps://keyserver.ubuntu.com:443 \
--recv-keys 05CE15085FC09D18E99EFB22684A14CF2582E0C5
ENV CHRONOGRAF_VERSION 1.8.10
RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" && \
......
......
......@@ -4,13 +4,9 @@ RUN echo 'hosts: files dns' >> /etc/nsswitch.conf
RUN apk add --no-cache ca-certificates gnupg && \
update-ca-certificates
RUN for attempt in 1 2 3 ; \
do \
sleep 1 && \
gpg --yes --batch --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys \
05CE15085FC09D18E99EFB22684A14CF2582E0C5 && \
break ; \
done
RUN gpg --yes --batch \
--keyserver hkps://keyserver.ubuntu.com:443 \
--recv-keys 05CE15085FC09D18E99EFB22684A14CF2582E0C5
ENV CHRONOGRAF_VERSION 1.8.10
......
......
FROM debian:bullseye-slim
RUN apt-get update && \
apt-get install --no-install-recommends -y \
apt-get install \
--yes \
--no-install-recommends \
ca-certificates \
curl \
dirmngr \
gnupg && \
rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists
RUN for attempt in 1 2 3 ; \
do \
sleep 1 && \
gpg --yes --batch --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys \
05CE15085FC09D18E99EFB22684A14CF2582E0C5 && \
break ; \
done
RUN gpg --yes --batch \
--keyserver hkps://keyserver.ubuntu.com:443 \
--recv-keys 05CE15085FC09D18E99EFB22684A14CF2582E0C5
ENV CHRONOGRAF_VERSION 1.9.4
RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" && \
......
......
......@@ -4,13 +4,9 @@ RUN echo 'hosts: files dns' >> /etc/nsswitch.conf
RUN apk add --no-cache ca-certificates gnupg && \
update-ca-certificates
RUN for attempt in 1 2 3 ; \
do \
sleep 1 && \
gpg --yes --batch --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys \
05CE15085FC09D18E99EFB22684A14CF2582E0C5 && \
break ; \
done
RUN gpg --yes --batch \
--keyserver hkps://keyserver.ubuntu.com:443 \
--recv-keys 05CE15085FC09D18E99EFB22684A14CF2582E0C5
ENV CHRONOGRAF_VERSION 1.9.4
......
......
FROM buildpack-deps:bullseye-curl
RUN for attempt in 1 2 3 ; \
do \
sleep 1 && \
gpg --yes --batch --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys \
05CE15085FC09D18E99EFB22684A14CF2582E0C5 && \
break ; \
done
RUN gpg --yes --batch \
--keyserver hkps://keyserver.ubuntu.com:443 \
--recv-keys 05CE15085FC09D18E99EFB22684A14CF2582E0C5
ENV INFLUXDB_VERSION 1.10.0-c1.10.0
RUN wget --no-verbose https://dl.influxdata.com/enterprise/releases/influxdb-data_${INFLUXDB_VERSION}_amd64.deb.asc && \
......
......
......@@ -4,13 +4,9 @@ RUN echo 'hosts: files dns' >> /etc/nsswitch.conf
RUN apk add --no-cache tzdata bash ca-certificates gnupg && \
update-ca-certificates
RUN for attempt in 1 2 3 ; \
do \
sleep 1 && \
gpg --yes --batch --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys \
05CE15085FC09D18E99EFB22684A14CF2582E0C5 && \
break ; \
done
RUN gpg --yes --batch \
--keyserver hkps://keyserver.ubuntu.com:443 \
--recv-keys 05CE15085FC09D18E99EFB22684A14CF2582E0C5
ENV INFLUXDB_VERSION 1.10.0-c1.10.0
RUN set -ex && \
......
......
FROM buildpack-deps:bullseye-curl
RUN for attempt in 1 2 3 ; \
do \
sleep 1 && \
gpg --yes --batch --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys \
05CE15085FC09D18E99EFB22684A14CF2582E0C5 && \
break ; \
done
RUN gpg --yes --batch \
--keyserver hkps://keyserver.ubuntu.com:443 \
--recv-keys 05CE15085FC09D18E99EFB22684A14CF2582E0C5
ENV INFLUXDB_VERSION 1.10.0-c1.10.0
RUN wget --no-verbose https://dl.influxdata.com/enterprise/releases/influxdb-meta_${INFLUXDB_VERSION}_amd64.deb.asc && \
......
......
......@@ -4,13 +4,9 @@ RUN echo 'hosts: files dns' >> /etc/nsswitch.conf
RUN apk add --no-cache tzdata bash ca-certificates gnupg && \
update-ca-certificates
RUN for attempt in 1 2 3 ; \
do \
sleep 1 && \
gpg --yes --batch --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys \
05CE15085FC09D18E99EFB22684A14CF2582E0C5 && \
break ; \
done
RUN gpg --yes --batch \
--keyserver hkps://keyserver.ubuntu.com:443 \
--recv-keys 05CE15085FC09D18E99EFB22684A14CF2582E0C5
ENV INFLUXDB_VERSION 1.10.0-c1.10.0
RUN set -ex && \
......
......
FROM buildpack-deps:bullseye-curl
RUN for attempt in 1 2 3 ; \
do \
sleep 1 && \
gpg --yes --batch --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys \
05CE15085FC09D18E99EFB22684A14CF2582E0C5 && \
break ; \
done
RUN gpg --yes --batch \
--keyserver hkps://keyserver.ubuntu.com:443 \
--recv-keys 05CE15085FC09D18E99EFB22684A14CF2582E0C5
ENV INFLUXDB_VERSION 1.7.11
RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" && \
......
......
......@@ -4,13 +4,9 @@ RUN echo 'hosts: files dns' >> /etc/nsswitch.conf
RUN apk add --no-cache tzdata bash ca-certificates gnupg && \
update-ca-certificates
RUN for attempt in 1 2 3 ; \
do \
sleep 1 && \
gpg --yes --batch --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys \
05CE15085FC09D18E99EFB22684A14CF2582E0C5 && \
break ; \
done
RUN gpg --yes --batch \
--keyserver hkps://keyserver.ubuntu.com:443 \
--recv-keys 05CE15085FC09D18E99EFB22684A14CF2582E0C5
ENV INFLUXDB_VERSION 1.7.11
RUN set -ex && \
......
......
FROM buildpack-deps:bullseye-curl
RUN for attempt in 1 2 3 ; \
do \
sleep 1 && \
gpg --yes --batch --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys \
05CE15085FC09D18E99EFB22684A14CF2582E0C5 && \
break ; \
done
RUN gpg --yes --batch \
--keyserver hkps://keyserver.ubuntu.com:443 \
--recv-keys 05CE15085FC09D18E99EFB22684A14CF2582E0C5
ENV INFLUXDB_VERSION 1.7.11-c1.7.11
RUN wget --no-verbose https://dl.influxdata.com/enterprise/releases/influxdb-data_${INFLUXDB_VERSION}_amd64.deb.asc && \
......
......
......@@ -4,13 +4,9 @@ RUN echo 'hosts: files dns' >> /etc/nsswitch.conf
RUN apk add --no-cache tzdata bash ca-certificates gnupg && \
update-ca-certificates
RUN for attempt in 1 2 3 ; \
do \
sleep 1 && \
gpg --yes --batch --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys \
05CE15085FC09D18E99EFB22684A14CF2582E0C5 && \
break ; \
done
RUN gpg --yes --batch \
--keyserver hkps://keyserver.ubuntu.com:443 \
--recv-keys 05CE15085FC09D18E99EFB22684A14CF2582E0C5
ENV INFLUXDB_VERSION 1.7.11-c1.7.11
RUN set -ex && \
......
......
FROM buildpack-deps:bullseye-curl
RUN for attempt in 1 2 3 ; \
do \
sleep 1 && \
gpg --yes --batch --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys \
05CE15085FC09D18E99EFB22684A14CF2582E0C5 && \
break ; \
done
RUN gpg --yes --batch \
--keyserver hkps://keyserver.ubuntu.com:443 \
--recv-keys 05CE15085FC09D18E99EFB22684A14CF2582E0C5
ENV INFLUXDB_VERSION 1.7.11-c1.7.11
RUN wget --no-verbose https://dl.influxdata.com/enterprise/releases/influxdb-meta_${INFLUXDB_VERSION}_amd64.deb.asc && \
......
......
......@@ -4,14 +4,9 @@ RUN echo 'hosts: files dns' >> /etc/nsswitch.conf
RUN apk add --no-cache tzdata bash ca-certificates gnupg && \
update-ca-certificates
RUN for attempt in 1 2 3 ; \
do \
sleep 1 && \
gpg --yes --batch --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys \
05CE15085FC09D18E99EFB22684A14CF2582E0C5 && \
break ; \
done
RUN gpg --yes --batch \
--keyserver hkps://keyserver.ubuntu.com:443 \
--recv-keys 05CE15085FC09D18E99EFB22684A14CF2582E0C5
ENV INFLUXDB_VERSION 1.7.11-c1.7.11
RUN set -ex && \
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment