https://github.com/indaco/predix-demo-bootstrap
Create and configure some Predix services and start using Predix.
https://github.com/indaco/predix-demo-bootstrap
ammonite-scripts predix scala script utility
Last synced: 5 months ago
JSON representation
Create and configure some Predix services and start using Predix.
- Host: GitHub
- URL: https://github.com/indaco/predix-demo-bootstrap
- Owner: indaco
- License: gpl-3.0
- Created: 2017-07-21T07:50:08.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-02T12:00:38.000Z (about 8 years ago)
- Last Synced: 2025-04-08T05:43:05.574Z (9 months ago)
- Topics: ammonite-scripts, predix, scala, script, utility
- Language: Scala
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Predix Demo Bootstrap - Utility Script
The script creates instances on Predix for the following services: UAA, Timeseries, Asset, PostgreSQL and configures them to provide a ready-to-use Predix environment for your demos (necessary authorities, scopes, create a UAA user, create UAA client_id, UAA groups etc.)
My intention was not to create a perfect piece of software but a usable one.
## Prerequisites
Make sure to have the required prerequisites in place:
- A working internet connection :-)
- An account on Predix.io
- [Git](https://git-scm.com/downloads)
- [Cloud Foundry CLI](https://github.com/cloudfoundry/cli)
- [Ammonite](http://www.lihaoyi.com/Ammonite/) that lets you use the Scala language for scripting purposes.
## How to use it?
This script has been developed and tested against Scala 2.12.x Java 1.8.0_73 on Linux (Ubuntu) and Mac OSX 10.x.
Below the steps for Linux and Mac users:
1. Configure networks and proxies
2. Execute the following steps to clone the repos and run the script
```
$ git clone https://github.com/indaco/predix-demo-setup
$ cd predix-demo-setup
$ amm main.sc
```
#### Notes
`src/variables.sc` file contains the default settings for the script (e.g. predix service plan, service names, instance names, client_id, user details etc.). Adapt them to your preferences.
### Results
The scripts generates a JSON file with details about the services created. It can be used for further reference. It is exactly the output for `cf env appName` command.
## And Now?
Well done, your Predix environment is ready for you!
It's time now to ingest some dummy data or create some dummy asset so, use the [Predix Tool Kit ](https://predix-starter.run.aws-usw02-pr.ice.predix.io) if are already familiar with it or have a look on [Predix.io](https://www.predix.io/) to learn how to use the [Predix Machine](https://docs.predix.io/en-US/content/service/edge_software_and_services/machine/) for a real-life scenario.
--------------------------------------------------------------------------------
#### DISCLAIMER
This is not an official development neither from the GE Digital's Predix Team.