Code Monkey home page Code Monkey logo

sagdevops-cc-server's Introduction

Command Central server setup

This project automates Command Central setup

Requirements

To get started fork this project as you will need to customize it.

Then run git submodule initialization procedure to pull antcc library

git submodule init
git submodule update

Verify that your antcc folder is not empty.

How to bootstrap Command Central server

Download the latest Command Central bootstrap installer from Empower and save it under user's ~/Downloads folder.

Edit bootstrap/default.properties and uncomment the following property

accept.license=true

IMPORTANT: By setting accept.license=true property you are accepting End User License Agreement

Make sure the name of the installer property matches the name of the installer file that you downloaded

Review and customize other properties as needed.

Run bootstrap process

ant boot

Open Command Central Web UI at the URL printed at the end of the bootsrap process.

Verify client connectivity to the Command Central server.

ant waitcc

How to apply default configuration

Default configuration includes:

  • All public master repositories for products and fixes
  • Tuneup parameters for Command Central server

You will need Empower credentials with permissions to download products and fixes.

Edit environments/default/env.properties file as set the following properties

  • empower.username=YOUR_EMPOWER_USERNAME
  • empower.password=YOUR_PASSWORD

Run configuration task

Add products images under images/products Add fix images under images/fixes Add license keys under licenses//

ant up

Verify successful setup by running tests

ant test

IMPORTANT: Ensure your setup runs cleanly end-to-end on a local machine.

ant uninstall boot up test 

Commit your changes. Now you can run this project on any other machine.

  • Add custom images

Building Docker image with customized Command Central server

Before you start ensure you have installed Docker

To build customized image for Command Central

docker-compose build cc

Successful execution will end with something like this

BUILD SUCCESSFUL
Total time: 1 minute 21 seconds
 ---> d17f77f1cfcb
Removing intermediate container 6ab350c69242
Successfully built d17f77f1cfcb
Creating sagdevopsccserver_cc_1

Run

docker-compose up -d cc

Open https://localhost:8091/

To verify successful build run:

docker-compose run --rm test 

NOTE: it may take few minutes to complete, depending on the network speed

The successful result would look like this

[au:antunit] Target: test-repos-fixes-listing took 1.082 sec
[au:antunit] Target: test-client took 0.181 sec
[au:antunit] Target: test-repos-prods took 1.057 sec
[au:antunit] Target: test-repos-prods-listing took 111.189 sec
[au:antunit] Target: test-repos-fixes took 1.065 sec

BUILD SUCCESSFUL
Total time: 1 minute 56 seconds

To cleanup running containers run:

docker-compose down

Now you can use the docker image you've built in any other project

docker run --name mycc -d -p 8091:8091 mycc:9.12

sagdevops-cc-server's People

Watchers

 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.