diff options
Diffstat (limited to 'src/main/docker')
-rw-r--r-- | src/main/docker/Dockerfile | 7 | ||||
-rw-r--r-- | src/main/docker/cadi.properties | 20 | ||||
-rw-r--r-- | src/main/docker/docker-compose.yml | 15 | ||||
-rw-r--r-- | src/main/docker/kafka_server_jaas.conf | 5 | ||||
-rw-r--r-- | src/main/docker/keyfilenew | 27 | ||||
-rw-r--r-- | src/main/docker/org.onap.dmaap.mr.p12 | bin | 0 -> 4056 bytes | |||
-rw-r--r-- | src/main/docker/start-kafka.sh | 12 | ||||
-rw-r--r-- | src/main/docker/truststoreONAPall.jks | bin | 0 -> 114865 bytes |
8 files changed, 71 insertions, 15 deletions
diff --git a/src/main/docker/Dockerfile b/src/main/docker/Dockerfile index 39f997c..102ade0 100644 --- a/src/main/docker/Dockerfile +++ b/src/main/docker/Dockerfile @@ -8,6 +8,13 @@ RUN apk add --update unzip wget curl docker jq coreutils ENV KAFKA_VERSION=$kafka_version SCALA_VERSION=$scala_version ADD download-kafka.sh /tmp/download-kafka.sh +ADD kafka_server_jaas.conf /tmp/kafka_server_jaas.conf +ADD truststoreONAPall.jks /tmp/truststoreONAPall.jks +ADD org.onap.dmaap.mr.p12 /tmp/org.onap.dmaap.mr.p12 +ADD keyfilenew /tmp/keyfilenew +ADD cadi.properties /tmp/cadi.properties +ADD kafka11aaf-jar-with-dependencies.jar /tmp/kafka11aaf-jar-with-dependencies.jar + RUN chmod a+x /tmp/download-kafka.sh && sync && /tmp/download-kafka.sh && tar xfz /tmp/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz -C /opt && rm /tmp/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz && ln -s /opt/kafka_${SCALA_VERSION}-${KAFKA_VERSION} /opt/kafka VOLUME ["/kafka"] diff --git a/src/main/docker/cadi.properties b/src/main/docker/cadi.properties new file mode 100644 index 0000000..01aae97 --- /dev/null +++ b/src/main/docker/cadi.properties @@ -0,0 +1,20 @@ +#aaf_locate_url=https://aaf-onap-test.osaaf.org:8095 +aaf_url=https://AAF_LOCATE_URL/AAF_NS.service:2.1 +aaf_env=DEV +aaf_lur=org.onap.aaf.cadi.aaf.v2_0.AAFLurPerm + +cadi_truststore=/opt/config/truststoreONAPall.jks +cadi_truststore_password=changeit + +cadi_keyfile=/opt/config/keyfilenew + +cadi_alias=dmaapmr@mr.dmaap.onap.org +cadi_keystore=/opt/kafka/org.onap.dmaap.mr.p12 +cadi_keystore_password=Messaging for All +cadi_x509_issuers=CN=intermediateCA_1, OU=OSAAF, O=ONAP, C=US + + +cadi_loglevel=INFO +cadi_protocols=TLSv1.1,TLSv1.2 +cadi_latitude=37.78187 +cadi_longitude=-122.26147
\ No newline at end of file diff --git a/src/main/docker/docker-compose.yml b/src/main/docker/docker-compose.yml deleted file mode 100644 index 04b82c3..0000000 --- a/src/main/docker/docker-compose.yml +++ /dev/null @@ -1,15 +0,0 @@ -version: '2' -services: - zookeeper: - image: wurstmeister/zookeeper - ports: - - "2181:2181" - kafka: - build: . - ports: - - "9092" - environment: - KAFKA_ADVERTISED_HOST_NAME: 192.168.99.100 - KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 - volumes: - - /var/run/docker.sock:/var/run/docker.sock diff --git a/src/main/docker/kafka_server_jaas.conf b/src/main/docker/kafka_server_jaas.conf new file mode 100644 index 0000000..163041b --- /dev/null +++ b/src/main/docker/kafka_server_jaas.conf @@ -0,0 +1,5 @@ +KafkaServer { + org.onap.dmaap.kafkaAuthorize.PlainLoginModule1 required + username="admin" + password="admin_secret"; +}; diff --git a/src/main/docker/keyfilenew b/src/main/docker/keyfilenew new file mode 100644 index 0000000..884375f --- /dev/null +++ b/src/main/docker/keyfilenew @@ -0,0 +1,27 @@ +Riwh4gx5yeqp3KFVdmuREXNlB2ie9JSWKRBR08cNhaubYzsoAlCgOYu8g1OuA735u59jaRwAtLxt +5m3aMD5MJZ1ItS4x6CeGCKQ0X3F3OzDRsIv-6iDBhlKdOX9pdR8UF7CBqgqbDmvhg3D-h2Jc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ktAr1xu5Yx +wBcBOrFlB2UP8Im7vBHbGgf77ssqyxy5_cJhaO9MBKUx5KZQw9eE9ePf6UvELTev7Urhla4QKUm9 +AMemzy2RvC2ghZeh7fzBahbZpRM3vDDm4IhbcZavA2d2DEgq8c0AUhlPYE-LCv2BOKBeUEkGULxU +29uIc8LkcLHh37WHmJOjVbH9gB9enHH0sBf9cnv7A70R1evSWeHn0ty9vVXPOLODSQGqbB40qAhQ +MEsRt-13WUAlHjosA7yj2zHTLMeuSqqPuPeiyGPtblkWUC-gpEJxgK8hTb1LzoZVZeteqgdMKlde +Q0gmI_0CX5RtCjITSlHaKxzw6ly9qqv52GZVpAYlu2SWeFdlCg9txh2ke0x3rTMKsM8i0ccCdmLq +E60akH2bPa4vB7zRiu3im-IVli9V8zz8U2roQrfN08IJCAatSQRVfUiyAAJkOEcghuHmaErA-kD8 +fu0sWuAHsEgKBtfaeOu5OFeyeLmNRiPKpVotMyDHrEjjBW-TVTppWwgN5Utmx80RghSmzwUjglyG +3aaM3iJqp8xvgtlLtoJkq2A8rMbw0eAQ7I33hAn-jfBkmjsVkzsVgffe5xqGA1DDYm1lTkv4OjFX +_tTzYfN2V1BtYNUN_edhQRMsNh5-mpZwOeb5JpdJQFZUXaFtwDedx_sqe54NEJ4jV7w4up7H0MXp +WTazMQmwRzsLTs1U8zeJ0Ib0LAb4EsX6DML3Ue87nmYCj450KE9DM0tYGWn13jiGWoDEhW4noi2X +gkcjwIcM-87wwvsb-rMIOdo2DXQee8zKzB51N4YAn4VBUfjXVMhjjSwg40yHlzKQE0hAOuJN
\ No newline at end of file diff --git a/src/main/docker/org.onap.dmaap.mr.p12 b/src/main/docker/org.onap.dmaap.mr.p12 Binary files differnew file mode 100644 index 0000000..79549ed --- /dev/null +++ b/src/main/docker/org.onap.dmaap.mr.p12 diff --git a/src/main/docker/start-kafka.sh b/src/main/docker/start-kafka.sh index 90eaaea..2a89b03 100644 --- a/src/main/docker/start-kafka.sh +++ b/src/main/docker/start-kafka.sh @@ -134,5 +134,17 @@ done if [[ -n "$CUSTOM_INIT_SCRIPT" ]] ; then eval $CUSTOM_INIT_SCRIPT fi +cp /tmp/kafka11aaf-jar-with-dependencies.jar $KAFKA_HOME/libs +cp /tmp/keyfilenew $KAFKA_HOME/config +cp /tmp/truststoreONAPall.jks $KAFKA_HOME/config +cp /tmp/org.onap.dmaap.mr.p12 $KAFKA_HOME/config +cp /tmp/kafka_server_jaas.conf $KAFKA_HOME/config +cp /tmp/cadi.properties $KAFKA_HOME/config +export KAFKA_OPTS="-Djava.security.auth.login.config=$KAFKA_HOME/config/kafka_server_jaas.conf" + +echo "authorizer.class.name=org.onap.dmaap.kafkaAuthorize.KafkaCustomAuthorizer" >> $KAFKA_HOME/config/server.properties +echo "security.inter.broker.protocol=SASL_PLAINTEXT" >> $KAFKA_HOME/config/server.properties +echo "sasl.enabled.mechanisms=PLAIN" >> $KAFKA_HOME/config/server.properties +echo "sasl.mechanism.inter.broker.protocol=PLAIN" >> $KAFKA_HOME/config/server.properties exec $KAFKA_HOME/bin/kafka-server-start.sh $KAFKA_HOME/config/server.properties diff --git a/src/main/docker/truststoreONAPall.jks b/src/main/docker/truststoreONAPall.jks Binary files differnew file mode 100644 index 0000000..2da1dcc --- /dev/null +++ b/src/main/docker/truststoreONAPall.jks |