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

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A compose of following Docker containers:

  • JIRA software
  • Confluence
  • GitBucket
  • Jenkins
  • Artifactory
  • SonarQube
  • Mattermost
  • ownCloud
  • PostgreSQL
  • LDAP

Provisioning

Run containers on Docker Compose.This may take a few minutes.

# Wildcard DNSecho'REVERSE_PROXY_DOMAIN_NAME=192.168.1.2.xip.io'> .env# Custom domainecho'REVERSE_PROXY_DOMAIN_NAME=example.com'> .envdocker-compose builddocker-compose up -d

CoreOS

Enough swap space and Docker Compose are required.

#!/bin/bash -xecat> /etc/systemd/system/swap.service<<EOF[Service]Type=oneshotExecStartPre=-/usr/bin/rm -f /swapfileExecStartPre=/usr/bin/touch /swapfileExecStartPre=/usr/bin/fallocate -l 4G /swapfileExecStartPre=/usr/bin/chmod 600 /swapfileExecStartPre=/usr/sbin/mkswap /swapfileExecStartPre=/usr/sbin/sysctl vm.swappiness=10ExecStart=/sbin/swapon /swapfileExecStop=/sbin/swapoff /swapfileExecStopPost=-/usr/bin/rm -f /swapfileRemainAfterExit=true[Install]WantedBy=multi-user.targetEOFsystemctlenable --now /etc/systemd/system/swap.servicemkdir -p /opt/bincurl -L -o /opt/bin/docker-compose https://github.com/docker/compose/releases/download/1.12.0/docker-compose-Linux-x86_64chmod +x /opt/bin/docker-compose

Custom domain

Create a wildcard record on the DNS service.

A *.example.com. 192.168.1.2.

Setup

Openhttp://devops.example.com (concatenatedevops and domain name).

Setup JIRA

Open JIRA and configure the database connection.

  • Database server:db
  • Type: PostgreSQL
  • Database name:jira
  • User:jira
  • Password:jira

Configure LDAP authentication and create a user.

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

Setup Confluence

Open Confluence and configure the database connection.

  • Database server:db
  • Type: PostgreSQL
  • Database name:confluence
  • User:confluence
  • Password:confluence

Configure an application link to JIRA.

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.

  • LDAP server:ldap
  • Admin DN:cn=admin,dc=example,dc=com withadmin
  • Root DN:dc=example,dc=com
  • Base DN: (empty)
  • User attribute:cn={0}
  • 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=com withadmin
  • Base DN:dc=example,dc=com
  • User attribute:cn
  • Name attribute:displayname
  • Mail attribute:mail

Setup Artifactory

Open Artifactory and configure LDAP authentication.

  • LDAP server:ldap://ldap/dc=example,dc=com
  • User DN:cn={0}
  • Mail attribute:mail
  • Search filter:(*)
  • Search base:dc=example,dc=com
  • Manage DN:cn=admin,dc=example,dc=com withadmin

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=com withadmin
  • Base DN:dc=example,dc=com

Register init script

We provide the init script for LSB.Register as follows:

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

Backup and Restore

It may be best to backup and restore volumes under/var/lib/docker/volumes.

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