-#!/bin/bash
-# SPDX-License-Identifier: EPL-1.0
-##############################################################################
-# Copyright (c) 2017 The Linux Foundation and others.
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-##############################################################################
-
+##
+# Gerrit
+##
#GERRIT_INIT_ARGS=" \
# --install-plugin=download-commands \
# --install-plugin=commit-message-length-validator \
# --install-plugin=replication \
# --install-plugin=delete-project \
# "
-
WEBURL=http://gerrit.localhost
#DATABASE_TYPE=postgresql
AUTH_TYPE=LDAP
LDAP_GROUPMEMBERPATTERN=(member=${dn})
LDAP_LOCALUSERNAMETOLOWERCASE=true
-# nginx-proxy
-VIRTUAL_HOST=gerrit.localhost
-VIRTUAL_PORT=8080
+##
+# Jenkins
+##
+JAVA_OPTS="-Djenkins.install.runSetupWizard=false"
+JENKINS_OPTS=""
+JENKINS_ADMIN_USER=admin
+JENKINS_ADMIN_PASSWORD=password
+
+##
+# Postgres
+##
+POSTGRES_USER=gerrit2
+POSTGRES_PASSWORD=gerrit
+POSTGRES_DB=reviewdb
+
+##
+# OpenLDAP
+##
+LDAP_ORGANISATION=Test Org
+LDAP_DOMAIN=example.org
+# Only set this if you want it different from the LDAP_DOMAIN
+LDAP_BASE_DN=dc=example,dc=org
+LDAP_READONLY_USER=true
+LDAP_READONLY_USER_USERNAME=readonly
+LDAP_READONLY_USER_PASSWORD=readonly
+LDAP_ADMIN_PASSWORD=admin
+LDAP_TLS=false
+LDAP_TLS_ENFORCE=false
+LDAP_REMOVE_CONFIG_AFTER_SETUP=false
+++ /dev/null
-#!/bin/bash
-# SPDX-License-Identifier: EPL-1.0
-##############################################################################
-# Copyright (c) 2017 The Linux Foundation and others.
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-##############################################################################
-JAVA_OPTS="-Djenkins.install.runSetupWizard=false"
-JENKINS_OPTS=""
-
-JENKINS_ADMIN_USER=admin
-JENKINS_ADMIN_PASSWORD=password
-
-# nginx-proxy
-VIRTUAL_HOST=jenkins.localhost
-VIRTUAL_PORT=8080
+++ /dev/null
-#!/bin/bash
-# SPDX-License-Identifier: EPL-1.0
-##############################################################################
-# Copyright (c) 2017 The Linux Foundation and others.
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-##############################################################################
-LDAP_ORGANISATION=Test Org
-LDAP_DOMAIN=example.org
-# Only set this if you want it different from the LDAP_DOMAIN
-LDAP_BASE_DN=dc=example,dc=org
-
-LDAP_READONLY_USER=true
-LDAP_READONLY_USER_USERNAME=readonly
-LDAP_READONLY_USER_PASSWORD=readonly
-
-LDAP_ADMIN_PASSWORD=admin
-
-LDAP_TLS=false
-LDAP_TLS_ENFORCE=false
-
-LDAP_REMOVE_CONFIG_AFTER_SETUP=false
+++ /dev/null
-#!/bin/bash
-# SPDX-License-Identifier: EPL-1.0
-##############################################################################
-# Copyright (c) 2017 The Linux Foundation and others.
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-##############################################################################
-POSTGRES_USER=gerrit2
-POSTGRES_PASSWORD=gerrit
-POSTGRES_DB=reviewdb
ldap:
image: osixia/openldap:latest
container_name: releng-ldap
- env_file: config/ldap.env
+ env_file: config.env
command: "--loglevel debug --copy-service"
volumes:
- ./config/ldap/bootstrap/groups.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/50-groups.ldif
jenkins:
build: ./jenkins
container_name: releng-jenkins
- env_file: config/jenkins.env
+ env_file: config.env
+ environment:
+ - VIRTUAL_HOST=jenkins.localhost
+ - VIRTUAL_PORT=8080
volumes:
- jenkins:/var/jenkins_home
expose:
gerrit:
image: openfrontier/gerrit:latest
container_name: releng-gerrit
- env_file: config/gerrit.env
+ env_file: config.env
+ environment:
+ - VIRTUAL_HOST=gerrit.localhost
+ - VIRTUAL_PORT=8080
volumes:
- gerrit:/var/gerrit/review_site
expose:
- nginx
postgres:
image: postgres:latest
- env_file: config/postgres.env
+ env_file: config.env
expose:
- "5432"
nginx: