mirror of
https://gitee.com/kennylee/docker.git
synced 2024-11-30 02:48:27 +08:00
更新node源
This commit is contained in:
parent
447d5155c1
commit
15a9a3be43
@ -2,10 +2,9 @@
|
||||
# NAME: kennylee26/gitbook
|
||||
|
||||
# Pull base image.
|
||||
FROM index.alauda.cn/kenny/node
|
||||
#FROM kennylee26/node:5.1.1
|
||||
FROM registry.cn-hangzhou.aliyuncs.com/kennylee/node
|
||||
|
||||
ENV GIT_BOOK_VERSION="2.6.4"
|
||||
ENV GIT_BOOK_VERSION="2.6.9"
|
||||
ENV BOOKDIR /gitbook
|
||||
|
||||
# Basic Requirements
|
||||
@ -19,7 +18,7 @@ RUN apt-get install -y fonts-wqy-microhei
|
||||
RUN cnpm install gitbook-cli -g && \
|
||||
cnpm install svgexport -g
|
||||
|
||||
RUN gitbook versions:install $GIT_BOOK_VERSION
|
||||
RUN gitbook versions:install $GIT_BOOK_VERSION
|
||||
|
||||
# install recommend plugins
|
||||
|
||||
|
@ -1,16 +1,8 @@
|
||||
FROM node
|
||||
FROM node:8.16-jessie
|
||||
|
||||
MAINTAINER kennylee26 <kennylee26@gmail.com>
|
||||
|
||||
RUN echo "deb http://mirrors.163.com/debian/ jessie main non-free contrib\n\
|
||||
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
|
||||
# COPY jessie.sources.list /etc/apt/sources.list
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y curl git unzip vim wget && \
|
||||
|
@ -1,31 +1,42 @@
|
||||
docker_auth:
|
||||
image: cesanta/docker_auth
|
||||
container_name: 'docker_auth'
|
||||
ports:
|
||||
- "5001:5001"
|
||||
volumes:
|
||||
- /home/tkadmin/kennylee/compose/registry/auth_server/config:/config:ro
|
||||
- /var/log/docker_auth:/logs
|
||||
- /home/tkadmin/kennylee/compose/registry/auth_server/ssl:/ssl
|
||||
command: /config/auth_config.yml
|
||||
restart: always
|
||||
|
||||
timekey_registry:
|
||||
image: index.alauda.cn/kenny/docker-registry-v2-1-1
|
||||
container_name: 'timekey_registry'
|
||||
ports:
|
||||
- 5000:5000
|
||||
volumes:
|
||||
- /home/tkadmin/kennylee/compose/registry/auth_server/ssl:/ssl
|
||||
- /opt/data/registry2:/var/lib/registry
|
||||
restart: always
|
||||
environment:
|
||||
- REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/var/lib/registry
|
||||
- REGISTRY_AUTH=token
|
||||
- REGISTRY_AUTH_TOKEN_REALM=https://192.168.1.96: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
|
||||
version: '3'
|
||||
services:
|
||||
docker_auth:
|
||||
image: cesanta/docker_auth
|
||||
container_name: 'docker_auth'
|
||||
ports:
|
||||
- "5001:5001"
|
||||
volumes:
|
||||
- ./data/docker_auth/auth_server/config:/config:ro
|
||||
- ./data/log/docker_auth:/logs
|
||||
- ./data/docker_auth/auth_server/ssl:/ssl
|
||||
command: /config/auth_config.yml
|
||||
restart: on-failure
|
||||
logging:
|
||||
driver: 'json-file'
|
||||
options:
|
||||
max-size: '30m'
|
||||
max-file: '1'
|
||||
registry:
|
||||
image: registry.cn-hangzhou.aliyuncs.com/kennylee/registry
|
||||
container_name: 'docker_registry'
|
||||
ports:
|
||||
- 5000:5000
|
||||
volumes:
|
||||
- ./data/docker_auth/auth_server/ssl:/ssl
|
||||
- ./data/registry2:/var/lib/registry
|
||||
restart: on-failure
|
||||
environment:
|
||||
- REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/var/lib/registry
|
||||
- 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'
|
||||
|
||||
|
@ -6,6 +6,6 @@ services:
|
||||
ports:
|
||||
- 5000:5000
|
||||
volumes:
|
||||
- /home/data/registry:/var/lib/registry
|
||||
restart: unless-stopped
|
||||
- ./data/registry:/var/lib/registry
|
||||
restart: on-failure
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user