Giter VIP home page Giter VIP logo

onedaydevops's Introduction

[TOC]

OneDayDevOps

Build a DevOps platform in one day using open source components

Blog: OneDayDevOps: One click deploy a DevOps platform

Get started

Install Git

yum install git -y
git --version

Clone OneDayDevOps

Run below commands on an empty directory:

git clone https://github.com/cookcodeblog/OneDayDevOps.git
cd OneDayDevOps
find . -name '*.sh' -exec chmod u+x {} \;

Use Aliyun Yum repo

./components/aliyun/use_aliyun_yum_repo.sh

Install tools

Install some basic tools, e.g. wget, vim, etc.

./components/tools/install_tools.sh

Increase ulimit

./components/utils/increase_ulimit.sh

Set ntp time sync

# Recommend to set ntp time sync with chrony
./components/timedate/sync_timedate_chrony.sh

# Or set ntp time sync with ntp
./components/timedate/sync_timedate_ntp.sh

Install OpenJDK

Install OpenJDK8:

./components/openjdk/install_openjdk8.sh

Install Jenkins

Make sure OpenJDK8 is installed

Install Jenkins by Jenkins Yum repo:

./components/jenkins/install_jenkins.sh

Or install Jenkins by Jenkins mirror:

./components/jenkins/install_jenkins_rpm.sh

Install Build Tools

Install Gradle

# Install default Gradle (Gradle5.4)
./components/gradle/install_gradle.sh

# Install specific Gradle version
# Example: ./components/gradle/install_gradle.sh 4.6
./components/gradle/install_gradle.sh <version>

Install Maven

# Install default Maven (Maven3.6.0)
./components/maven/install_maven.sh

# Install specific Maven version
# ./components/maven/install_maven.sh 3.5.0
./components/maven/install_maven.sh <version>

Install GitLab CE

Install GitLab CE with HTTP:

# ./components/gitlab/install_gitlab_ce_http.sh gitlab.xdevops.cn
./components/gitlab/install_gitlab_ce_http.sh <gitlab_domain>

Install GitLab CE with HTTPS using manual SSL cert:

# ./components/gitlab/install_gitlab_ce_https.sh gitlab.xdevops.cn "/C=CN/ST=Guangdong/L=Guangzhou/O=xdevops/OU=xdevops/CN=gitlab.xdevops.cn"
./components/gitlab/install_gitlab_ce_https.sh <gitlab_domain> <ssl_cert_subj>

Configure HTTPS for an existing HTTP GitLab CE using manual SSL cert:

# Set domain name mapping in host file if necessary
# echo "$(./components/utils/get_ip.sh) gitlab.xdevops.cn" >> /etc/hosts
echo "$(./components/utils/get_ip.sh) <gitlab_domain>" >> /etc/hosts

# ./components/gitlab/configure_gitlab_ce_manual_ssl.sh gitlab.xdevops.cn "/C=CN/ST=Guangdong/L=Guangzhou/O=xdevops/OU=xdevops/CN=gitlab.xdevops.cn"
./components/gitlab/configure_gitlab_ce_manual_ssl.sh <gitlab_domain> <ssl_cert_subj>

Even throuh GitLab integrate Letsencrypt natively, but I have encountered a Letsencrypt error when run gitlab-ctl reconfigure and haven't resolved it, so I have to use manual SSL cert at this moment.

Install Docker CE

Install Docker latest version:

./components/docker/install_docker_ce.sh

Install a Docker specific version:

# Example: ./components/docker/install_docker_ce.sh 18.03.0
./components/docker/install_docker_ce.sh <version>

Install Docker 17.03.2 (older version):

./components/docker/install_docker_ce_17_03_2.sh

Install Docker Compose

# Install default Docker Compose (Docker Compose 1.24.0)
./components/docker-compose/install_docker_compose.sh

# Install specific Docker Compose version
# ./components/docker-compose/install_docker_compose.sh 1.24.0
./components/docker-compose/install_docker_compose.sh <version>

Install Harbor

# Install default Harbor (Harbor 1.8.0)
./components/harbor/install_harbor.sh

# Install specific Harbor version,e.g Harbor 1.7.5
# ./components/harbor/install_harbor.sh 1.7 5
./components/harbor/install_harbor.sh <major_version> <minor_version>

Install Nexus

# Install default Nexus (nexus-3.16.1-02)
./components/nexus/install_nexus.sh

# Install specific Nexus version
# ./components/nexus/install_nexus.sh 3.16.1-02
./components/nexus/install_nexus.sh <version>

Install Redmine

./components/redmine/install_redmine.sh

Install SonarQube

./components/sonarqube/install_sonarqube.sh

Install GitLab with Docker Compose

./components/gitlab-docker/install_gitlab.sh

onedaydevops's People

Contributors

cookcodeblog avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.