- Shell 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .dockerfile | ||
| deploy-xdash.sh | ||
| docker_build_ldgerdomain.sh | ||
| jenkins.txt | ||
| README.md | ||
| setup_14.x | ||
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