// 1. As a pre-req for this you need to create an account on docker hub. Note the user name and password // Prepare the shell scripts based on deployconfig.json for each service (system and app) node prep.js -u phanipc -f ./deployconfig.json -d ./tmp -c -s // Note -u is the user name for dockerhub account // -f points to the deployconfig.json path (By customizing this script, you can change the deployment of the application services) // -d path to the directory where the various deployment scripts get written to // -c option will cleanup the scripts dir pointed to by -d before running th script. Always recommended. // This produces three sets of files in the directory pointed to by -d option above (./tmp in this case) // For preparing docker images ddprep.sh // For running docker locally dd*.sh, dd.yml // For deploying to aws, if the machines are listed in the deployconfig.json // ubu.yml, ubusetupmachines_local.sh and ubudeploy.sh // ----------------------------------------------------------------- // ----------------------------------------------------------------- // For preparing the images bash ddprep.sh // This will prompt you to give password for the docker hub account // ----------------------------------------------------------------- // ----------------------------------------------------------------- // For locally running docker // initialize swarm bash ddswinit.sh // deploy the services defined by dd.yml bash dddeploy.sh // ----------------------------------------------------------------- // ----------------------------------------------------------------- // Setup the ubuntu machines with all the prereqs, copy the requisite files etc. bash ubusetupmachines_local.sh ssh to each of the machines and run bash ubudeploy.sh // -----------------------------------------------------------------