mirror of
				https://github.com/11notes/docker-kms.git
				synced 2025-11-03 21:43:22 +00:00 
			
		
		
		
	normalize readme
This commit is contained in:
		
							
								
								
									
										5
									
								
								.dockerignore
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								.dockerignore
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
				
			|||||||
 | 
					.git*
 | 
				
			||||||
 | 
					*.md
 | 
				
			||||||
 | 
					LICENSE
 | 
				
			||||||
 | 
					maintain/
 | 
				
			||||||
 | 
					project*
 | 
				
			||||||
							
								
								
									
										26
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,26 @@
 | 
				
			|||||||
 | 
					name: create release notes
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  push:
 | 
				
			||||||
 | 
					    tags:
 | 
				
			||||||
 | 
					      - "*"
 | 
				
			||||||
 | 
					      - "!amd64*"
 | 
				
			||||||
 | 
					      - "!arm64*"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					permissions:
 | 
				
			||||||
 | 
					  contents: write
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  release:
 | 
				
			||||||
 | 
					    name: release
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - name: create release notes
 | 
				
			||||||
 | 
					        env:
 | 
				
			||||||
 | 
					          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
				
			||||||
 | 
					          tag: ${{ github.ref_name }}
 | 
				
			||||||
 | 
					        run: |
 | 
				
			||||||
 | 
					          gh release create "$tag" \
 | 
				
			||||||
 | 
					              --repo="$GITHUB_REPOSITORY" \
 | 
				
			||||||
 | 
					              --title="${tag#v}" \
 | 
				
			||||||
 | 
					              --generate-notes
 | 
				
			||||||
							
								
								
									
										12
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								README.md
									
									
									
									
									
								
							@@ -1,7 +1,7 @@
 | 
				
			|||||||

 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 🏔️ Alpine - kms
 | 
					# 🏔️ Alpine - kms
 | 
				
			||||||
    [<img src="https://img.shields.io/badge/github-11notes-blue?logo=github">](https://github.com/11notes)
 | 
					  
 | 
				
			||||||
 | 
					
 | 
				
			||||||
**Activate any version of Windows and Office, forever**
 | 
					**Activate any version of Windows and Office, forever**
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -46,7 +46,9 @@ services:
 | 
				
			|||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
      TZ: Europe/Zurich
 | 
					      TZ: Europe/Zurich
 | 
				
			||||||
    volumes:
 | 
					    volumes:
 | 
				
			||||||
      - "kms-var:/kms/var"
 | 
					      - "var:/kms/var"
 | 
				
			||||||
 | 
					    ports:
 | 
				
			||||||
 | 
					      - "1688:1688/tcp"
 | 
				
			||||||
    restart: always
 | 
					    restart: always
 | 
				
			||||||
  whodb:
 | 
					  whodb:
 | 
				
			||||||
    image: "11notes/whodb:latest"
 | 
					    image: "11notes/whodb:latest"
 | 
				
			||||||
@@ -59,7 +61,7 @@ services:
 | 
				
			|||||||
      - "8080:8080/tcp"
 | 
					      - "8080:8080/tcp"
 | 
				
			||||||
    restart: always
 | 
					    restart: always
 | 
				
			||||||
volumes:
 | 
					volumes:
 | 
				
			||||||
  kms-var:
 | 
					  var:
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# EXAMPLES
 | 
					# EXAMPLES
 | 
				
			||||||
@@ -79,6 +81,7 @@ Activate server
 | 
				
			|||||||
slmgr /ato
 | 
					slmgr /ato
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# DEFAULT SETTINGS
 | 
				
			||||||
# DEFAULT SETTINGS
 | 
					# DEFAULT SETTINGS
 | 
				
			||||||
| Parameter | Value | Description |
 | 
					| Parameter | Value | Description |
 | 
				
			||||||
| --- | --- | --- |
 | 
					| --- | --- | --- |
 | 
				
			||||||
@@ -101,6 +104,9 @@ slmgr /ato
 | 
				
			|||||||
| `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 |
 | 
					| `KMS_LOGLEVEL` | CRITICAL, ERROR, WARNING, INFO, DEBUG, MININFO | INFO |
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# SOURCE
 | 
				
			||||||
 | 
					* [11notes/kms:latest](https://github.com/11notes/docker-kms/tree/latest)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# PARENT IMAGE
 | 
					# PARENT IMAGE
 | 
				
			||||||
* [11notes/alpine:stable](https://hub.docker.com/r/11notes/alpine)
 | 
					* [11notes/alpine:stable](https://hub.docker.com/r/11notes/alpine)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,11 @@
 | 
				
			|||||||
 | 
					# :: Util
 | 
				
			||||||
 | 
					  FROM alpine as util
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  RUN set -ex; \
 | 
				
			||||||
 | 
					    apk add --no-cache \
 | 
				
			||||||
 | 
					      git; \
 | 
				
			||||||
 | 
					    git clone https://github.com/11notes/util.git;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# :: Build
 | 
					# :: Build
 | 
				
			||||||
  FROM alpine as build
 | 
					  FROM alpine as build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -18,6 +26,7 @@
 | 
				
			|||||||
# :: Header
 | 
					# :: Header
 | 
				
			||||||
  FROM python:3.11-alpine
 | 
					  FROM python:3.11-alpine
 | 
				
			||||||
  COPY --from=build /usr/local/bin/ /usr/local/bin
 | 
					  COPY --from=build /usr/local/bin/ /usr/local/bin
 | 
				
			||||||
 | 
					  COPY --from=util /util/docker /usr/local/bin
 | 
				
			||||||
  ENV APP_ROOT=/kms
 | 
					  ENV APP_ROOT=/kms
 | 
				
			||||||
  ENV APP_NAME="kms"
 | 
					  ENV APP_NAME="kms"
 | 
				
			||||||
  ENV APP_VERSION="latest"
 | 
					  ENV APP_VERSION="latest"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,14 @@
 | 
				
			|||||||
# :: QEMU
 | 
					# :: QEMU
 | 
				
			||||||
  FROM multiarch/qemu-user-static:x86_64-aarch64 as qemu
 | 
					  FROM multiarch/qemu-user-static:x86_64-aarch64 as qemu
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# :: Util
 | 
				
			||||||
 | 
					  FROM alpine as util
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  RUN set -ex; \
 | 
				
			||||||
 | 
					    apk add --no-cache \
 | 
				
			||||||
 | 
					      git; \
 | 
				
			||||||
 | 
					    git clone https://github.com/11notes/util.git;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# :: Build
 | 
					# :: Build
 | 
				
			||||||
  FROM alpine as build
 | 
					  FROM alpine as build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -22,6 +30,7 @@
 | 
				
			|||||||
  FROM --platform=linux/arm64 arm64v8/python:3.11-alpine
 | 
					  FROM --platform=linux/arm64 arm64v8/python:3.11-alpine
 | 
				
			||||||
  COPY --from=qemu /usr/bin/qemu-aarch64-static /usr/bin
 | 
					  COPY --from=qemu /usr/bin/qemu-aarch64-static /usr/bin
 | 
				
			||||||
  COPY --from=build /usr/local/bin/ /usr/local/bin
 | 
					  COPY --from=build /usr/local/bin/ /usr/local/bin
 | 
				
			||||||
 | 
					  COPY --from=util /util/docker /usr/local/bin
 | 
				
			||||||
  ENV APP_ROOT=/kms
 | 
					  ENV APP_ROOT=/kms
 | 
				
			||||||
  ENV APP_NAME="kms"
 | 
					  ENV APP_NAME="kms"
 | 
				
			||||||
  ENV APP_VERSION="latest"
 | 
					  ENV APP_VERSION="latest"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,7 +6,9 @@ services:
 | 
				
			|||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
      TZ: Europe/Zurich
 | 
					      TZ: Europe/Zurich
 | 
				
			||||||
    volumes:
 | 
					    volumes:
 | 
				
			||||||
      - "kms-var:/kms/var"
 | 
					      - "var:/kms/var"
 | 
				
			||||||
 | 
					    ports:
 | 
				
			||||||
 | 
					      - "1688:1688/tcp"
 | 
				
			||||||
    restart: always
 | 
					    restart: always
 | 
				
			||||||
  whodb:
 | 
					  whodb:
 | 
				
			||||||
    image: "11notes/whodb:latest"
 | 
					    image: "11notes/whodb:latest"
 | 
				
			||||||
@@ -14,9 +16,9 @@ services:
 | 
				
			|||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
      TZ: Europe/Zurich
 | 
					      TZ: Europe/Zurich
 | 
				
			||||||
    volumes:
 | 
					    volumes:
 | 
				
			||||||
      - "kms-var:/whodb/var"
 | 
					      - "var:/whodb/var"
 | 
				
			||||||
    ports:
 | 
					    ports:
 | 
				
			||||||
      - "8080:8080/tcp"
 | 
					      - "8080:8080/tcp"
 | 
				
			||||||
    restart: always
 | 
					    restart: always
 | 
				
			||||||
volumes:
 | 
					volumes:
 | 
				
			||||||
  kms-var:
 | 
					  var:
 | 
				
			||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
#!/bin/ash
 | 
					#!/bin/ash
 | 
				
			||||||
  if [ -z "$1" ]; then
 | 
					  if [ -z "${1}" ]; then
 | 
				
			||||||
    elevenLogJSON info "starting ${APP_NAME} (${APP_VERSION})"
 | 
					    elevenLogJSON info "starting ${APP_NAME}"
 | 
				
			||||||
    set -- "python3" \
 | 
					    set -- "python3" \
 | 
				
			||||||
      /usr/local/bin/py-kms/pykms_Server.py \
 | 
					      /usr/local/bin/py-kms/pykms_Server.py \
 | 
				
			||||||
      ${KMS_IP} \
 | 
					      ${KMS_IP} \
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user