From d891652df177c81528dbf883d099703cbb7c8d41 Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Sat, 19 May 2018 10:10:24 +0200 Subject: [PATCH 1/2] Adds ksql image without entrypoint --- ksql/Dockerfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 ksql/Dockerfile diff --git a/ksql/Dockerfile b/ksql/Dockerfile new file mode 100644 index 0000000..96a99ae --- /dev/null +++ b/ksql/Dockerfile @@ -0,0 +1,24 @@ +# The only assumption we make about this FROM is that it has a JRE in path +FROM solsson/kafka-jre@sha256:06dabfc8cacd0687c8f52c52afd650444fb6d4a8e0b85f68557e6e7a5c71667c + +ENV KSQL_VERSION=4.1.1-1 + +RUN set -ex; \ + export DEBIAN_FRONTEND=noninteractive; \ + runDeps=''; \ + buildDeps='curl ca-certificates gnupg2 apt-transport-https'; \ + apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends; \ + \ + curl -SLs https://packages.confluent.io/deb/4.1/archive.key | apt-key add -; \ + echo "deb [arch=amd64] https://packages.confluent.io/deb/4.1 stable main" > /etc/apt/sources.list.d/confluent.list; \ + \ + apt-get update; \ + apt-get -s install confluent-ksql | grep confluent; \ + \ + apt-get install -y \ + confluent-ksql=$KSQL_VERSION \ + --no-install-recommends; \ + \ + apt-get purge -y --auto-remove $buildDeps; \ + rm -rf /var/lib/apt/lists/*; \ + rm -rf /var/log/dpkg.log /var/log/alternatives.log /var/log/apt From c15554ec18ae5dea16d501cd919a66e47b0628c6 Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Sat, 19 May 2018 19:47:12 +0200 Subject: [PATCH 2/2] Use KSQL 5.0 instead because the REST API is "closer to the future API" --- ksql/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ksql/Dockerfile b/ksql/Dockerfile index 96a99ae..6c64731 100644 --- a/ksql/Dockerfile +++ b/ksql/Dockerfile @@ -1,7 +1,7 @@ # The only assumption we make about this FROM is that it has a JRE in path FROM solsson/kafka-jre@sha256:06dabfc8cacd0687c8f52c52afd650444fb6d4a8e0b85f68557e6e7a5c71667c -ENV KSQL_VERSION=4.1.1-1 +ENV KSQL_VERSION=5.0.0~beta1-1 RUN set -ex; \ export DEBIAN_FRONTEND=noninteractive; \ @@ -9,8 +9,8 @@ RUN set -ex; \ buildDeps='curl ca-certificates gnupg2 apt-transport-https'; \ apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends; \ \ - curl -SLs https://packages.confluent.io/deb/4.1/archive.key | apt-key add -; \ - echo "deb [arch=amd64] https://packages.confluent.io/deb/4.1 stable main" > /etc/apt/sources.list.d/confluent.list; \ + curl -SLs https://packages.confluent.io/deb/5.0/archive.key | apt-key add -; \ + echo "deb [arch=amd64] https://packages.confluent.io/deb/5.0 stable main" > /etc/apt/sources.list.d/confluent.list; \ \ apt-get update; \ apt-get -s install confluent-ksql | grep confluent; \