From 24fcd153025655e5328e7a224600fff661a4a5ad Mon Sep 17 00:00:00 2001 From: Teddysun Date: Tue, 3 Jul 2018 22:57:20 +0900 Subject: [PATCH] Added KMS Server Docker Image Signed-off-by: Teddysun --- docker/kms/.dockerignore | 2 ++ docker/kms/Dockerfile | 29 +++++++++++++++++++++++++++++ docker/kms/README.md | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 docker/kms/.dockerignore create mode 100644 docker/kms/Dockerfile create mode 100644 docker/kms/README.md diff --git a/docker/kms/.dockerignore b/docker/kms/.dockerignore new file mode 100644 index 0000000..30f898b --- /dev/null +++ b/docker/kms/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +README.md \ No newline at end of file diff --git a/docker/kms/Dockerfile b/docker/kms/Dockerfile new file mode 100644 index 0000000..ba8b6a4 --- /dev/null +++ b/docker/kms/Dockerfile @@ -0,0 +1,29 @@ +# Dockerfile for KMS Server +# Copyright (C) 2018 Teddysun +# Reference URL: +# https://github.com/Wind4/vlmcsd + +FROM alpine:latest +MAINTAINER Teddysun + +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" ] diff --git a/docker/kms/README.md b/docker/kms/README.md new file mode 100644 index 0000000..19b0808 --- /dev/null +++ b/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/ \ No newline at end of file