diff --git a/influxdb/1.10/data/alpine/Dockerfile b/influxdb/1.10/data/alpine/Dockerfile index 64b4414ea..8b73fe498 100644 --- a/influxdb/1.10/data/alpine/Dockerfile +++ b/influxdb/1.10/data/alpine/Dockerfile @@ -18,8 +18,8 @@ RUN set -ex && \ mkdir -p /usr/src && \ tar -C /usr/src -xzf influxdb-data-${INFLUXDB_VERSION}_linux_amd64.tar.gz && \ rm -f /usr/src/influxdb-*/influxdb.conf && \ - chmod +x /usr/src/influxdb-*/* && \ - cp -a /usr/src/influxdb-*/* /usr/bin/ && \ + chmod +x /usr/src/influxdb-*/usr/bin/* && \ + cp -a /usr/src/influxdb-*/usr/bin/. /usr/bin/ && \ gpgconf --kill all && \ rm -rf *.tar.gz* /usr/src /root/.gnupg && \ apk del .build-deps diff --git a/influxdb/1.10/meta/alpine/Dockerfile b/influxdb/1.10/meta/alpine/Dockerfile index 76fc2c974..bebab5dc4 100644 --- a/influxdb/1.10/meta/alpine/Dockerfile +++ b/influxdb/1.10/meta/alpine/Dockerfile @@ -18,8 +18,8 @@ RUN set -ex && \ mkdir -p /usr/src && \ tar -C /usr/src -xzf influxdb-meta-${INFLUXDB_VERSION}_linux_amd64.tar.gz && \ rm -f /usr/src/influxdb-*/influxdb-meta.conf && \ - chmod +x /usr/src/influxdb-*/* && \ - cp -a /usr/src/influxdb-*/* /usr/bin/ && \ + chmod +x /usr/src/influxdb-*/usr/bin/* && \ + cp -a /usr/src/influxdb-*/usr/bin/. /usr/bin/ && \ gpgconf --kill all && \ rm -rf *.tar.gz* /usr/src /root/.gnupg && \ apk del .build-deps diff --git a/influxdb/1.7/alpine/Dockerfile b/influxdb/1.7/alpine/Dockerfile index 3c9d7c75f..9a464c6dd 100644 --- a/influxdb/1.7/alpine/Dockerfile +++ b/influxdb/1.7/alpine/Dockerfile @@ -19,9 +19,17 @@ RUN set -ex && \ gpg --batch --verify influxdb-${INFLUXDB_VERSION}-static_linux_amd64.tar.gz.asc influxdb-${INFLUXDB_VERSION}-static_linux_amd64.tar.gz && \ mkdir -p /usr/src && \ tar -C /usr/src -xzf influxdb-${INFLUXDB_VERSION}-static_linux_amd64.tar.gz && \ - rm -f /usr/src/influxdb-*/influxdb.conf && \ - chmod +x /usr/src/influxdb-*/* && \ - cp -a /usr/src/influxdb-*/* /usr/bin/ && \ + chmod +x /usr/src/influxdb-*/influx \ + /usr/src/influxdb-*/influx_inspect \ + /usr/src/influxdb-*/influx_stress \ + /usr/src/influxdb-*/influx_tsm \ + /usr/src/influxdb-*/influxd &&\ + cp -a /usr/src/influxdb-*/influx \ + /usr/src/influxdb-*/influx_inspect \ + /usr/src/influxdb-*/influx_stress \ + /usr/src/influxdb-*/influx_tsm \ + /usr/src/influxdb-*/influxd \ + /usr/bin/ &&\ gpgconf --kill all && \ rm -rf *.tar.gz* /usr/src /root/.gnupg && \ apk del .build-deps diff --git a/influxdb/1.8/alpine/Dockerfile b/influxdb/1.8/alpine/Dockerfile index f88613e93..929fa7415 100644 --- a/influxdb/1.8/alpine/Dockerfile +++ b/influxdb/1.8/alpine/Dockerfile @@ -19,9 +19,15 @@ RUN set -ex && \ gpg --batch --verify influxdb-${INFLUXDB_VERSION}-static_linux_amd64.tar.gz.asc influxdb-${INFLUXDB_VERSION}-static_linux_amd64.tar.gz && \ mkdir -p /usr/src && \ tar -C /usr/src -xzf influxdb-${INFLUXDB_VERSION}-static_linux_amd64.tar.gz && \ - rm -f /usr/src/influxdb-*/influxdb.conf && \ - chmod +x /usr/src/influxdb-*/* && \ - cp -a /usr/src/influxdb-*/* /usr/bin/ && \ + chmod +x /usr/src/influxdb-*/influx \ + /usr/src/influxdb-*/influx_inspect \ + /usr/src/influxdb-*/influx_stress \ + /usr/src/influxdb-*/influxd &&\ + mv /usr/src/influxdb-*/influx \ + /usr/src/influxdb-*/influx_inspect \ + /usr/src/influxdb-*/influx_stress \ + /usr/src/influxdb-*/influxd \ + /usr/bin/ &&\ gpgconf --kill all && \ rm -rf *.tar.gz* /usr/src /root/.gnupg && \ apk del .build-deps diff --git a/influxdb/1.9/data/alpine/Dockerfile b/influxdb/1.9/data/alpine/Dockerfile index b5c388feb..2d5f58c45 100644 --- a/influxdb/1.9/data/alpine/Dockerfile +++ b/influxdb/1.9/data/alpine/Dockerfile @@ -19,7 +19,7 @@ RUN set -ex && \ tar -C /usr/src -xzf influxdb-data-${INFLUXDB_VERSION}_linux_amd64.tar.gz && \ rm -f /usr/src/influxdb-*/etc/influxdb/influxdb.conf && \ chmod +x /usr/src/influxdb-*/usr/bin/* && \ - cp -a /usr/src/influxdb-*/usr/bin/* /usr/bin/ && \ + cp -a /usr/src/influxdb-*/usr/bin/. /usr/bin/ && \ gpgconf --kill all && \ rm -rf *.tar.gz* /usr/src /root/.gnupg && \ apk del .build-deps diff --git a/influxdb/1.9/meta/alpine/Dockerfile b/influxdb/1.9/meta/alpine/Dockerfile index bbb595f4c..c5f348606 100644 --- a/influxdb/1.9/meta/alpine/Dockerfile +++ b/influxdb/1.9/meta/alpine/Dockerfile @@ -19,7 +19,7 @@ RUN set -ex && \ tar -C /usr/src -xzf influxdb-meta-${INFLUXDB_VERSION}_linux_amd64.tar.gz && \ rm -f /usr/src/influxdb-*/etc/influxdb/influxdb-meta.conf && \ chmod +x /usr/src/influxdb-*/usr/bin/* && \ - cp -a /usr/src/influxdb-*/usr/bin/* /usr/bin/ && \ + cp -a /usr/src/influxdb-*/usr/bin/. /usr/bin/ && \ gpgconf --kill all && \ rm -rf *.tar.gz* /usr/src /root/.gnupg && \ apk del .build-deps diff --git a/influxdb/2.0/Dockerfile b/influxdb/2.0/Dockerfile index 4e381ad4a..9f0d75b2d 100644 --- a/influxdb/2.0/Dockerfile +++ b/influxdb/2.0/Dockerfile @@ -9,17 +9,17 @@ RUN groupadd -r influxdb --gid=1000 && \ # https://github.com/tianon/gosu/releases ENV GOSU_VER 1.12 RUN set -eux; \ - dpkgArch="$(dpkg --print-architecture)" && \ - wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VER/gosu-$dpkgArch" && \ - wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VER/gosu-$dpkgArch.asc" && \ - export GNUPGHOME="$(mktemp -d)" && \ - gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 && \ - gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu && \ - gpgconf --kill all && \ - rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc && \ - chmod +x /usr/local/bin/gosu && \ - gosu --version && \ - gosu nobody true + dpkgArch="$(dpkg --print-architecture)" && \ + wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VER/gosu-$dpkgArch" && \ + wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VER/gosu-$dpkgArch.asc" && \ + export GNUPGHOME="$(mktemp -d)" && \ + gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 && \ + gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu && \ + gpgconf --kill all && \ + rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc && \ + chmod +x /usr/local/bin/gosu && \ + gosu --version && \ + gosu nobody true ENV INFLUXDB_VERSION 2.0.9 RUN set -eux && \ @@ -35,6 +35,7 @@ RUN set -eux && \ echo "disable-ipv6" >> $GNUPGHOME/dirmngr.conf && \ gpg --batch --keyserver keys.openpgp.org --recv-keys 8C2D403D3C3BDB81A4C27C883C3E4B7317FFE40A && \ gpg --batch --verify influxdb2-${INFLUXDB_VERSION}-linux-${ARCH}.tar.gz.asc influxdb2-${INFLUXDB_VERSION}-linux-${ARCH}.tar.gz && \ + gpgconf --kill all && \ tar xzf influxdb2-${INFLUXDB_VERSION}-linux-${ARCH}.tar.gz && \ cp influxdb2-${INFLUXDB_VERSION}-linux-${ARCH}/influx* /usr/local/bin/ && \ rm -rf "$GNUPGHOME" influxdb2.key influxdb2-${INFLUXDB_VERSION}-linux-${ARCH}* && \ diff --git a/influxdb/2.0/alpine/Dockerfile b/influxdb/2.0/alpine/Dockerfile index 48679e3ed..49efc3189 100644 --- a/influxdb/2.0/alpine/Dockerfile +++ b/influxdb/2.0/alpine/Dockerfile @@ -25,6 +25,7 @@ RUN set -eux && \ echo "disable-ipv6" >> $GNUPGHOME/dirmngr.conf && \ gpg --keyserver keys.openpgp.org --recv-keys 8C2D403D3C3BDB81A4C27C883C3E4B7317FFE40A && \ gpg --batch --verify influxdb2-${INFLUXDB_VERSION}-linux-${ARCH}.tar.gz.asc influxdb2-${INFLUXDB_VERSION}-linux-${ARCH}.tar.gz && \ + gpgconf --kill all && \ tar xzf influxdb2-${INFLUXDB_VERSION}-linux-${ARCH}.tar.gz && \ cp influxdb2-${INFLUXDB_VERSION}-linux-${ARCH}/influx* /usr/local/bin/ && \ rm -rf "$GNUPGHOME" influxdb2.key influxdb2-${INFLUXDB_VERSION}-linux-${ARCH}* && \