mirror of
https://github.com/11notes/docker-kms.git
synced 2025-10-23 04:52:15 +00:00
[cut] KMS_LOGLEVEL and KMS_CLIENTCOUNT
This commit is contained in:
@@ -43,10 +43,8 @@ ARG BUILD_ROOT=/git/fork-py-kms
|
|||||||
ENV APP_ROOT=${APP_ROOT}
|
ENV APP_ROOT=${APP_ROOT}
|
||||||
|
|
||||||
ENV KMS_LOCALE=1033
|
ENV KMS_LOCALE=1033
|
||||||
ENV KMS_CLIENTCOUNT=26
|
|
||||||
ENV KMS_ACTIVATIONINTERVAL=120
|
ENV KMS_ACTIVATIONINTERVAL=120
|
||||||
ENV KMS_RENEWALINTERVAL=259200
|
ENV KMS_RENEWALINTERVAL=259200
|
||||||
ENV KMS_LOGLEVEL="INFO"
|
|
||||||
|
|
||||||
# :: multi-stage
|
# :: multi-stage
|
||||||
COPY --from=util /usr/local/bin /usr/local/bin
|
COPY --from=util /usr/local/bin /usr/local/bin
|
||||||
@@ -87,7 +85,8 @@ ARG BUILD_ROOT=/git/fork-py-kms
|
|||||||
VOLUME ["${APP_ROOT}/var"]
|
VOLUME ["${APP_ROOT}/var"]
|
||||||
|
|
||||||
# :: Monitor
|
# :: Monitor
|
||||||
HEALTHCHECK --interval=5s --timeout=2s CMD netstat -an | grep -q 1688 || exit 1
|
HEALTHCHECK --interval=5s --timeout=2s --start-interval=5s \
|
||||||
|
CMD netstat -an | grep -q 1688
|
||||||
|
|
||||||
# :: Start
|
# :: Start
|
||||||
USER ${APP_UID}:${APP_GID}
|
USER ${APP_UID}:${APP_GID}
|
@@ -56,7 +56,6 @@ ${{ content_environment }}
|
|||||||
| `KMS_LOCALE` | see Microsoft LICD specification | 1033 (en-US) |
|
| `KMS_LOCALE` | see Microsoft LICD specification | 1033 (en-US) |
|
||||||
| `KMS_ACTIVATIONINTERVAL` | Retry unsuccessful after N minutes | 120 (2 hours) |
|
| `KMS_ACTIVATIONINTERVAL` | Retry unsuccessful after N minutes | 120 (2 hours) |
|
||||||
| `KMS_RENEWALINTERVAL` | re-activation after N minutes | 259200 (180 days) |
|
| `KMS_RENEWALINTERVAL` | re-activation after N minutes | 259200 (180 days) |
|
||||||
| `KMS_LOGLEVEL` | CRITICAL, ERROR, WARNING, INFO, DEBUG, MININFO | INFO |
|
|
||||||
|
|
||||||
${{ content_source }}
|
${{ content_source }}
|
||||||
|
|
||||||
|
@@ -4,6 +4,8 @@
|
|||||||
if [ ! -z "${DEBUG}" ]; then
|
if [ ! -z "${DEBUG}" ]; then
|
||||||
KMS_LOGLEVEL="DEBUG"
|
KMS_LOGLEVEL="DEBUG"
|
||||||
eleven log debug "setting kms log level to DEBUG"
|
eleven log debug "setting kms log level to DEBUG"
|
||||||
|
else
|
||||||
|
KMS_LOGLEVEL="INFO"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd /opt/py-kms
|
cd /opt/py-kms
|
||||||
|
Reference in New Issue
Block a user