Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 12, 2024. It is now read-only.
/devops-composePublic archive

DevOps tools on Docker Compose

NotificationsYou must be signed in to change notification settings

int128/devops-compose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A compose of following Docker containers:

  • Crowd
  • JIRA software
  • Confluence
  • GitBucket
  • Jenkins
  • Nexus
  • SonarQube
  • Mattermost
  • ownCloud
  • OpenLDAP

Getting Started

Create the following stack.

ComponentNote
RDSStores databases. Recommeded for easy backup and migration.
EBS#1Stores/var/lib/docker.
EBS#2Stores persistent volumes. Recommeded for easy backup and migration.
EC2-
ACMProvides a SSL certificate.
ALBProvides a SSL termination.
Route53-

RDS database

Create a PostgreSQL instance.It is recommended to use managed services such as Amazon RDS or Google Cloud SQL for maintenancebility reason.MySQL is available and works as well butPostgreSQL is recommended for JIRA.

Initialize databases and users by executinginit-postgresql.sql.

EC2 Instance

Create following EC2 instance and EBS volumes:

  • EC2 instance
  • EBS volume attached to the instance on/var/lib/docker
  • EBS volume attached to the instance on/persistent_volumes

Connect to the instance and do followings:

# Configure fstabecho'/dev/xvdb /var/lib/docker ext4 defaults,nofail 0 2'| sudo tee -a /etc/fstabecho'/dev/xvdc /persistent_volumes ext4 defaults,nofail 0 2'| sudo tee -a /etc/fstab# Create swap spacesudo fallocate -l 4G /swapfilesudo chmod 600 /swapfilesudo mkswap /swapfilesudo swapon /swapfileecho'/swapfile swap swap defaults 0 0'| sudo tee -a /etc/fstab# Install Docker Composesudo yum install -y dockersudo curl -L -o /usr/local/bin/docker-compose https://github.com/docker/compose/releases/download/1.12.0/docker-compose-Linux-x86_64sudo chmod +x /usr/local/bin/docker-compose# Make sure Docker service is runningsudo docker versionsudo docker-compose version

Run containers. This may take a few minutes.

cd /persistent_volumesgit clone https://github.com/int128/devops-compose.gitcd /persistent_volumes/devops-compose# Environment specific valuesecho'DATABASE_HOST=xxxxx.xxxxx.rds.amazonaws.com'>> .envecho'REVERSE_PROXY_DOMAIN_NAME=example.com'>> .envecho'PERSISTENT_VOLUMES_ROOT=/persistent_volumes'>> .envdocker-compose builddocker-compose up -d

ALB, Route53 and ACM

Request a certificate for a wildcard domain on ACM.

Create an ALB and target group for the instance.

Create a wildcard record on the hosted zone.

A *.example.com. <ELB endpoint>.

Configure auto launch

sudo ln -s /persistent_volumes/devops-compose/init-lsb.sh /etc/init.d/devops-composesudo chkconfig --add devops-compose

Setup DevOps tools

Openhttps://devops.example.com (concatenatedevops and the domain).

Setup Crowd

Open Crowd and configure the database connection.

  • Database server: Hostname of the database instance
  • Type: PostgreSQL
  • Database name:crowd
  • User:crowd
  • Password:crowd

Add the LDAP directory.

  • URL:ldap://ldap:389/
  • Base DN:dc=example,dc=org
  • Username:cn=admin,dc=example,dc=org
  • Password:admin

Setup JIRA

Open JIRA and configure the database connection.

  • Database server: Hostname of the database instance
  • Type: PostgreSQL
  • Database name:jira
  • User:jira
  • Password:jira

Add the Crowd server.

Setup Confluence

Open Confluence and configure the database connection.

  • Database server: Hostname of the database instance
  • Type: PostgreSQL
  • Database name:confluence
  • User:confluence
  • Password:confluence

Add the Crowd server.

Setup Jenkins

Get the initial admin password by following command:

dockerexec devopscompose_jenkins_1 cat /var/jenkins_home/secrets/initialAdminPassword

Open Jenkins and configure LDAP authentication.

  • Server:ldap
  • Root DN:dc=example,dc=org
  • User search base: (empty)
  • User search filter:cn={0}
  • Group search base: (empty)
  • Group search filter:cn={0}
  • Group membership: Search for LDAP groups containing user, filter:uniqueMember={0}
  • Manager DN:cn=admin,dc=example,dc=org
  • Manager Password:admin
  • Name attribute:displayname (default)
  • Mail attribute:mail (default)

Setup GitBucket

Open GitBucket and configure LDAP authentication.

  • LDAP server:ldap
  • Admin DN:cn=admin,dc=example,dc=org withadmin
  • Base DN:dc=example,dc=org
  • User attribute:cn
  • Name attribute:displayname
  • Mail attribute:mail

Setup Nexus

Open Nexus and configure LDAP authentication.

  • LDAP server:ldap://ldap:389
  • Search base:dc=example,dc=org
  • Username:cn=admin,dc=example,dc=org
  • Password:admin
  • Configuration template: Generic Ldap Server
  • Object class:inetOrgPerson (default)
  • User ID attribute:cn
  • Name attribute:displayname
  • Mail attribute:mail
  • Group type: Dynamic
  • Group member of attribute:memberOf (default)

Setup SonarQube

SonarQube does not support LDAP authentication.

Setup Mattermost

Mattermost (Community Edition) does not support LDAP authentication.Configure a mail service such as AWS SES and use the email sign up.

ownCloud

Open ownCloud and configure LDAP authentication.

  • LDAP server:ldap:389
  • Admin DN:cn=admin,dc=example,dc=org withadmin
  • Base DN:dc=example,dc=org

Contribution

This is an open source software licensed under Apache-2.0.Feel free to open issues or pull requests.

Releases

No releases published

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp