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

This commit is contained in:
2025-09-06 16:08:15 +08:00
commit 63285f61aa
2624 changed files with 88491 additions and 0 deletions

View 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"]

View 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 "$@"