Bring back path to registry settings

This commit is contained in:
Kamil Trzcinski 2016-05-16 17:15:38 -05:00
parent 23d1c45410
commit 89644edc4e
2 changed files with 2 additions and 0 deletions

View file

@ -183,6 +183,7 @@ production: &base
# api_url: http://localhost:5000/
# key: config/registry.key
# issuer: omnibus-certificate
# path: shared/registry
#
# 2. GitLab CI settings

View file

@ -254,6 +254,7 @@ Settings.registry['api_url'] ||= "http://localhost:5000/"
Settings.registry['key'] ||= nil
Settings.registry['issuer'] ||= nil
Settings.registry['host_port'] ||= [Settings.registry['host'], Settings.registry['port']].compact.join(':')
Settings.registry['path'] = File.expand_path(Settings.artifacts['path'] || File.join(Settings.shared['path'], "registry"), Rails.root)
#
# Git LFS