-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathconfig.default
executable file
·83 lines (61 loc) · 2.1 KB
/
config.default
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/bin/bash
# Define common variables.
## Suffix of containers' name
SUFFIX=${SUFFIX:-$1}
## Docker network
CI_NETWORK=${CI_NETWORK:-ci-network}
## Openldap container's name.
LDAP_NAME=openldap
LDAP_VOLUME=openldap-volume
## Openldap image's name.
LDAP_IMAGE_NAME=${LDAP_IMAGE_NAME:-openfrontier/openldap}
## Gerrit Openldap configuration
## If there's no existing openldap server.
if [ ${#SLAPD_DOMAIN} -gt 0 -a ${#SLAPD_PASSWORD} -gt 0 ]; then
LDAP_SERVER="${LDAP_NAME}"
LDAP_ACCOUNTBASE="ou=accounts$(echo .${SLAPD_DOMAIN} | sed 's/\./,dc=/g')"
fi
## Gerrit administrator's ssh key
SSH_KEY_PATH=${SSH_KEY_PATH:-~/.ssh/id_rsa}
## Gerrit server and database containers' name
GERRIT_NAME=gerrit${SUFFIX}
GERRIT_VOLUME=gerrit-volume${SUFFIX}
PG_GERRIT_NAME=pg-gerrit${SUFFIX}
## Gerrit access hostname
GERRIT_WEBURL=http://${HOST_NAME}/${GERRIT_NAME}
HTTPD_LISTENURL=proxy-http://*:8080/${GERRIT_NAME}
GERRIT_SSH_HOST=${HOST_NAME}
## Gerrit docker image's name
GERRIT_IMAGE_NAME=${GERRIT_IMAGE_NAME:-openfrontier/gerrit-ci}
## Jenkins container's name
JENKINS_NAME=jenkins${SUFFIX}
JENKINS_VOLUME=jenkins-volume${SUFFIX}
## Jenkins start options
JENKINS_OPTS=--prefix=/${JENKINS_NAME}
## Jenkins docker image's name
JENKINS_IMAGE_NAME=${JENKINS_IMAGE_NAME:-openfrontier/jenkins}
## Jenkins access
JENKINS_WEBURL=http://${HOST_NAME}/${JENKINS_NAME}
## Redmine container's name
REDMINE_NAME=redmine${SUFFIX}
REDMINE_VOLUME=redmine-volume${SUFFIX}
PG_REDMINE_NAME=pg-redmine${SUFFIX}
## Redmine docker image's name
REDMINE_IMAGE_NAME=${REDMINE_IMAGE_NAME:-sameersbn/redmine}
## Nginx docker container's name
NGINX_NAME=proxy
## Nginx docker image's name
NGINX_IMAGE_NAME=${NGINX_IMAGE_NAME:-openfrontier/nginx}
## Nginx file upload limit.
NGINX_MAX_UPLOAD_SIZE=${NGINX_MAX_UPLOAD_SIZE:-200m}
## Default Nexus URL
if [ ${#NEXUS_WEBURL} -gt 0 ]; then
NEXUS_REPO=${NEXUS_WEBURL}/content/groups/public
else
NEXUS_REPO=http://nexus:8081/nexus/content/groups/public
fi
## Nexus container's name.
NEXUS_NAME=nexus
NEXUS_VOLUME=nexus-volume
# Nexue docker image's name.
NEXUS_IMAGE_NAME=${NEXUS_IMAGE_NAME:-openfrontier/nexus}