The Logistics Wizard is an end-to-end, smart supply chain management solution that showcases how to execute hybrid cloud, microservices, and predictive data analytics in the real world.
Get your OpenWhisk authorization key:
https://console.ng.bluemix.net/openwhisk/cliIMPORTANT: Make sure you are in the right bluemix space region and org in the top right. acme-freight should be the space.
should look something like this:
wsk property set --apihost openwhisk.ng.bluemix.net --auth b02eca4-93f8-4735-a616-692b28ed6dca:Z2XyZQWqUvu1HQ5WJLAqnL2Zi4N8KEwfShEAUcXsPczDcUEnOuYfgXG6kREvZMVm
You don't need to run this command. Simply copy the auth token, which looks like:
Customize your Toolchain Name on the top - something like acme-freight-toolchain
In the GitHub tab under Tool Integrations, authorize it with your GitHub account. This step may fail because toolchain is buggy. If it fails, don't worry about it.
Use “Existing” for all the Repository Types and check the “Track deployment of code changes” for ALL 4 repos
Click the Delivery Pipeline tab under Tool Integrations,
Customize your app names to something like acme-freight-sai-erp, acme-freight-sai-controller, acme-freight-sai-webui
Choose the “acme-freight” space (or whatever you named your Bluemix space) along with the proper region and org
Enter the openwhisk authorization key that you got in step 2
Keep the coverall tokens blank for now
Hit Create
Wait a long time :) Maybe 10 minutes. Now is a good time to acquaint yourself with the toolchain view. In the overview page, you’ll see 4 “code” blocks and 8 “deliver” blocks. The code blocks represent the GitHub code that is being built, tested and deployed. The pipeline blocks define the steps for building testing and deploying. There are twice as many because they are tracking two branches - dev and master (prod).
Check https://console.ng.bluemix.net/dashboard/cf-apps to see the status of all your apps. Ensure that you’ve chosen the acme-freight space on the top right. There should be 6 apps (3 for prod, 3 for dev). When they are all running, open the dev-acme-freight-sai-webui URL to see your own instance of the app!
By default, the pipelines track the dev and master branches. If you want to customize it so that the app is redeployed when you make changes to a particular branch, then you’ll need to jump into the pipeline and change the appropriate “Build” configurations to watch your branch rather than dev
IMPORTANT NOTE: Some of the pipeline phases may fail! This will cause your app to either not start or not work. If this is happening to you, simply rerun the failing pipeline phase and it'll fix itself.
Instructions to setup toolchain:
Create a Bluemix space.. maybe
acme-freight
Get your OpenWhisk authorization key: https://console.ng.bluemix.net/openwhisk/cli IMPORTANT: Make sure you are in the right bluemix space region and org in the top right.
acme-freight
should be the space. should look something like this:You don't need to run this command. Simply copy the auth token, which looks like:
Save this token for a later step.
Go here: https://github.com/acme-freight/logistics-wizard-toolchain
Click
Create Toolchain
buttonCustomize your
Toolchain Name
on the top - something likeacme-freight-toolchain
In the
GitHub
tab underTool Integrations
, authorize it with your GitHub account. This step may fail because toolchain is buggy. If it fails, don't worry about it.Use “Existing” for all the
Repository Type
s and check the “Track deployment of code changes” for ALL 4 reposClick the
Delivery Pipeline
tab underTool Integrations
,Customize your app names to something like
acme-freight-sai-erp
,acme-freight-sai-controller
,acme-freight-sai-webui
Choose the “acme-freight” space (or whatever you named your Bluemix space) along with the proper region and org
Enter the openwhisk authorization key that you got in step 2
Keep the coverall tokens blank for now
Hit Create
Wait a long time :) Maybe 10 minutes. Now is a good time to acquaint yourself with the toolchain view. In the overview page, you’ll see 4 “code” blocks and 8 “deliver” blocks. The code blocks represent the GitHub code that is being built, tested and deployed. The pipeline blocks define the steps for building testing and deploying. There are twice as many because they are tracking two branches -
dev
andmaster
(prod).Check https://console.ng.bluemix.net/dashboard/cf-apps to see the status of all your apps. Ensure that you’ve chosen the
acme-freight
space on the top right. There should be 6 apps (3 for prod, 3 for dev). When they are all running, open thedev-acme-freight-sai-webui
URL to see your own instance of the app!By default, the pipelines track the
dev
andmaster
branches. If you want to customize it so that the app is redeployed when you make changes to a particular branch, then you’ll need to jump into the pipeline and change the appropriate “Build” configurations to watch your branch rather thandev
IMPORTANT NOTE: Some of the pipeline phases may fail! This will cause your app to either not start or not work. If this is happening to you, simply rerun the failing pipeline phase and it'll fix itself.