Skip to content
This repository was archived by the owner on Jun 11, 2021. It is now read-only.

Commit 1e8d425

Browse files
authored
Non root docker images and upgrade version to v0.12.5 (#132)
1 parent f4713dd commit 1e8d425

File tree

7 files changed

+13
-7
lines changed

7 files changed

+13
-7
lines changed

components/channel/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ RUN mkdir -p lib64 \
4242

4343

4444
# Create The Final Docker Container From Google's Distroless Base
45-
FROM gcr.io/distroless/base
45+
FROM gcr.io/distroless/base:nonroot
46+
47+
USER 1000:1000
4648

4749
# Manage malloc and os thread count that can execute go code.
4850
ENV MALLOC_ARENA_MAX=1 GOMAXPROCS=1

components/channel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ BUILD_TESTS:=true
1111

1212
# Application Names (Align With Knative Eventing Version)
1313
APP_NAME=knative-kafka-channel
14-
APP_VERSION=v0.12.3
14+
APP_VERSION=v0.12.5
1515

1616
# Build / Packaging / Deployment Configuration
1717
APP_PATH=eu.gcr.io/kyma-project/incubator

components/common/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ BUILD_DIR:=$(BUILD_ROOT)/build
1010

1111
# Application Names (Align With Knative Eventing Version)
1212
APP_NAME=knative-kafka-common
13-
APP_VERSION=v0.12.3
13+
APP_VERSION=v0.12.5
1414

1515
# Build / Packaging / Deployment Configuration
1616
APP_TAG=$(APP_NAME):$(APP_VERSION)

components/controller/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ RUN mkdir -p lib64 \
4545

4646

4747
# Create Docker Container From Google's distroless base
48-
FROM gcr.io/distroless/base
48+
FROM gcr.io/distroless/base:nonroot
49+
50+
USER 1000:1000
4951

5052
# Manage malloc and os thread count that can execute go code.
5153
ENV MALLOC_ARENA_MAX=1 GOMAXPROCS=1

components/controller/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ BUILD_TESTS:=true
1111

1212
# Application Names (Align With Knative Eventing Version)
1313
APP_NAME=kafka-channel-controller
14-
APP_VERSION=v0.12.3
14+
APP_VERSION=v0.12.5
1515

1616
# Build / Packaging / Deployment Configuration
1717
APP_PATH=eu.gcr.io/kyma-project/incubator

components/dispatcher/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ RUN mkdir -p lib64 \
4141
&& cp /lib64/ld-linux-x86-64.so.2 lib64/ld-linux-x86-64.so.2
4242

4343
# Create Docker Container From Google's distroless base
44-
FROM gcr.io/distroless/base
44+
FROM gcr.io/distroless/base:nonroot
45+
46+
USER 1000:1000
4547

4648
# Manage malloc and os thread count that can execute go code.
4749
ENV MALLOC_ARENA_MAX=1 GOMAXPROCS=1

components/dispatcher/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ BUILD_TESTS:=true
1111

1212
# Application Names (Align With Knative Eventing Version)
1313
APP_NAME=knative-kafka-dispatcher
14-
APP_VERSION=v0.12.3
14+
APP_VERSION=v0.12.5
1515

1616
# Build / Packaging / Deployment Configuration
1717
APP_PATH=eu.gcr.io/kyma-project/incubator

0 commit comments

Comments
 (0)