forked from openfrontier/ci
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetupContainer.sh
More file actions
executable file
·36 lines (26 loc) · 1.27 KB
/
setupContainer.sh
File metadata and controls
executable file
·36 lines (26 loc) · 1.27 KB
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
#!/bin/bash
BASEDIR=$(readlink -f $(dirname $0))
SCRIPT_DIR=${BASEDIR}/img-scripts
set -e
# Add common variables.
echo ">>>> Import common variables."
source ${BASEDIR}/config
source ${BASEDIR}/config.default
#Create administrator in Gerrit.
echo ">>>> Setup Gerrit."
#${SCRIPT_DIR}/gerrit-docker/addGerritUser.sh ${GERRIT_WEBURL} ${GERRIT_ADMIN_UID} ${GERRIT_ADMIN_PWD} ${SSH_KEY_PATH}
#Integrate Jenkins with Gerrit.
echo ">>>> Setup Jenkins."
${SCRIPT_DIR}/jenkins-docker/setupJenkins.sh ${GERRIT_ADMIN_UID} ${GERRIT_ADMIN_EMAIL} ${SSH_KEY_PATH} ${LDAP_ACCOUNTBASE} ${JENKINS_NAME} ${GERRIT_NAME} ${GERRIT_SSH_HOST} ${GERRIT_WEBURL} ${JENKINS_WEBURL} ${LDAP_NAME} ${LDAP_VOLUME} ${SLAPD_DOMAIN} ${NEXUS_REPO}
#Integrate Redmine with Openldap and import init data.
echo ">>>> Setup Redmine."
${SCRIPT_DIR}/redmine-docker/setupRedmine.sh
# Add Nexus configuration files and do general Nexus setup
echo ">>>> Setup Nexus."
${SCRIPT_DIR}/nexus-docker/setupNexus.sh ${LDAP_NAME} ${SLAPD_DOMAIN} ${LDAP_ACCOUNTBASE} ${NEXUS_NAME}
#Integrate DokuWiki with Openldap and import init data.
echo ">>>> Setup DokuWiki."
${SCRIPT_DIR}/dokuwiki-docker/setupDokuWiki.sh ${DOKUWIKI_NAME} ${LDAP_NAME} ${LDAP_ACCOUNTBASE}
#Restart Nginx proxy.
echo ">>>> Restart Nginx proxy."
docker restart ${NGINX_NAME}