Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kong releases 1.5.0 and 2.0.0 #7310

Merged
merged 1 commit into from
Jan 22, 2020
Merged

Conversation

hishamhm
Copy link
Contributor

No description provided.

@tianon
Copy link
Member

tianon commented Jan 21, 2020

Diff:
diff --git a/_bashbrew-arches b/_bashbrew-arches
index dc189c9..9264bc7 100644
--- a/_bashbrew-arches
+++ b/_bashbrew-arches
@@ -8,10 +8,14 @@ kong:1.3 @ amd64
 kong:1.3-centos @ amd64
 kong:1.3-ubuntu @ amd64
 kong:1.3-ubuntu @ arm64v8
-kong:2.0.0rc1 @ amd64
-kong:2.0.0rc2-centos @ amd64
-kong:2.0.0rc2-ubuntu @ amd64
-kong:2.0.0rc2-ubuntu @ arm64v8
+kong:1.5 @ amd64
+kong:1.5-centos @ amd64
+kong:1.5-ubuntu @ amd64
+kong:1.5-ubuntu @ arm64v8
+kong:2.0-centos @ amd64
+kong:2.0-ubuntu @ amd64
+kong:2.0-ubuntu @ arm64v8
+kong:alpine @ amd64
 kong:centos @ amd64
 kong:latest @ amd64
 kong:ubuntu @ amd64
diff --git a/_bashbrew-list b/_bashbrew-list
index 9df01eb..44d31a2 100644
--- a/_bashbrew-list
+++ b/_bashbrew-list
@@ -27,10 +27,20 @@ kong:1.4.3
 kong:1.4.3-alpine
 kong:1.4.3-centos
 kong:1.4.3-ubuntu
-kong:2.0.0rc1
-kong:2.0.0rc2-alpine
-kong:2.0.0rc2-centos
-kong:2.0.0rc2-ubuntu
+kong:1.5
+kong:1.5-centos
+kong:1.5-ubuntu
+kong:1.5.0
+kong:1.5.0-alpine
+kong:1.5.0-centos
+kong:1.5.0-ubuntu
+kong:2.0
+kong:2.0-centos
+kong:2.0-ubuntu
+kong:2.0.0
+kong:2.0.0-alpine
+kong:2.0.0-centos
+kong:2.0.0-ubuntu
 kong:alpine
 kong:centos
 kong:latest
diff --git a/kong_2.0.0rc2-centos/Dockerfile b/kong_1.5-centos/Dockerfile
similarity index 97%
rename from kong_2.0.0rc2-centos/Dockerfile
rename to kong_1.5-centos/Dockerfile
index 3fd0bba..d32588c 100644
--- a/kong_2.0.0rc2-centos/Dockerfile
+++ b/kong_1.5-centos/Dockerfile
@@ -1,7 +1,7 @@
 FROM centos:7
 LABEL maintainer="Kong Core Team <team-core@konghq.com>"
 
-ENV KONG_VERSION 2.0.0rc2
+ENV KONG_VERSION 1.5.0
 
 ARG SU_EXEC_VERSION=0.2
 ARG SU_EXEC_URL="https://github.com/ncopa/su-exec/archive/v${SU_EXEC_VERSION}.tar.gz"
diff --git a/kong_2.0.0rc2-centos/docker-entrypoint.sh b/kong_1.5-centos/docker-entrypoint.sh
similarity index 100%
rename from kong_2.0.0rc2-centos/docker-entrypoint.sh
rename to kong_1.5-centos/docker-entrypoint.sh
diff --git a/kong_2.0.0rc2-ubuntu/Dockerfile b/kong_1.5-ubuntu/Dockerfile
similarity index 96%
rename from kong_2.0.0rc2-ubuntu/Dockerfile
rename to kong_1.5-ubuntu/Dockerfile
index 0f33e9b..2b2f9e0 100644
--- a/kong_2.0.0rc2-ubuntu/Dockerfile
+++ b/kong_1.5-ubuntu/Dockerfile
@@ -1,7 +1,7 @@
 FROM ubuntu:xenial
 LABEL maintainer="Kong Core Team <team-core@konghq.com>"
 
-ENV KONG_VERSION 2.0.0rc2
+ENV KONG_VERSION 1.5.0
 
 RUN apt-get update \
     && apt-get install -y --no-install-recommends ca-certificates curl perl unzip \
diff --git a/kong_2.0.0rc2-ubuntu/docker-entrypoint.sh b/kong_1.5-ubuntu/docker-entrypoint.sh
similarity index 100%
rename from kong_2.0.0rc2-ubuntu/docker-entrypoint.sh
rename to kong_1.5-ubuntu/docker-entrypoint.sh
diff --git a/kong_2.0.0rc1/Dockerfile b/kong_1.5/Dockerfile
similarity index 89%
rename from kong_2.0.0rc1/Dockerfile
rename to kong_1.5/Dockerfile
index a9aa9f4..eac7d07 100644
--- a/kong_2.0.0rc1/Dockerfile
+++ b/kong_1.5/Dockerfile
@@ -1,8 +1,8 @@
 FROM alpine:3.10
 LABEL maintainer="Kong Core Team <team-core@konghq.com>"
 
-ENV KONG_VERSION 2.0.0rc2
-ENV KONG_SHA256 fcfa87d8bdd3d8216e782f595ca4bfb1f38f83ae4a65722fff95781a54ed7f88
+ENV KONG_VERSION 1.5.0
+ENV KONG_SHA256 74f4fe05b39bc3108611e9c52cb1faa788002e33551d3ab6ca0ec6ccfeeae2bd
 
 
 RUN adduser -Su 1337 kong \
diff --git a/kong_2.0.0rc1/docker-entrypoint.sh b/kong_1.5/docker-entrypoint.sh
similarity index 100%
rename from kong_2.0.0rc1/docker-entrypoint.sh
rename to kong_1.5/docker-entrypoint.sh
diff --git a/kong_1.3-centos/Dockerfile b/kong_2.0-centos/Dockerfile
similarity index 56%
copy from kong_1.3-centos/Dockerfile
copy to kong_2.0-centos/Dockerfile
index 6844fd3..26bc2f0 100644
--- a/kong_1.3-centos/Dockerfile
+++ b/kong_2.0-centos/Dockerfile
@@ -1,27 +1,21 @@
 FROM centos:7
 LABEL maintainer="Kong Core Team <team-core@konghq.com>"
 
-ENV KONG_VERSION 1.3.1
+ENV KONG_VERSION 2.0.0
 
-ARG SU_EXEC_VERSION=0.2
-ARG SU_EXEC_URL="https://github.com/ncopa/su-exec/archive/v${SU_EXEC_VERSION}.tar.gz"
-
-RUN yum install -y -q gcc make unzip \
-	&& curl -sL "${SU_EXEC_URL}" | tar -C /tmp -zxf - \
-	&& make -C "/tmp/su-exec-${SU_EXEC_VERSION}" \
-	&& cp "/tmp/su-exec-${SU_EXEC_VERSION}/su-exec" /usr/bin \
-	&& rm -fr "/tmp/su-exec-${SU_EXEC_VERSION}" \
-	&& yum autoremove -y -q gcc make \
+RUN yum install -y -q unzip \
 	&& yum clean all -q \
 	&& rm -fr /var/cache/yum/* /tmp/yum_save*.yumtx /root/.pki
 
-RUN useradd --uid 1337 kong \
+RUN useradd kong \
 	&& mkdir -p "/usr/local/kong" \
 	&& yum install -y https://bintray.com/kong/kong-rpm/download_file?file_path=centos/7/kong-$KONG_VERSION.el7.amd64.rpm \
 	&& yum clean all \
 	&& chown -R kong:0 /usr/local/kong \
 	&& chmod -R g=u /usr/local/kong
 
+USER kong
+
 COPY docker-entrypoint.sh /docker-entrypoint.sh
 
 ENTRYPOINT ["/docker-entrypoint.sh"]
diff --git a/kong_1.3-ubuntu/docker-entrypoint.sh b/kong_2.0-centos/docker-entrypoint.sh
similarity index 62%
copy from kong_1.3-ubuntu/docker-entrypoint.sh
copy to kong_2.0-centos/docker-entrypoint.sh
index 52c9ca2..326eef5 100755
--- a/kong_1.3-ubuntu/docker-entrypoint.sh
+++ b/kong_2.0-centos/docker-entrypoint.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 set -e
 
 export KONG_NGINX_DAEMON=off
@@ -9,6 +9,10 @@ if [[ "$1" == "kong" ]]; then
   if [[ "$2" == "docker-start" ]]; then
     kong prepare -p "$PREFIX"
 
+    ln -sf /dev/stdout $PREFIX/logs/access.log
+    ln -sf /dev/stdout $PREFIX/logs/admin_access.log
+    ln -sf /dev/stderr $PREFIX/logs/error.log
+
     exec /usr/local/openresty/nginx/sbin/nginx \
       -p "$PREFIX" \
       -c nginx.conf
diff --git a/kong_1.3-ubuntu/Dockerfile b/kong_2.0-ubuntu/Dockerfile
similarity index 96%
copy from kong_1.3-ubuntu/Dockerfile
copy to kong_2.0-ubuntu/Dockerfile
index a79f7a9..3d0d270 100644
--- a/kong_1.3-ubuntu/Dockerfile
+++ b/kong_2.0-ubuntu/Dockerfile
@@ -1,7 +1,7 @@
 FROM ubuntu:xenial
 LABEL maintainer="Kong Core Team <team-core@konghq.com>"
 
-ENV KONG_VERSION 1.3.1
+ENV KONG_VERSION 2.0.0
 
 RUN apt-get update \
     && apt-get install -y --no-install-recommends ca-certificates curl perl unzip \
diff --git a/kong_1.3-ubuntu/docker-entrypoint.sh b/kong_2.0-ubuntu/docker-entrypoint.sh
similarity index 100%
copy from kong_1.3-ubuntu/docker-entrypoint.sh
copy to kong_2.0-ubuntu/docker-entrypoint.sh
diff --git a/kong_latest/Dockerfile b/kong_alpine/Dockerfile
similarity index 100%
copy from kong_latest/Dockerfile
copy to kong_alpine/Dockerfile
diff --git a/kong_1.0/docker-entrypoint.sh b/kong_alpine/docker-entrypoint.sh
similarity index 100%
copy from kong_1.0/docker-entrypoint.sh
copy to kong_alpine/docker-entrypoint.sh
diff --git a/kong_latest/Dockerfile b/kong_latest/Dockerfile
index 72da865..82891fb 100644
--- a/kong_latest/Dockerfile
+++ b/kong_latest/Dockerfile
@@ -1,11 +1,11 @@
 FROM alpine:3.10
 LABEL maintainer="Kong Core Team <team-core@konghq.com>"
 
-ENV KONG_VERSION 1.4.3
-ENV KONG_SHA256 419d4e3d19f2d5c35ec6367e736b0d5509be4a7577d203008514a90f8dd5fdf1
+ENV KONG_VERSION 2.0.0
+ENV KONG_SHA256 5af1178111958b2e325c5b18690f4e7ddf064d28139ff38188b1e2e432ea99ff
 
 
-RUN adduser -Su 1337 kong \
+RUN adduser -S kong \
 	&& mkdir -p "/usr/local/kong" \
 	&& apk add --no-cache --virtual .build-deps curl wget tar ca-certificates \
 	&& apk add --no-cache libgcc openssl pcre perl tzdata libcap su-exec zip \
@@ -17,10 +17,11 @@ RUN adduser -Su 1337 kong \
 	&& rm -rf /tmp/usr \
 	&& cp -R /tmp/etc / \
 	&& rm -rf /tmp/etc \
-	&& apk del .build-deps \
 	&& chown -R kong:0 /usr/local/kong \
 	&& chmod -R g=u /usr/local/kong
 
+USER kong
+
 COPY docker-entrypoint.sh /docker-entrypoint.sh
 
 ENTRYPOINT ["/docker-entrypoint.sh"]
diff --git a/kong_latest/docker-entrypoint.sh b/kong_latest/docker-entrypoint.sh
index c001be6..326eef5 100755
--- a/kong_latest/docker-entrypoint.sh
+++ b/kong_latest/docker-entrypoint.sh
@@ -3,38 +3,19 @@ set -e
 
 export KONG_NGINX_DAEMON=off
 
-has_transparent() {
-  echo "$1" | grep -E "[^\s,]+\s+transparent\b" >/dev/null
-}
-
 if [[ "$1" == "kong" ]]; then
   PREFIX=${KONG_PREFIX:=/usr/local/kong}
 
   if [[ "$2" == "docker-start" ]]; then
-    shift 2
-    kong prepare -p "$PREFIX" "$@"
+    kong prepare -p "$PREFIX"
 
-    # workaround for https://github.com/moby/moby/issues/31243
-    chmod o+w /proc/self/fd/1 || true
-    chmod o+w /proc/self/fd/2 || true
+    ln -sf /dev/stdout $PREFIX/logs/access.log
+    ln -sf /dev/stdout $PREFIX/logs/admin_access.log
+    ln -sf /dev/stderr $PREFIX/logs/error.log
 
-    if [ "$(id -u)" != "0" ]; then
     exec /usr/local/openresty/nginx/sbin/nginx \
       -p "$PREFIX" \
       -c nginx.conf
-    else
-      if [ ! -z ${SET_CAP_NET_RAW} ] \
-          || has_transparent "$KONG_STREAM_LISTEN" \
-          || has_transparent "$KONG_PROXY_LISTEN" \
-          || has_transparent "$KONG_ADMIN_LISTEN";
-      then
-        setcap cap_net_raw=+ep /usr/local/openresty/nginx/sbin/nginx
-      fi
-      chown -R kong:0 /usr/local/kong
-      exec su-exec kong /usr/local/openresty/nginx/sbin/nginx \
-        -p "$PREFIX" \
-        -c nginx.conf
-    fi
   fi
 fi

@tianon
Copy link
Member

tianon commented Jan 21, 2020

-RUN useradd --uid 1337 kong \
+RUN useradd kong \

Was this explicit UID removal intentional?

@hishamhm
Copy link
Contributor Author

@tianon yes, the setup for the Kong 2.0 container no longer needs the hardcoded uid

@tianon
Copy link
Member

tianon commented Jan 21, 2020 via email

@hishamhm
Copy link
Contributor Author

hishamhm commented Jan 21, 2020

@tianon All data relevant to the user kong lives in /usr/local/kong, and in that same sequence, after running adduser -S kong, we reset the ownership of /usr/local/kong to match that user (last two lines below):

RUN adduser -S kong \
	&& mkdir -p "/usr/local/kong" \
	&& apk add --no-cache --virtual .build-deps curl wget tar ca-certificates \
	&& apk add --no-cache libgcc openssl pcre perl tzdata libcap su-exec zip \
	&& wget -O kong.tar.gz "https://bintray.com/kong/kong-alpine-tar/download_file?file_path=kong-$KONG_VERSION.amd64.apk.tar.gz" \
	&& echo "$KONG_SHA256 *kong.tar.gz" | sha256sum -c - \
	&& tar -xzf kong.tar.gz -C /tmp \
	&& rm -f kong.tar.gz \
	&& cp -R /tmp/usr / \
	&& rm -rf /tmp/usr \
	&& cp -R /tmp/etc / \
	&& rm -rf /tmp/etc \
	&& chown -R kong:0 /usr/local/kong \
	&& chmod -R g=u /usr/local/kong

@yosifkit
Copy link
Member

Isn't there user data that might be affected by this? As in, won't users encounter issues during upgrade to this new 2.0 container if their data directory is owned by the old UID?

Ah! there isn't any data (like a docker VOLUME) that would need migrating between two containers, since this image doesn't have any volumes and just uses a real database.

@yosifkit
Copy link
Member

Build test of #7310; cd4e061; amd64 (kong):

$ bashbrew build kong:2.0.0-alpine
Using bashbrew/cache:625dbb5fcfad16e2cca8f37c10b5ce2cf92e0698b3bc035ed488ca72c0c6371f (kong:2.0.0-alpine)
Tagging kong:2.0.0-alpine
Tagging kong:2.0.0
Tagging kong:2.0
Tagging kong:latest

$ test/run.sh kong:2.0.0-alpine
testing kong:2.0.0-alpine
	'utc' [1/4]...passed
	'cve-2014--shellshock' [2/4]...passed
	'no-hard-coded-passwords' [3/4]...passed
	'override-cmd' [4/4]...passed


$ bashbrew build kong:2.0.0-ubuntu
Using bashbrew/cache:553473265dc0541e289c6d01a08439612ee265cd38c8c1c5b8efce4f48256049 (kong:2.0.0-ubuntu)
Tagging kong:2.0.0-ubuntu
Tagging kong:2.0-ubuntu

$ test/run.sh kong:2.0.0-ubuntu
testing kong:2.0.0-ubuntu
	'utc' [1/4]...passed
	'cve-2014--shellshock' [2/4]...passed
	'no-hard-coded-passwords' [3/4]...passed
	'override-cmd' [4/4]...passed


$ bashbrew build kong:2.0.0-centos
Using bashbrew/cache:953c43d47860bd7a8f4706f3a7e72c767a691083616ddb357061e8fa6c290d44 (kong:2.0.0-centos)
Tagging kong:2.0.0-centos
Tagging kong:2.0-centos

$ test/run.sh kong:2.0.0-centos
testing kong:2.0.0-centos
	'utc' [1/4]...passed
	'cve-2014--shellshock' [2/4]...passed
	'no-hard-coded-passwords' [3/4]...warning: garbage password detected for 'root': 'locked'
passed
	'override-cmd' [4/4]...passed


$ bashbrew build kong:1.5.0-alpine
Building bashbrew/cache:a919a0d524a431bb70997f61df2c2a625907b11253227a55b4254253e0c4579c (kong:1.5.0-alpine)
Tagging kong:1.5.0-alpine
Tagging kong:1.5.0
Tagging kong:1.5

$ test/run.sh kong:1.5.0-alpine
testing kong:1.5.0-alpine
	'utc' [1/4]...passed
	'cve-2014--shellshock' [2/4]...passed
	'no-hard-coded-passwords' [3/4]...passed
	'override-cmd' [4/4]...passed


$ bashbrew build kong:1.5.0-ubuntu
Building bashbrew/cache:0003b04b77c62f9da9385c46653b5462be0e513b629a9cc7f42dd38d28312ef3 (kong:1.5.0-ubuntu)
Tagging kong:1.5.0-ubuntu
Tagging kong:1.5-ubuntu

$ test/run.sh kong:1.5.0-ubuntu
testing kong:1.5.0-ubuntu
	'utc' [1/4]...passed
	'cve-2014--shellshock' [2/4]...passed
	'no-hard-coded-passwords' [3/4]...passed
	'override-cmd' [4/4]...passed


$ bashbrew build kong:1.5.0-centos
Building bashbrew/cache:af91d0a7f0ec922920ec200df51cb77044d73eff1d3c3bdeb4d48a7cb5d6636c (kong:1.5.0-centos)
Tagging kong:1.5.0-centos
Tagging kong:1.5-centos

$ test/run.sh kong:1.5.0-centos
testing kong:1.5.0-centos
	'utc' [1/4]...passed
	'cve-2014--shellshock' [2/4]...passed
	'no-hard-coded-passwords' [3/4]...warning: garbage password detected for 'root': 'locked'
passed
	'override-cmd' [4/4]...passed


$ bashbrew build kong:1.4.3-alpine
Using bashbrew/cache:d199baa1deea2d4557f6e4edaba4b5847e6c00d17fe70d2dec90876cc615a981 (kong:1.4.3-alpine)
Tagging kong:1.4.3-alpine
Tagging kong:1.4.3
Tagging kong:1.4
Tagging kong:alpine

$ test/run.sh kong:1.4.3-alpine
testing kong:1.4.3-alpine
	'utc' [1/4]...passed
	'cve-2014--shellshock' [2/4]...passed
	'no-hard-coded-passwords' [3/4]...passed
	'override-cmd' [4/4]...passed


$ bashbrew build kong:1.4.3-ubuntu
Building bashbrew/cache:660214ac7b188130027be41a855d6b67473c600cc910c656f2c11f5a4ce0726a (kong:1.4.3-ubuntu)
Tagging kong:1.4.3-ubuntu
Tagging kong:1.4-ubuntu
Tagging kong:ubuntu

$ test/run.sh kong:1.4.3-ubuntu
testing kong:1.4.3-ubuntu
	'utc' [1/4]...passed
	'cve-2014--shellshock' [2/4]...passed
	'no-hard-coded-passwords' [3/4]...passed
	'override-cmd' [4/4]...passed


$ bashbrew build kong:1.4.3-centos
Using bashbrew/cache:6292ab246b64fc24a9a0db33de15ec64f79d8804a4daca6f0504e506d5d8a5a0 (kong:1.4.3-centos)
Tagging kong:1.4.3-centos
Tagging kong:1.4-centos
Tagging kong:centos

$ test/run.sh kong:1.4.3-centos
testing kong:1.4.3-centos
	'utc' [1/4]...passed
	'cve-2014--shellshock' [2/4]...passed
	'no-hard-coded-passwords' [3/4]...warning: garbage password detected for 'root': 'locked'
passed
	'override-cmd' [4/4]...passed


$ bashbrew build kong:1.3.1-alpine
Using bashbrew/cache:3655cf75c30389c4a415c4238f6e1efb208936a1b0813efe4e099444dbcd0735 (kong:1.3.1-alpine)
Tagging kong:1.3.1-alpine
Tagging kong:1.3.1
Tagging kong:1.3

$ test/run.sh kong:1.3.1-alpine
testing kong:1.3.1-alpine
	'utc' [1/4]...passed
	'cve-2014--shellshock' [2/4]...passed
	'no-hard-coded-passwords' [3/4]...passed
	'override-cmd' [4/4]...passed


$ bashbrew build kong:1.3.1-ubuntu
Building bashbrew/cache:a2cc09141b0a81e882e1eeef6ea77b8e2ad9ed674d016c0b3bded39d41ce0ef8 (kong:1.3.1-ubuntu)
Tagging kong:1.3.1-ubuntu
Tagging kong:1.3-ubuntu

$ test/run.sh kong:1.3.1-ubuntu
testing kong:1.3.1-ubuntu
	'utc' [1/4]...passed
	'cve-2014--shellshock' [2/4]...passed
	'no-hard-coded-passwords' [3/4]...passed
	'override-cmd' [4/4]...passed


$ bashbrew build kong:1.3.1-centos
Using bashbrew/cache:a52ab87fb77150752c321e1df3ad89353a5c0e4d3d6d683e0ca33930e6f80bba (kong:1.3.1-centos)
Tagging kong:1.3.1-centos
Tagging kong:1.3-centos

$ test/run.sh kong:1.3.1-centos
testing kong:1.3.1-centos
	'utc' [1/4]...passed
	'cve-2014--shellshock' [2/4]...passed
	'no-hard-coded-passwords' [3/4]...warning: garbage password detected for 'root': 'locked'
passed
	'override-cmd' [4/4]...passed


$ bashbrew build kong:1.2.3-alpine
Using bashbrew/cache:36911e625556fb481d8facf149ecd9fe24aaa656ed56387564241c005949160b (kong:1.2.3-alpine)
Tagging kong:1.2.3-alpine
Tagging kong:1.2.3
Tagging kong:1.2

$ test/run.sh kong:1.2.3-alpine
testing kong:1.2.3-alpine
	'utc' [1/4]...passed
	'cve-2014--shellshock' [2/4]...passed
	'no-hard-coded-passwords' [3/4]...passed
	'override-cmd' [4/4]...passed


$ bashbrew build kong:1.2.3-centos
Using bashbrew/cache:c261ca753fa208e75459677fec2264a26f225fce0ffe038e5b9fc3b53670334b (kong:1.2.3-centos)
Tagging kong:1.2.3-centos
Tagging kong:1.2-centos

$ test/run.sh kong:1.2.3-centos
testing kong:1.2.3-centos
	'utc' [1/4]...passed
	'cve-2014--shellshock' [2/4]...passed
	'no-hard-coded-passwords' [3/4]...warning: garbage password detected for 'root': 'locked'
passed
	'override-cmd' [4/4]...passed


$ bashbrew build kong:1.1.3-alpine
Using bashbrew/cache:1aff5ba95b01573f5a4c9098d7453c3003abb2cc9b6bc92abc81adb7d87486cc (kong:1.1.3-alpine)
Tagging kong:1.1.3-alpine
Tagging kong:1.1.3
Tagging kong:1.1

$ test/run.sh kong:1.1.3-alpine
testing kong:1.1.3-alpine
	'utc' [1/4]...passed
	'cve-2014--shellshock' [2/4]...passed
	'no-hard-coded-passwords' [3/4]...passed
	'override-cmd' [4/4]...passed


$ bashbrew build kong:1.1.3-centos
Using bashbrew/cache:b7bf72ee1fe48a2701a69f52f6a0ca3bfe6cb5c33f9c2a0fefa38e622ffc214c (kong:1.1.3-centos)
Tagging kong:1.1.3-centos
Tagging kong:1.1-centos

$ test/run.sh kong:1.1.3-centos
testing kong:1.1.3-centos
	'utc' [1/4]...passed
	'cve-2014--shellshock' [2/4]...passed
	'no-hard-coded-passwords' [3/4]...warning: garbage password detected for 'root': 'locked'
passed
	'override-cmd' [4/4]...passed


$ bashbrew build kong:1.0.4-alpine
Building bashbrew/cache:39c2349b87c1527cf55e2088fded815a17decdd372dd1033c9c42a9b277aec8a (kong:1.0.4-alpine)
Tagging kong:1.0.4-alpine
Tagging kong:1.0.4
Tagging kong:1.0

$ test/run.sh kong:1.0.4-alpine
testing kong:1.0.4-alpine
	'utc' [1/4]...passed
	'cve-2014--shellshock' [2/4]...passed
	'no-hard-coded-passwords' [3/4]...passed
	'override-cmd' [4/4]...passed


$ bashbrew build kong:1.0.4-centos
Using bashbrew/cache:a5f2f9c006ebfc6460c0e3e5da57853519f5e075f8d85c17c75c28d28812a07e (kong:1.0.4-centos)
Tagging kong:1.0.4-centos
Tagging kong:1.0-centos

$ test/run.sh kong:1.0.4-centos
testing kong:1.0.4-centos
	'utc' [1/4]...passed
	'cve-2014--shellshock' [2/4]...passed
	'no-hard-coded-passwords' [3/4]...warning: garbage password detected for 'root': 'locked'
passed
	'override-cmd' [4/4]...passed

@yosifkit yosifkit merged commit c88e839 into docker-library:master Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants