@@ -75,128 +75,18 @@ services:
75
75
#
76
76
sleep infinity
77
77
78
- # elasticsearch:
79
- # image: docker.elastic.co/elasticsearch/elasticsearch:6.7.0
80
- # container_name: elasticsearch
81
- # ports:
82
- # - 9200:9200
83
- # environment:
84
- # xpack.security.enabled: "false"
85
- # ES_JAVA_OPTS: "-Xms1g -Xmx1g"
86
- # command:
87
- # - bash
88
- # - -c
89
- # - |
90
- # /usr/local/bin/docker-entrypoint.sh &
91
- # echo "Waiting for Elasticsearch to start ⏳"
92
- # while : ; do
93
- # curl_status=$$(curl -s -o /dev/null -w %{http_code} http://localhost:9200/)
94
- # echo -e $$(date) " Elasticsearch listener HTTP state: " $$curl_status " (waiting for 200)"
95
- # if [ $$curl_status -eq 200 ] ; then
96
- # break
97
- # fi
98
- # sleep 5
99
- # done
100
- # echo -e "\n--\n+> Creating Elasticsearch dynamic mapping"
101
- # curl -XPUT "http://localhost:9200/_template/kafkaconnect/" -H 'Content-Type: application/json' -d'
102
- # {
103
- # "index_patterns": "*",
104
- # "settings": {
105
- # "number_of_shards": 1,
106
- # "number_of_replicas": 0
107
- # },
108
- # "mappings": {
109
- # "dynamic_templates": [
110
- # {
111
- # "dates": {
112
- # "match": "*_TS",
113
- # "mapping": {
114
- # "type": "date"
115
- # }
116
- # }
117
- # },
118
- # {
119
- # "heights": {
120
- # "match": "HEIGHT",
121
- # "mapping": {
122
- # "type": "float"
123
- # }
124
- # }
125
- # },
126
- # {
127
- # "locations": {
128
- # "match": "LOCATION",
129
- # "mapping": {
130
- # "type": "geo_point"
131
- # }
132
- # }
133
- # }
134
- # ]
135
- # }
136
- # }'
137
- # sleep infinity
138
-
139
-
140
78
141
- # kibana:
142
- # image: docker.elastic.co/kibana/kibana:6.7.0
143
- # container_name: kibana
144
- # depends_on:
145
- # - elasticsearch
146
- # ports:
147
- # - 5601:5601
148
- # environment:
149
- # xpack.security.enabled: "false"
150
- # discovery.type: "single-node"
79
+ # kafkacat:
80
+ # image: edenhill/kafkacat:1.5.0
81
+ # container_name: kafkacat
82
+ #
151
83
# command:
152
84
# - bash
153
85
# - -c
154
86
# - |
155
- # /usr/local/bin/kibana-docker &
156
- # #
157
- # echo "Waiting for Kibana to start ⏳"
158
- # while : ; do
159
- # curl_status=$$(curl -s -o /dev/null -w %{http_code} http://localhost:5601/api/kibana/settings)
160
- # echo -e $$(date) " Kibana listener HTTP state: " $$curl_status " (waiting for 200)"
161
- # if [ $$curl_status -eq 200 ] ; then
162
- # break
163
- # fi
164
- # sleep 5
165
- # done
166
- # #
167
- # echo "Waiting for Kibana API to be available ⏳"
168
- # while : ; do
169
- # kibana_status=$$(curl -s 'http://localhost:5601/api/kibana/settings')
170
- # echo -e $$(date) " Kibana API response: " $$kibana_status
171
- # if [ $$kibana_status != "Kibana server is not ready yet" ] ; then
172
- # break
173
- # fi
174
- # sleep 5
175
- # done
176
- # #
177
- # sleep 60
178
- # echo -e "\n--\n+> Setup Kibana objects"
179
-
180
- # echo -e "\n--\n+> Opt out of Kibana telemetry"
181
- # curl 'http://localhost:5601/api/telemetry/v1/optIn' -H 'kbn-xsrf: nevergonnagiveyouup' -H 'content-type: application/json' -H 'accept: application/json' --data-binary '{"enabled":false}' --compressed
182
-
183
- # echo -e "\n--\n+> Create Kibana index patterns"
184
- # curl -XPOST 'http://localhost:5601/api/saved_objects/index-pattern/runner_location_idx' \
185
- # -H 'kbn-xsrf: nevergonnagiveyouup' \
186
- # -H 'Content-Type: application/json' \
187
- # -d '{"attributes":{"title":"runner_location","timeFieldName":"EVENT_TS"}}'
188
-
189
- # curl -XPOST 'http://localhost:5601/api/saved_objects/index-pattern/runner_status_idx' \
190
- # -H 'kbn-xsrf: nevergonnagiveyouup' \
191
- # -H 'Content-Type: application/json' \
192
- # -d '{"attributes":{"title":"runner_status","timeFieldName":"EVENT_TS"}}'
193
-
194
- # echo -e "\n--\n+> Set default Kibana index"
195
- # curl -XPOST 'http://localhost:5601/api/kibana/settings' \
196
- # -H 'kbn-xsrf: nevergonnagiveyouup' \
197
- # -H 'content-type: application/json' \
198
- # -d '{"changes":{"defaultIndex":"runner_status_idx"}}'
199
-
200
- # echo -e "\n--\n+> Import Kibana objects"
201
-
202
- # sleep infinity
87
+ # f
88
+ # kafkacat -b ${CCLOUD_BROKER_HOST}
89
+ # -X security.protocol=SASL_SSL -X sasl.mechanisms=PLAIN \
90
+ # -X sasl.username="${CCLOUD_API_KEY}" -X sasl.password="${CCLOUD_API_SECRET}" \
91
+ # -X ssl.ca.location=/usr/local/etc/openssl/cert.pem -X api.version.request=true
92
+ # -P -t data_mqtt
0 commit comments