Vagrant ubuntu/trusty64
box setup with all you need to use predix-ec-configurator:
- Git
- Cloud Foundry CLI
- Go 1.9.2
- Nginx
- PostgreSQL
If you just want to give predix-ec-configurator a test ride, you need few things to be done before getting started with it.
Download and install VirtualBox and Vagrant and then install the following Vagrant plugins:
$ vagrant plugin install vagrant-proxyconf
$ vagrant plugin install vagrant-triggers
Note: if you skip those steps and try to build the VM, plugins will be automatically installed, but you will get an error and need to re-run the build to fix it.
Clone this repos:
$ git clone https://github.com/indaco/predix-ec-configurator-vagrant
$ cd predix-ec-configurator-vagrant
Edit configs.json
file with your Predix.io credentials:
"predix": {
"domain": "run.aws-usw02-pr.ice.predix.io",
"api": "https://api.system.aws-usw02-pr.ice.predix.io",
"username": "<your-predix-username>",
"password": "<your-predix-password>"
}
Notes:
- If you are not on Predix Basic make sure to update the domain and the api endpoint too.
- f you are behind a proxy be sure to setup
HTTP_PROXY
andHTTPS_PROXY
variables on your machine and editproxy.json
file with the url.
Alright, It is now time to build the VM:
$ vagrant up
Once the setup is finished, open a browser window at http://localhost:8080
and start configuring your scenario.
When your scenario configuration is finished, you should see what you get from the app into the output
folder on your local machine.
Now, you follow the instruction as reported on the screen and on the generated markdown file.
- You can connect to Postgres on VM it using:
Hostname: localhost
Port: 65432
Database: ecdemodb
Username: ecdemouser
Password: ecdemo
-
A new ecdemodb database and a sample playground table with dummy data have already been created.
-
If you need to ssh into the Vagrant box,
$ vagrant ssh
This is not an official development neither from the GE Digital's Predix Team and GE Digital's Enterprise Connect Team