mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 13:30:02 +08:00
Healthcheck
This commit is contained in:
parent
8763fb557d
commit
b3d1539e98
@ -36,6 +36,7 @@ COPY agent/*.sh /agent/
|
|||||||
COPY --from=builder /src/serial/main /run/serial.bin
|
COPY --from=builder /src/serial/main /run/serial.bin
|
||||||
|
|
||||||
RUN ["chmod", "+x", "/run/run.sh"]
|
RUN ["chmod", "+x", "/run/run.sh"]
|
||||||
|
RUN ["chmod", "+x", "/run/check.sh"]
|
||||||
RUN ["chmod", "+x", "/run/server.sh"]
|
RUN ["chmod", "+x", "/run/server.sh"]
|
||||||
RUN ["chmod", "+x", "/run/serial.bin"]
|
RUN ["chmod", "+x", "/run/serial.bin"]
|
||||||
|
|
||||||
@ -68,6 +69,6 @@ LABEL org.opencontainers.image.version=${VERSION_ARG}
|
|||||||
LABEL org.opencontainers.image.url=https://hub.docker.com/r/kroese/virtual-dsm/
|
LABEL org.opencontainers.image.url=https://hub.docker.com/r/kroese/virtual-dsm/
|
||||||
LABEL org.opencontainers.image.source=https://github.com/kroese/virtual-dsm/
|
LABEL org.opencontainers.image.source=https://github.com/kroese/virtual-dsm/
|
||||||
|
|
||||||
HEALTHCHECK --interval=30s --timeout=2s CMD curl -ILfSs http://20.20.20.21:5000/ || exit 1
|
HEALTHCHECK --interval=30s --retries=1 CMD /run/check.sh
|
||||||
|
|
||||||
ENTRYPOINT ["/run/run.sh"]
|
ENTRYPOINT ["/run/run.sh"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user