更新node源

This commit is contained in:
KennyLee 2019-05-16 15:05:43 +08:00
parent 447d5155c1
commit 15a9a3be43
4 changed files with 48 additions and 46 deletions

View File

@ -2,10 +2,9 @@
# NAME: kennylee26/gitbook # NAME: kennylee26/gitbook
# Pull base image. # Pull base image.
FROM index.alauda.cn/kenny/node FROM registry.cn-hangzhou.aliyuncs.com/kennylee/node
#FROM kennylee26/node:5.1.1
ENV GIT_BOOK_VERSION="2.6.4" ENV GIT_BOOK_VERSION="2.6.9"
ENV BOOKDIR /gitbook ENV BOOKDIR /gitbook
# Basic Requirements # Basic Requirements
@ -19,7 +18,7 @@ RUN apt-get install -y fonts-wqy-microhei
RUN cnpm install gitbook-cli -g && \ RUN cnpm install gitbook-cli -g && \
cnpm install svgexport -g cnpm install svgexport -g
RUN gitbook versions:install $GIT_BOOK_VERSION RUN gitbook versions:install $GIT_BOOK_VERSION
# install recommend plugins # install recommend plugins

View File

@ -1,16 +1,8 @@
FROM node FROM node:8.16-jessie
MAINTAINER kennylee26 <kennylee26@gmail.com> MAINTAINER kennylee26 <kennylee26@gmail.com>
RUN echo "deb http://mirrors.163.com/debian/ jessie main non-free contrib\n\ # COPY jessie.sources.list /etc/apt/sources.list
deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib\n\
deb http://mirrors.163.com/debian/ jessie-backports main non-free contrib\n\
deb-src http://mirrors.163.com/debian/ jessie main non-free contrib\n\
deb-src http://mirrors.163.com/debian/ jessie-updates main non-free contrib\n\
deb-src http://mirrors.163.com/debian/ jessie-backports main non-free contrib\n\
deb http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib\n\
deb-src http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib\n\
deb http://ftp.cn.debian.org/debian jessie main" > /etc/apt/sources.list
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y curl git unzip vim wget && \ apt-get install -y curl git unzip vim wget && \

View File

@ -1,31 +1,42 @@
docker_auth: version: '3'
image: cesanta/docker_auth services:
container_name: 'docker_auth' docker_auth:
ports: image: cesanta/docker_auth
- "5001:5001" container_name: 'docker_auth'
volumes: ports:
- /home/tkadmin/kennylee/compose/registry/auth_server/config:/config:ro - "5001:5001"
- /var/log/docker_auth:/logs volumes:
- /home/tkadmin/kennylee/compose/registry/auth_server/ssl:/ssl - ./data/docker_auth/auth_server/config:/config:ro
command: /config/auth_config.yml - ./data/log/docker_auth:/logs
restart: always - ./data/docker_auth/auth_server/ssl:/ssl
command: /config/auth_config.yml
timekey_registry: restart: on-failure
image: index.alauda.cn/kenny/docker-registry-v2-1-1 logging:
container_name: 'timekey_registry' driver: 'json-file'
ports: options:
- 5000:5000 max-size: '30m'
volumes: max-file: '1'
- /home/tkadmin/kennylee/compose/registry/auth_server/ssl:/ssl registry:
- /opt/data/registry2:/var/lib/registry image: registry.cn-hangzhou.aliyuncs.com/kennylee/registry
restart: always container_name: 'docker_registry'
environment: ports:
- REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/var/lib/registry - 5000:5000
- REGISTRY_AUTH=token volumes:
- REGISTRY_AUTH_TOKEN_REALM=https://192.168.1.96:5001/auth - ./data/docker_auth/auth_server/ssl:/ssl
- REGISTRY_AUTH_TOKEN_SERVICE="Docker registry" - ./data/registry2:/var/lib/registry
- REGISTRY_AUTH_TOKEN_ISSUER="Auth Service" restart: on-failure
- REGISTRY_AUTH_TOKEN_ROOTCERTBUNDLE=/ssl/server.pem environment:
- REGISTRY_HTTP_TLS_CERTIFICATE=/ssl/server.pem - REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/var/lib/registry
- REGISTRY_HTTP_TLS_KEY=/ssl/server.key - REGISTRY_AUTH=token
- REGISTRY_AUTH_TOKEN_REALM=https://192.168.1.100:5001/auth
- REGISTRY_AUTH_TOKEN_SERVICE="Docker registry"
- REGISTRY_AUTH_TOKEN_ISSUER="Auth Service"
- REGISTRY_AUTH_TOKEN_ROOTCERTBUNDLE=/ssl/server.pem
- REGISTRY_HTTP_TLS_CERTIFICATE=/ssl/server.pem
- REGISTRY_HTTP_TLS_KEY=/ssl/server.key
logging:
driver: 'json-file'
options:
max-size: '30m'
max-file: '1'

View File

@ -6,6 +6,6 @@ services:
ports: ports:
- 5000:5000 - 5000:5000
volumes: volumes:
- /home/data/registry:/var/lib/registry - ./data/registry:/var/lib/registry
restart: unless-stopped restart: on-failure