mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-21 17:56:53 +02:00
add cmak
This commit is contained in:
parent
8c0e4f724d
commit
3b9f3b97d3
@ -45,8 +45,8 @@ A collection of delicious docker recipes.
|
||||
|
||||
- [x] airflow
|
||||
- [x] ambari
|
||||
- [x] cmak (~kafka-manager~)
|
||||
- [x] kafka-arm
|
||||
- [x] kafka-manager
|
||||
- [x] luigi
|
||||
- [x] nifi
|
||||
- [x] openrefine
|
||||
|
37
cmak/Dockerfile
Normal file
37
cmak/Dockerfile
Normal file
@ -0,0 +1,37 @@
|
||||
#
|
||||
# Dockerfile for cmak
|
||||
#
|
||||
|
||||
FROM debian:buster
|
||||
MAINTAINER kev <noreply@easypi.pro>
|
||||
|
||||
ENV SCALA_VERSION 2.12.10
|
||||
ENV SBT_VERSION 1.3.8
|
||||
ENV CMAK_VERSION 3.0.0.1
|
||||
|
||||
RUN set -xe \
|
||||
&& apt update \
|
||||
&& apt install -y openjdk-11-jre-headless wget \
|
||||
&& wget -q https://downloads.lightbend.com/scala/$SCALA_VERSION/scala-$SCALA_VERSION.deb -O scala.deb \
|
||||
&& wget -q https://dl.bintray.com/sbt/debian/sbt-$SBT_VERSION.deb -O sbt.deb \
|
||||
&& dpkg -i scala.deb sbt.deb \
|
||||
&& rm scala.deb sbt.deb \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /opt/cmak
|
||||
|
||||
RUN set -xe \
|
||||
&& mkdir src \
|
||||
&& wget -q -O- https://github.com/yahoo/CMAK/archive/$CMAK_VERSION.tar.gz | tar xz --strip 1 -C src \
|
||||
&& cd src \
|
||||
&& sbt clean universal:packageZipTarball \
|
||||
&& cd .. \
|
||||
&& tar xzf src/target/universal/cmak-$CMAK_VERSION.tgz --strip 1 \
|
||||
&& rm -rf src
|
||||
|
||||
VOLUME /opt/cmak/conf
|
||||
|
||||
EXPOSE 9000
|
||||
|
||||
ENTRYPOINT ["bin/cmak"]
|
||||
CMD ["-Dconfig.file=conf/application.conf", "-Dhttp.port=9000"]
|
6
cmak/README.md
Normal file
6
cmak/README.md
Normal file
@ -0,0 +1,6 @@
|
||||
cmak
|
||||
====
|
||||
|
||||
[CMAK][1] is a tool for managing Apache Kafka clusters.
|
||||
|
||||
[1]: https://github.com/yahoo/cmak
|
40
cmak/docker-compose.yml
Normal file
40
cmak/docker-compose.yml
Normal file
@ -0,0 +1,40 @@
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
|
||||
zookeeper:
|
||||
image: zookeeper
|
||||
ports:
|
||||
- "2181:2181"
|
||||
volumes:
|
||||
- ./data/zookeeper/data:/data
|
||||
- ./data/zookeeper/datalog:/datalog
|
||||
restart: unless-stopped
|
||||
|
||||
kafka:
|
||||
image: wurstmeister/kafka
|
||||
ports:
|
||||
- "9092:9092"
|
||||
volumes:
|
||||
- ./data/kafka:/kafka
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
environment:
|
||||
- KAFKA_ADVERTISED_HOST_NAME=10.0.0.13
|
||||
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
|
||||
- JMX_PORT=9999
|
||||
depends_on:
|
||||
- zookeeper
|
||||
restart: unless-stopped
|
||||
|
||||
cmak:
|
||||
image: vimagick/cmak
|
||||
ports:
|
||||
- "9000:9000"
|
||||
environment:
|
||||
- ZK_HOSTS=zookeeper:2181
|
||||
- KAFKA_MANAGER_AUTH_ENABLED=true
|
||||
- KAFKA_MANAGER_USERNAME=admin
|
||||
- KAFKA_MANAGER_PASSWORD=admin
|
||||
depends_on:
|
||||
- zookeeper
|
||||
restart: unless-stopped
|
@ -3,4 +3,6 @@ kafka-manager
|
||||
|
||||
A tool for managing Apache Kafka.
|
||||
|
||||
[1]: https://github.com/yahoo/kafka-manager
|
||||
:warning: It is obsolete, please use [cmak][1]
|
||||
|
||||
[1]: https://github.com/yahoo/cmak
|
||||
|
@ -13,6 +13,36 @@ services:
|
||||
- zookeeper:10.0.0.21
|
||||
restart: unless-stopped
|
||||
|
||||
kafka-connect:
|
||||
container_name: kafka-connect
|
||||
image: confluentinc/cp-server-connect:5.4.0
|
||||
ports:
|
||||
- 8083:8083
|
||||
depends_on:
|
||||
- zookeeper
|
||||
- kafka
|
||||
- schema-registry
|
||||
environment:
|
||||
- CONNECT_REST_PORT=8083
|
||||
- CONNECT_REST_ADVERTISED_HOST_NAME=kafka-connect
|
||||
- CONNECT_BOOTSTRAP_SERVERS=kafka:9092
|
||||
- CONNECT_GROUP_ID=default
|
||||
- CONNECT_CONFIG_STORAGE_TOPIC=default.config
|
||||
- CONNECT_OFFSET_STORAGE_TOPIC=default.offsets
|
||||
- CONNECT_STATUS_STORAGE_TOPIC=default.status
|
||||
- CONNECT_CONFIG_STORAGE_REPLICATION_FACTOR=1
|
||||
- CONNECT_OFFSET_STORAGE_REPLICATION_FACTOR=1
|
||||
- CONNECT_STATUS_STORAGE_REPLICATION_FACTOR=1
|
||||
- CONNECT_KEY_CONVERTER=io.confluent.connect.avro.AvroConverter
|
||||
- CONNECT_KEY_CONVERTER_SCHEMA_REGISTRY_URL=http://schema-registry:8081
|
||||
- CONNECT_VALUE_CONVERTER=io.confluent.connect.avro.AvroConverter
|
||||
- CONNECT_VALUE_CONVERTER_SCHEMA_REGISTRY_URL=http://schema-registry:8081
|
||||
- CONNECT_INTERNAL_KEY_CONVERTER=org.apache.kafka.connect.json.JsonConverter
|
||||
- CONNECT_INTERNAL_VALUE_CONVERTER=org.apache.kafka.connect.json.JsonConverter
|
||||
- CONNECT_LOG4J_ROOT_LOGLEVEL=INFO
|
||||
- CONNECT_LOG4J_LOGGERS=org.apache.kafka.connect.runtime.rest=WARN,org.reflections=ERROR
|
||||
- CONNECT_PLUGIN_PATH=/usr/share/java
|
||||
|
||||
kafka-rest:
|
||||
image: confluentinc/cp-kafka-rest:5.4.0
|
||||
container_name: kafka-rest
|
||||
|
Loading…
Reference in New Issue
Block a user