/devops

Primary LanguageShell

DevOps Demo

To setup the demo, you will need to run 2 shell scripts.

First, clone this repo to your local disk that will be able to use oc command to access to your OCP server.

Then, changed path to bin folder and run ./init.sh script to initialize the demo environment. This script will create a few OCP projects to represent dev, test, prod environments. A tools project will be created to keep the CI/CD tools such as jenkins, gogs and etc.

Once the demo environments have been provisioned. Make sure all the PODs under the tools project are all ready running without error. Run the ./initDemoData.sh script to initilize the required demo data.

There are some manual steps required before running the initDemoData.sh script. Please run ./initDemoData.sh -h for more details.

Notes

  1. You may want to increase the resource limits for Jenkins and Nexus. Especially Nexus will need minimum 3GB RAM to run properly. These resource limits can be changed from the init.sh script using parameters before provisioning. Allocation of 4GB will be the best for smooth demo experience. With lower memory allocation, Jenkins build will always fail caused by Nexus keep restarting in the background. Higher memory ensure maven/build are cached once the first built has been done, which helps to cut down a lot of build time for all the subsequence builds. If you restarted the POD or server, make sure you have done a first build before the actual demo.
  2. Do a chmod +x init.sh if the script is without execution permission.
  3. Do a chmod +x initDemoData.sh if the script is without execution permission.

To Do

To be updated.

Video

Demo Video

Screen Shots

Projects

Projects

CI/CD Tools

CI/CD Tools

Gogs with nationalparks Sample Source Codes

Gogs

Gogs Git Hooks Settings

Gogs Settings

Nexus3 Repositories

Nexus Repo

Jenkins Console

Jenkins Console

Jenkins Settings

Jenkins Settings

Jenkins User Token

Jenkins User Token

Jenkins Builds

Jenkins Builds

nationalparks Image Build at Dev Environment

Jenkins User Token

Blue Apps is Serving Request

Jenkins User Token

Green Apps is Serving Request

Jenkins User Token