Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Table of Contents

...

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
languagebash
themeMidnight
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
nameget_rackhd_release_from_src.sh
height250

...

1. clone all RackHD repos, then go into each on them:
Code Block
languagebash
themeMidnight
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
languagebash
themeMidnight
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
languagetext
themeMidnight
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
languagebash
themeEmacsDJango
titleGet 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
languagebash
themeEmacsDJango
titleGet 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.

...