first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
This commit is contained in:
16
base/unomi/1.5.1/Dockerfile
Normal file
16
base/unomi/1.5.1/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM openjdk:8u272-jre
|
||||
|
||||
LABEL maintainer="phithon <root@leavesongs.com>"
|
||||
|
||||
RUN set -ex \
|
||||
&& mkdir /usr/local/unomi \
|
||||
&& cd /usr/local/unomi \
|
||||
&& wget -qO- https://archive.apache.org/dist/unomi/1.5.1/unomi-1.5.1-bin.tar.gz | tar xz --strip-components=1
|
||||
|
||||
WORKDIR /usr/local/unomi
|
||||
ENV KARAF_OPTS "-Dunomi.autoStart=true"
|
||||
ENV UNOMI_ELASTICSEARCH_ADDRESSES "localhost:9200"
|
||||
COPY docker-entrypoint.sh /
|
||||
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||
CMD ["bin/karaf", "server"]
|
9
base/unomi/1.5.1/docker-entrypoint.sh
Normal file
9
base/unomi/1.5.1/docker-entrypoint.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
until ([ "$health_check" = 'yellow' ] || [ "$health_check" = 'green' ]); do
|
||||
health_check="$(curl -fsSL "http://${UNOMI_ELASTICSEARCH_ADDRESSES}/_cat/health?h=status")"
|
||||
>&2 echo "Elastic Search is unavailable - waiting"
|
||||
sleep 1
|
||||
done
|
||||
|
||||
exec "$@"
|
Reference in New Issue
Block a user