Commit e8530d06 authored by dgasull's avatar dgasull

New ELASTIC docker image 1.5

parent 8cf46dd7
......@@ -109,7 +109,9 @@ then
docker build --rm -f kafka.Dockerfile -t elasticeuh2020/kafka:$VERSION .
echo " ===== Building docker elasticeuh2020/mqtt-to-dataclay:${VERSION} ====="
docker build --rm -f elastic.mqtt.bridge.Dockerfile -t elasticeuh2020/mqtt-to-dataclay:$VERSION .
docker build --rm -f elastic.mqtt.bridge.Dockerfile \
--build-arg PYCLIENT_VERSION=${VERSION} \
-t elasticeuh2020/mqtt-to-dataclay:$VERSION .
rm -rf ./contractids
......
......@@ -173,6 +173,7 @@ if [[ "$response" =~ ^([yY][eE][sS]|[yY])$ ]]; then
docker buildx build --rm -f elastic.mqtt.bridge.Dockerfile \
--cache-to=type=registry,ref=elasticeuh2020/mqtt-to-dataclay:buildxcache${VERSION},mode=max \
--cache-from=type=registry,ref=elasticeuh2020/mqtt-to-dataclay:buildxcache${VERSION} \
--build-arg PYCLIENT_VERSION=${VERSION} \
-t elasticeuh2020/mqtt-to-dataclay:$VERSION \
--platform $PLATFORMS --push .
......
FROM elasticeuh2020/dataclay-pyclient:1.4
ARG PYCLIENT_VERSION
FROM elasticeuh2020/dataclay-pyclient:${PYCLIENT_VERSION}
FROM nuvlabox/mqtt-fiware-bridge:0.0.1
# Install packages:
......
#!/usr/bin/env sh
# piping to sed prefixes the logs with the corresponding application name
run_zookeeper() {
bin/zookeeper-server-start.sh config/zookeeper.properties | sed "s/^/[zookeeper] /"
}
wait_zookeeper() {
while ! nc -z localhost 2181; do
echo "Waiting for zookeeper"
sleep 0.1
done
}
run_kafka() {
echo -e "\nadvertised.host.name=${ADVERTISED_HOST:-localhost}" >> config/server.properties
echo -e "\nadvertised.port=${ADVERTISED_PORT:-9092}" >> config/server.properties
bin/kafka-server-start.sh config/server.properties | sed "s/^/[kafka-broker] /"
}
# run both in parallel but wait for zookeeper to startup
{ run_zookeeper & (wait_zookeeper && run_kafka) ; }
\ No newline at end of file
Subproject commit 71357abc1d78cfd8725e01e64394be7801032347
Subproject commit 339b6b651e9cb367f897ef986dd6f361ce00fd37
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment