Merge pull request #541 from reasonerjt/master

the attribute name 'production' is misleading
This commit is contained in:
kun wang 2016-07-14 14:37:12 +08:00 committed by GitHub
commit 4bb6febf05
4 changed files with 11 additions and 6 deletions

View File

@ -2,12 +2,14 @@ version: '2'
services: services:
log: log:
build: ./log/ build: ./log/
restart: always
volumes: volumes:
- /var/log/harbor/:/var/log/docker/ - /var/log/harbor/:/var/log/docker/
ports: ports:
- 1514:514 - 1514:514
registry: registry:
image: library/registry:2.4.0 image: library/registry:2.4.0
restart: always
volumes: volumes:
- /data/registry:/storage - /data/registry:/storage
- ./config/registry/:/etc/registry/ - ./config/registry/:/etc/registry/
@ -26,6 +28,7 @@ services:
tag: "registry" tag: "registry"
mysql: mysql:
build: ./db/ build: ./db/
restart: always
volumes: volumes:
- /data/database:/var/lib/mysql - /data/database:/var/lib/mysql
env_file: env_file:
@ -43,6 +46,7 @@ services:
dockerfile: Dockerfile.ui dockerfile: Dockerfile.ui
env_file: env_file:
- ./config/ui/env - ./config/ui/env
restart: always
volumes: volumes:
- ./config/ui/app.conf:/etc/ui/app.conf - ./config/ui/app.conf:/etc/ui/app.conf
- ./config/ui/private_key.pem:/etc/ui/private_key.pem - ./config/ui/private_key.pem:/etc/ui/private_key.pem
@ -59,6 +63,7 @@ services:
dockerfile: Dockerfile.job dockerfile: Dockerfile.job
env_file: env_file:
- ./config/jobservice/env - ./config/jobservice/env
restart: always
volumes: volumes:
- /data/job_logs:/var/log/jobs - /data/job_logs:/var/log/jobs
- ./config/jobservice/app.conf:/etc/jobservice/app.conf - ./config/jobservice/app.conf:/etc/jobservice/app.conf
@ -71,6 +76,7 @@ services:
tag: "jobservice" tag: "jobservice"
proxy: proxy:
image: library/nginx:1.9 image: library/nginx:1.9
restart: always
volumes: volumes:
- ./config/nginx:/etc/nginx - ./config/nginx:/etc/nginx
ports: ports:

View File

@ -35,8 +35,8 @@ db_password = root123
#Turn on or off the self-registration feature #Turn on or off the self-registration feature
self_registration = on self_registration = on
#Turn on or off the options for production #Turn on or off the options to control UI whether to use compressed js file
production = off use_compressed_js = off
#Number of job workers in job service, default is 3 #Number of job workers in job service, default is 3
max_job_workers = 3 max_job_workers = 3

View File

@ -38,7 +38,7 @@ ldap_url = rcp.get("configuration", "ldap_url")
ldap_basedn = rcp.get("configuration", "ldap_basedn") ldap_basedn = rcp.get("configuration", "ldap_basedn")
db_password = rcp.get("configuration", "db_password") db_password = rcp.get("configuration", "db_password")
self_registration = rcp.get("configuration", "self_registration") self_registration = rcp.get("configuration", "self_registration")
production = rcp.get("configuration", "production") use_compressed_js = rcp.get("configuration", "use_compressed_js")
customize_crt = rcp.get("configuration", "customize_crt") customize_crt = rcp.get("configuration", "customize_crt")
crt_country = rcp.get("configuration", "crt_country") crt_country = rcp.get("configuration", "crt_country")
crt_state = rcp.get("configuration", "crt_state") crt_state = rcp.get("configuration", "crt_state")
@ -99,7 +99,7 @@ render(os.path.join(templates_dir, "ui", "env"),
ldap_url=ldap_url, ldap_url=ldap_url,
ldap_basedn=ldap_basedn, ldap_basedn=ldap_basedn,
self_registration=self_registration, self_registration=self_registration,
production=production, use_compressed_js=use_compressed_js,
ui_secret=ui_secret, ui_secret=ui_secret,
verify_remote_cert=verify_remote_cert) verify_remote_cert=verify_remote_cert)

View File

@ -13,10 +13,9 @@ LDAP_URL=$ldap_url
LDAP_BASE_DN=$ldap_basedn LDAP_BASE_DN=$ldap_basedn
UI_SECRET=$ui_secret UI_SECRET=$ui_secret
SELF_REGISTRATION=$self_registration SELF_REGISTRATION=$self_registration
PRODUCTION=$production PRODUCTION=$use_compressed_js
LOG_LEVEL=debug LOG_LEVEL=debug
GODEBUG=netdns=cgo GODEBUG=netdns=cgo
EXT_ENDPOINT=$ui_url EXT_ENDPOINT=$ui_url
TOKEN_URL=http://ui TOKEN_URL=http://ui
VERIFY_REMOTE_CERT=$verify_remote_cert VERIFY_REMOTE_CERT=$verify_remote_cert
PRODUCTION=$production