Skip to content
Snippets Groups Projects
Unverified Commit 410d5351 authored by J. Emrys Landivar's avatar J. Emrys Landivar Committed by GitHub
Browse files

Merge pull request #637 from influxdata/kappa1.6

chore(kapacitor): 1.6.5
parents f5b98eb7 1073b222
No related branches found
No related tags found
No related merge requests found
#!/bin/bash #!/bin/bash
set -e set -ex
dir=. dir=.
if [ $# -gt 0 ]; then if [ $# -gt 0 ]; then
...@@ -20,7 +20,7 @@ docker_build() { ...@@ -20,7 +20,7 @@ docker_build() {
docker build --no-cache --rm=false "$@" docker build --no-cache --rm=false "$@"
else else
# Local building should use the cache for speedy development. # Local building should use the cache for speedy development.
docker build --rm=true "$@" docker build --no-cache --rm=true "$@"
fi fi
} }
......
FROM buildpack-deps:stretch-curl FROM buildpack-deps:jammy-curl
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y bash-completion && \ DEBIAN_FRONTEND=noninteractive apt-get install -y bash-completion && \
awk 'f{if(sub(/^#/,"",$0)==0){f=0}};/^# enable bash completion/{f=1};{print;}' /etc/bash.bashrc > /etc/bash.bashrc.new && \ awk 'f{if(sub(/^#/,"",$0)==0){f=0}};/^# enable bash completion/{f=1};{print;}' /etc/bash.bashrc > /etc/bash.bashrc.new && \
mv /etc/bash.bashrc.new /etc/bash.bashrc mv /etc/bash.bashrc.new /etc/bash.bashrc
RUN set -ex && \
mkdir ~/.gnupg; \
echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf; \
for key in \
05CE15085FC09D18E99EFB22684A14CF2582E0C5 ; \
do \
gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys "$key" ; \
done
ENV KAPACITOR_VERSION 1.6.5 ENV KAPACITOR_VERSION 1.6.5
RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" && \
RUN set -eux && \
ARCH= && dpkgArch="$(dpkg --print-architecture)" && \
case "${dpkgArch##*-}" in \ case "${dpkgArch##*-}" in \
amd64) ARCH='amd64';; \ amd64) ARCH='amd64';; \
arm64) ARCH='arm64';; \ arm64) ARCH='arm64';; \
...@@ -23,9 +16,15 @@ RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" && \ ...@@ -23,9 +16,15 @@ RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" && \
esac && \ esac && \
wget --no-verbose https://dl.influxdata.com/kapacitor/releases/kapacitor_${KAPACITOR_VERSION}-1_${ARCH}.deb.asc && \ wget --no-verbose https://dl.influxdata.com/kapacitor/releases/kapacitor_${KAPACITOR_VERSION}-1_${ARCH}.deb.asc && \
wget --no-verbose https://dl.influxdata.com/kapacitor/releases/kapacitor_${KAPACITOR_VERSION}-1_${ARCH}.deb && \ wget --no-verbose https://dl.influxdata.com/kapacitor/releases/kapacitor_${KAPACITOR_VERSION}-1_${ARCH}.deb && \
export GNUPGHOME="$(mktemp -d)" && \
echo "disable-ipv6" >> $GNUPGHOME/dirmngr.conf && \
gpg --batch --keyserver hkp://keyserver.ubuntu.com --recv-keys 05CE15085FC09D18E99EFB22684A14CF2582E0C5 && \
gpg --batch --verify kapacitor_${KAPACITOR_VERSION}-1_${ARCH}.deb.asc kapacitor_${KAPACITOR_VERSION}-1_${ARCH}.deb && \ gpg --batch --verify kapacitor_${KAPACITOR_VERSION}-1_${ARCH}.deb.asc kapacitor_${KAPACITOR_VERSION}-1_${ARCH}.deb && \
rm -rf "$GNUPGHOME" && \
dpkg -i kapacitor_${KAPACITOR_VERSION}-1_${ARCH}.deb && \ dpkg -i kapacitor_${KAPACITOR_VERSION}-1_${ARCH}.deb && \
gpgconf --kill all && \
rm -f kapacitor_${KAPACITOR_VERSION}-1_${ARCH}.deb* rm -f kapacitor_${KAPACITOR_VERSION}-1_${ARCH}.deb*
COPY kapacitor.conf /etc/kapacitor/kapacitor.conf COPY kapacitor.conf /etc/kapacitor/kapacitor.conf
EXPOSE 9092 EXPOSE 9092
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment