Browse Source

Added KMS Server Docker Image

Signed-off-by: Teddysun <[email protected]>
Teddysun 7 years ago
parent
commit
24fcd15302
3 changed files with 64 additions and 0 deletions
  1. 2 0
      docker/kms/.dockerignore
  2. 29 0
      docker/kms/Dockerfile
  3. 33 0
      docker/kms/README.md

+ 2 - 0
docker/kms/.dockerignore

@@ -0,0 +1,2 @@
+.dockerignore
+README.md

+ 29 - 0
docker/kms/Dockerfile

@@ -0,0 +1,29 @@
+# Dockerfile for KMS Server
+# Copyright (C) 2018 Teddysun <[email protected]>
+# Reference URL:
+# https://github.com/Wind4/vlmcsd
+
+FROM alpine:latest
+MAINTAINER Teddysun <[email protected]>
+
+ENV KMS_RELEASE https://github.com/Wind4/vlmcsd/archive/master.zip
+
+RUN apk add --no-cache --virtual .build-deps \
+    g++ \
+    gcc \
+    wget \
+    make \
+    unzip \
+    && cd /tmp \
+    && wget -O vlmcsd.zip $KMS_RELEASE \
+    && unzip vlmcsd.zip \
+    && cd vlmcsd-master \
+    && make \
+    && cp -p bin/vlmcsd /usr/bin/ \
+    && chmod 755 /usr/bin/vlmcsd \
+    && rm -rf /tmp/vlmcsd.zip /tmp/vlmcsd-master \
+    && apk del .build-deps
+
+EXPOSE 1688
+
+CMD [ "/usr/bin/vlmcsd", "-D" ]

+ 33 - 0
docker/kms/README.md

@@ -0,0 +1,33 @@
+## KMS Server Docker Image by Teddysun
+
+This is A fully Microsoft compatible KMS server with Docker Image.
+vlmcsd is a fully Microsoft compatible KMS server that provides product activation services to clients.It is meant as a drop-in replacement for a Microsoft KMS server (Windows computer with KMS key entered).It currently supports KMS protocol versions 4, 5 and 6.
+vlmcsd is designed to run on POSIX compatible operating systens. It only requires a basic C library with a BSD-style sockets API and either `fork` or `pthreads`. That allows it to run on most embedded systems like routers, NASes, mobile phones, tablets, TVs, settop boxes, etc. Some efforts have been made that it also runs on Windows.
+
+Docker images are built for quick deployment in various computing cloud providers.
+For more information on docker and containerization technologies, refer to [official document][1].
+
+## Prepare the host
+
+If you need to install docker by yourself, follow the [official installation guide][2].
+
+## Pull the image
+
+```bash
+$ docker pull teddysun/kms
+```
+
+This pulls the latest release of shadowsocks-libev.
+It can be found at [Docker Hub][3].
+
+## Start a container
+
+```bash
+$ docker run -d -p 1688:1688 --name kms teddysun/kms
+```
+
+**Note**: The TCP port number `1688` must be opened in firewall.
+
+[1]: https://docs.docker.com/
+[2]: https://docs.docker.com/install/
+[3]: https://hub.docker.com/r/teddysun/kms/