Samba DC health check for SMB and mainly RPC port 135 that periodically fails to respond
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-11-25 10:17:30 +01:00
parent 67d577c144
commit 7f335f6ab8

View File

@@ -35,4 +35,6 @@ RUN apk add --update --no-cache krb5 ldb-tools samba-dc=$SAMBA_VERSION tdb \
VOLUME /etc/samba /var/lib/samba VOLUME /etc/samba /var/lib/samba
EXPOSE 53 53/udp 88 88/udp 135 137-138/udp 139 389 389/udp 445 464 464/udp 636 3268-3269 49152-65535 EXPOSE 53 53/udp 88 88/udp 135 137-138/udp 139 389 389/udp 445 464 464/udp 636 3268-3269 49152-65535
HEALTHCHECK --interval=30s --timeout=10s CMD (smbclient -L \\localhost -U % -m SMB3 && netstat -ltn | grep -c 135) || exit 1
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]