使用 docker 部署 vlmcsd, 激活 Windows、Office

sudo su –
mkdir -p /data/vlmcsd

tee /data/vlmcsd/Dockerfile <<-‘EOF’
FROM alpine:latest as builder
WORKDIR /root
RUN apk add –no-cache git make build-base && \
    git clone –branch master –single-branch https://github.com/Wind4/vlmcsd.git && \
    cd vlmcsd/ && \
    make
FROM alpine:latest
WORKDIR /root/
COPY –from=builder /root/vlmcsd/bin/vlmcsd /usr/bin/vlmcsd
EXPOSE 1688/tcp
CMD [ “/usr/bin/vlmcsd”, “-D”, “-d” ]
EOF

cd /data/vlmcsd
nohup docker build -t vlmcsd . &

tee /data/config/vlmcsd/vlmcsd.yml <<-‘EOF’
# docker stack deploy –with-registry-auth -c /data/config/vlmcsd/vlmcsd.yml arno
# https://docs.docker.com/compose/compose-file/compose-versioning/
# https://github.com/compose-spec/compose-spec/blob/master/spec.md
# Compose file format 3.8, Docker Engine release 19.03.0+
version: “3.8”
services:
  vlmcsd:
    image: vlmcsd:latest
    networks:
      – default
    ports:
      – mode: host
        protocol: tcp
        target: 1688
        published: 1688
    deploy:
      labels:
        host: yourhost
      replicas: 1
      restart_policy:
        condition: on-failure

networks:
  default:
    external: true
    name: yournet
EOF

docker stack deploy –with-registry-auth -c /data/config/vlmcsd/vlmcsd.yml arno
docker service ls

# 在 windows 主机
# 在需要激活的Windows 10 系统中
# 需要以管理员的身份执行以下命令
# 在 windows 主机 查看版本
wmic os get caption
# win10专业版用户请依次输入:
# 8G7XN-V7YWC-W8RPC-V73KB-YWRDB
# NC3VT-HKBWX-HG7RB-4MCQR-PPQGT
slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
slmgr /skms your.domain.com
slmgr /ato

# 激活 Office 2016# office16是2016,office15是2013,office14是2010
# Office Professional Plus 2019 NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP
# Visio Professional 2019 9BGNQ-K37YR-RQHF2-38RQ3-7VCBB
# Project Professional 2019 B4NPR-3FKK7-T2MBV-FRQ4W-PKD2B
cd “C:\Program Files\Microsoft Office\Office16”
cscript ospp.vbs /inpkey:NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP
cscript ospp.vbs /sethst:your.domain.com
cscript ospp.vbs /act

使用 docker 部署 vlmcsd, 激活 Windows、Office》有2个想法

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注