Skip to content

Commit faceb52

Browse files
vultron81simplesteph
authored andcommitted
Fixes #34 by making the docker base image openjdk v8 (#35)
* Fix issue 34 by making the docker base image openjdk v8 * Revert changes based on PR comments
1 parent da7420c commit faceb52

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

build.sbt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ parallelExecution in Test := false
5959
// Docker stuff
6060
dockerRepository := Some("simplesteph")
6161
dockerUpdateLatest := true
62+
dockerBaseImage := "openjdk:8-jre-slim"
6263

6364
PB.targets in Compile := Seq(
6465
scalapb.gen() -> (sourceManaged in Compile).value,
@@ -69,4 +70,4 @@ PB.targets in Compile := Seq(
6970
)
7071

7172
// Add the default sonatype repository setting
72-
publishTo := sonatypePublishTo.value
73+
publishTo := sonatypePublishTo.value

docker-compose.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '2'
22

33
services:
44
zoo1:
5-
image: zookeeper:3.4.9
5+
image: zookeeper:3.4.13
66
hostname: zoo1
77
ports:
88
- "2181:2181"
@@ -29,8 +29,11 @@ services:
2929

3030
kafka-security-manager:
3131
image: simplesteph/kafka-security-manager:latest
32+
ports:
33+
- "50051:50051"
34+
- "50052:50052"
3235
environment:
33-
KSM_READONLY: false
36+
KSM_READONLY: "false"
3437
AUTHORIZER_ZOOKEEPER_CONNECT: "zoo1:2181"
3538
# FILE:
3639
SOURCE_CLASS: "com.github.simplesteph.ksm.source.FileSourceAcl"
@@ -40,8 +43,8 @@ services:
4043
# SOURCE_GITHUB_USER: "simplesteph"
4144
# SOURCE_GITHUB_REPO: "kafka-security-manager-example"
4245
# SOURCE_GITHUB_FILEPATH: "acls.csv"
43-
FEATURE_GRPC: true
46+
FEATURE_GRPC: "true"
4447
volumes:
45-
- "./example:/example"
48+
- ${PWD}/example:/opt/docker/example:ro
4649
depends_on:
47-
- kafka1
50+
- kafka1

0 commit comments

Comments
 (0)