...
1.0.0 release
Prerequisite :
- Install NodeJS 4.0 or upper
How to :
To clone and checkout to 1.0.0 release code. you can use this script in attachment or follow below steps.
Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
|
sudo ./get_rackhd_release_from_src.sh 1.0.0-rc |
above command line will clone and build local code , according to git tag "release/1.0.0-rc". then using PM2 to start services.
you can change the tag name from 1.0.0 -rc to other tag.
View file |
---|
name | get_rackhd_release_from_src.sh |
---|
height | 250 |
---|
|
...
1. clone all RackHD repos, then go into each on them:
Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
|
git fetch --all --tags
git checkout 1.0.0 # or 1.0.0-rc , depends on which tag you want to checkout
npm install --production |
2. link the on-core/on-tasks repo, to other repo's node_modules
Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
|
cd $repo/node_modules
rm on-core -rf
rm on-tasks -rf
ln -s ../../on-core on-core
ln -s ../../on-tasks on-tasks |
...
then run #sudo pm2 start pm2.yml
Code Block |
---|
language | text |
---|
theme | Midnight |
---|
|
apps:
- script: index.js
name: on-taskgraph
cwd: on-taskgraph
- script: index.js
name: on-http
cwd: on-http
- script: index.js
name: on-dhcp
cwd: on-dhcp-proxy
- script: index.js
name: on-syslog
cwd: on-syslog
- script: index.js
name: on-tftp
cwd: on-tftp |
...
Code Block |
---|
language | bash |
---|
theme | EmacsDJango |
---|
title | Get docker images |
---|
|
git clone https://github.com/RackHD/RackHD.git
cd RackHD/docker
sudo TAG=1.0.0 docker-compose pull # Download pre-built docker images.
sudo TAG=1.0.0 docker-compose up # Create containers and Run RackHD. |
...
Code Block |
---|
language | bash |
---|
theme | EmacsDJango |
---|
title | Get latest nightly build |
---|
|
git clone https://github.com/RackHD/RackHD.git
cd RackHD/docker
sudo TAG=nightly docker-compose pull # Download pre-built docker images.
sudo TAG=nightly docker-compose up # Create containers and Run RackHD. |
...