ledger domain
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2021-08-05 10:41:33 -07:00
.dockerfile Initial commit, decouple from kitchain-dash/devops 2021-07-13 11:31:49 -07:00
deploy-xdash.sh pass --prune instead of -pn (cosmetic only) 2021-07-13 15:18:15 -07:00
docker_build_ldgerdomain.sh added prune in help 2021-07-13 15:13:38 -07:00
jenkins.txt jt1 2021-07-13 12:25:29 -07:00
README.md Update README.md 2021-08-05 10:39:57 -07:00
setup_14.x Initial commit, decouple from kitchain-dash/devops 2021-07-13 11:31:49 -07:00

LD-dash - dashboard automation

Architecture:

We are running behind Nginx (LB1/LB2). xatp-dash is served within docker images listening on diffrent ports as follows: Dev: 8081 Stage: 8082 Prod: 8083 Nginx terminates SSL and redirects to the appropritae host:port to serve the corresponding verion.

Automation: - work in progress!

A Github commit withh launch a Jenkins job to run tests (todo) A Github PR merge will launch a Jenkinns job that will build a new docker image and will deploy/run on the apropriate host:port (todo)

Biogen-dash hosted urls:

Production: https://dash.biogen.kitchain.org (was https://dash.xatp.org)
Staging: https://stage.dash.biogen.kitchain.org (was https://stage.xatp.org)
Dev: https://dev.dash.biogen.kitchain.org (was https://dev.xatp.org)

LD-dash in Docker

Run:

Version: 0.2.1 [2021-07-13]

Syntax: deploy-xdash.sh [options]

Options:
    -h  [--help]                Print help (this) and exit.
    -n  [--dryrun]              Dry run: Will not make any changes.             [ Default: no]
    -b  [--branch]              Branch to Build                                 [ Default: devops]
    -t  [--tag]                 Tag: Set manual tag                             [ Default: name:version] 
    -r  [--run]                 Run: start container                            [ Default: no]
    -p  [--port  ]              Set listen port. In conjunction with [-r]       [ Default: 8081]
    -V  [--version]             Print deploy-xdash.sh version
   -dv  [--print-dash-version]  Print Dash version and exit.
   -re  [--rename]              Override repo name                              [ Default: use repo name from package.json]

Examples:
    ./deploy-xdash.sh -p 8081 -t devops-0.0.2
    ./deploy-xdash.sh -p 8081 -b devops2 

Build a container manually:

      docker build --pull --rm -f ".dockerfile" -t ledgerdomain/xatp-dash:dev-v0.0.1 .

Directory structure:

   Require tree:
       root/
          |.dockerfile
          |setup_14.x (this is NodeJS 14 setup for apt)
          |_dist/
             | Our dashboard files
             | go here

To obtain 'setup_14.x' Run:

Find other versions of NodeJS: https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions Specific instructions: https://github.com/nodesource/distributions/blob/master/README.md

    wget https://deb.nodesource.com/setup_14.x

Dependencies:

       sudo apt install jq  (json parser)
       sudo apt install docker.io

       NodeJS v14 (and npm):
           sudo apt purge --auto-remove nodejs
           curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash -
           sudo apt-get install -y nodejs npm