File tree 1 file changed +8
-1
lines changed
docker/iceberg-rest-fixture
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,10 @@ FROM azul/zulu-openjdk:17-jre-headless
22
22
# Set up the user and group
23
23
RUN set -xeu && \
24
24
groupadd iceberg --gid 1000 && \
25
- useradd iceberg --uid 1000 --gid 1000 --create-home
25
+ useradd iceberg --uid 1000 --gid 1000 --create-home && \
26
+ apt-get update && \
27
+ apt-get install -y --no-install-recommends curl && \
28
+ rm -rf /var/lib/apt/lists/*
26
29
27
30
# Working directory for the application
28
31
WORKDIR /usr/lib/iceberg-rest
@@ -36,6 +39,10 @@ ENV CATALOG_JDBC_USER=user
36
39
ENV CATALOG_JDBC_PASSWORD=password
37
40
ENV REST_PORT=8181
38
41
42
+ # Healthcheck for the iceberg rest service
43
+ HEALTHCHECK --retries=10 --interval=1s \
44
+ CMD curl --fail http://localhost:$REST_PORT/v1/config || exit 1
45
+
39
46
EXPOSE $REST_PORT
40
47
USER iceberg:iceberg
41
48
ENV LANG=en_US.UTF-8
You can’t perform that action at this time.
0 commit comments