mirror of
https://github.com/nitnelave/lldap.git
synced 2023-04-12 14:25:13 +00:00
docker: add healthcheck
This commit is contained in:
parent
3aaf53442b
commit
188a92d124
7
.github/workflows/Dockerfile.ci.alpine
vendored
7
.github/workflows/Dockerfile.ci.alpine
vendored
@ -17,7 +17,7 @@ RUN if [ "${TARGETPLATFORM}" = "linux/amd64" ]; then \
|
|||||||
ls -la target/ . && \
|
ls -la target/ . && \
|
||||||
pwd \
|
pwd \
|
||||||
; fi
|
; fi
|
||||||
|
|
||||||
RUN if [ "${TARGETPLATFORM}" = "linux/arm64" ]; then \
|
RUN if [ "${TARGETPLATFORM}" = "linux/arm64" ]; then \
|
||||||
mv bin/aarch64-bin/lldap target/lldap && \
|
mv bin/aarch64-bin/lldap target/lldap && \
|
||||||
mv bin/aarch64-bin/migration-tool target/migration-tool && \
|
mv bin/aarch64-bin/migration-tool target/migration-tool && \
|
||||||
@ -26,7 +26,7 @@ RUN if [ "${TARGETPLATFORM}" = "linux/arm64" ]; then \
|
|||||||
ls -la target/ . && \
|
ls -la target/ . && \
|
||||||
pwd \
|
pwd \
|
||||||
; fi
|
; fi
|
||||||
|
|
||||||
RUN if [ "${TARGETPLATFORM}" = "linux/arm/v7" ]; then \
|
RUN if [ "${TARGETPLATFORM}" = "linux/arm/v7" ]; then \
|
||||||
mv bin/armhf-bin/lldap target/lldap && \
|
mv bin/armhf-bin/lldap target/lldap && \
|
||||||
mv bin/armhf-bin/migration-tool target/migration-tool && \
|
mv bin/armhf-bin/migration-tool target/migration-tool && \
|
||||||
@ -52,7 +52,7 @@ RUN set -x \
|
|||||||
&& for file in $(cat /lldap/app/static/libraries.txt); do wget -P app/static "$file"; done \
|
&& for file in $(cat /lldap/app/static/libraries.txt); do wget -P app/static "$file"; done \
|
||||||
&& for file in $(cat /lldap/app/static/fonts/fonts.txt); do wget -P app/static/fonts "$file"; done \
|
&& for file in $(cat /lldap/app/static/fonts/fonts.txt); do wget -P app/static/fonts "$file"; done \
|
||||||
&& chmod a+r -R .
|
&& chmod a+r -R .
|
||||||
|
|
||||||
FROM alpine:3.16
|
FROM alpine:3.16
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV UID=1000
|
ENV UID=1000
|
||||||
@ -104,3 +104,4 @@ VOLUME ["/data"]
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENTRYPOINT ["tini", "--", "/docker-entrypoint.sh"]
|
ENTRYPOINT ["tini", "--", "/docker-entrypoint.sh"]
|
||||||
CMD ["run", "--config-file", "/data/lldap_config.toml"]
|
CMD ["run", "--config-file", "/data/lldap_config.toml"]
|
||||||
|
HEALTHCHECK CMD ["/app/lldap", "run", "--config-file", "/data/lldap_config.toml"]
|
||||||
|
9
.github/workflows/Dockerfile.ci.debian
vendored
9
.github/workflows/Dockerfile.ci.debian
vendored
@ -17,7 +17,7 @@ RUN if [ "${TARGETPLATFORM}" = "linux/amd64" ]; then \
|
|||||||
ls -la target/ . && \
|
ls -la target/ . && \
|
||||||
pwd \
|
pwd \
|
||||||
; fi
|
; fi
|
||||||
|
|
||||||
RUN if [ "${TARGETPLATFORM}" = "linux/arm64" ]; then \
|
RUN if [ "${TARGETPLATFORM}" = "linux/arm64" ]; then \
|
||||||
mv bin/aarch64-bin/lldap target/lldap && \
|
mv bin/aarch64-bin/lldap target/lldap && \
|
||||||
mv bin/aarch64-bin/migration-tool target/migration-tool && \
|
mv bin/aarch64-bin/migration-tool target/migration-tool && \
|
||||||
@ -26,7 +26,7 @@ RUN if [ "${TARGETPLATFORM}" = "linux/arm64" ]; then \
|
|||||||
ls -la target/ . && \
|
ls -la target/ . && \
|
||||||
pwd \
|
pwd \
|
||||||
; fi
|
; fi
|
||||||
|
|
||||||
RUN if [ "${TARGETPLATFORM}" = "linux/arm/v7" ]; then \
|
RUN if [ "${TARGETPLATFORM}" = "linux/arm/v7" ]; then \
|
||||||
mv bin/armhf-bin/lldap target/lldap && \
|
mv bin/armhf-bin/lldap target/lldap && \
|
||||||
mv bin/armhf-bin/migration-tool target/migration-tool && \
|
mv bin/armhf-bin/migration-tool target/migration-tool && \
|
||||||
@ -51,8 +51,8 @@ WORKDIR /lldap
|
|||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& for file in $(cat /lldap/app/static/libraries.txt); do wget -P app/static "$file"; done \
|
&& for file in $(cat /lldap/app/static/libraries.txt); do wget -P app/static "$file"; done \
|
||||||
&& for file in $(cat /lldap/app/static/fonts/fonts.txt); do wget -P app/static/fonts "$file"; done \
|
&& for file in $(cat /lldap/app/static/fonts/fonts.txt); do wget -P app/static/fonts "$file"; done \
|
||||||
&& chmod a+r -R .
|
&& chmod a+r -R .
|
||||||
|
|
||||||
FROM debian:bullseye-slim
|
FROM debian:bullseye-slim
|
||||||
ENV UID=1000
|
ENV UID=1000
|
||||||
ENV GID=1000
|
ENV GID=1000
|
||||||
@ -69,3 +69,4 @@ VOLUME ["/data"]
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENTRYPOINT ["tini", "--", "/docker-entrypoint.sh"]
|
ENTRYPOINT ["tini", "--", "/docker-entrypoint.sh"]
|
||||||
CMD ["run", "--config-file", "/data/lldap_config.toml"]
|
CMD ["run", "--config-file", "/data/lldap_config.toml"]
|
||||||
|
HEALTHCHECK CMD ["/app/lldap", "run", "--config-file", "/data/lldap_config.toml"]
|
||||||
|
@ -64,3 +64,4 @@ EXPOSE ${LDAP_PORT} ${HTTP_PORT}
|
|||||||
|
|
||||||
ENTRYPOINT ["/app/docker-entrypoint.sh"]
|
ENTRYPOINT ["/app/docker-entrypoint.sh"]
|
||||||
CMD ["run", "--config-file", "/data/lldap_config.toml"]
|
CMD ["run", "--config-file", "/data/lldap_config.toml"]
|
||||||
|
HEALTHCHECK CMD ["/app/lldap", "run", "--config-file", "/data/lldap_config.toml"]
|
||||||
|
Loading…
Reference in New Issue
Block a user