provision custom nodes
Please follow these steps to provision a custom node-
-
clone this project
-
update
config.jsonto have correct values.a.
SHIPPABLE_API_TOKENis your apiToken.b.
FRIENDLY_NAMEis the name of your clusterNode.c.
IS_SHIPPABLE_INITIALIZEDshould be set tofalse, if you want to run the node initialization script yourself. If it is set totrueshippable will run the script for you, but before provisioning the node you have to run the command on your node to create a shippable user and ssh authorization(This command is available in your subscriptions/settings/nodes, click onadd nodeand copy the command).d.
NODE_LOCATIONis the IP of your node.e.
SUBSCRIPTION_IDis theidof subscription for which you want to add this node.f.
NODE_INIT_SCRIPTis the name of script file. It contains the name of OS and docker version. You can check all the supported OS and docker versions here. An example value isUbuntu_16.04_Docker_1.13.sh. -
Install node packages:
sudo npm install -
To provision custom node run
node createCustomNode.js. After this completes, node initialization script will be saved ininitScript.sh. You can run it on your machine to use it as a Shippable node.