You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+35-7Lines changed: 35 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -155,6 +155,12 @@ The manual steps for Edge are in the Manual Set Up section below. (The cloud ma
155
155
156
156
For DevBox, Mac and Linux
157
157
158
+
For DevBox install the yq tool
159
+
160
+
```bash
161
+
sudo pip install yq
162
+
```
163
+
158
164
If you have a Predix Cloud account with an org/space:
159
165
160
166
```bash
@@ -181,9 +187,16 @@ To get started developing locally you will need to pull the core Predix Edge Doc
181
187
182
188
Install the Predix Edge Broker
183
189
184
-
Using a browser, log in to https://artifactory.predix.io using your predix username and password. GE users will use the SSO feature to login, use your SSO where it says your-predix-account below.
190
+
Check the version of the Broker in the docker-compose-edge-broker.yml
191
+
192
+
```bash
193
+
cat docker-compose-edge-broker.yml
194
+
```
195
+
196
+
Using a browser, log in to https://artifactory.predix.io using your predix username and password. GE users will use the SSO feature to login, use your SSO where it says your-predix-account below.
197
+
198
+
Click the `Artifacts` icon and navigate to the `predix-ext/predix-edge/<edgeos-version-here>/os` folder and `Download` the `edge-broker` container version that matches the docker-compose-edge-broker.yml.
185
199
186
-
Click the `Artifacts` icon and navigate to the predix-ext/predix-edge/<latest-version-here>/os folder and Download the `edge-broker` container.
187
200
**Changing the** command to use the **version** you downloaded, using a tool on your computer, untar it, e.g.
188
201
189
202
```bash
@@ -203,11 +216,18 @@ docker load -i *.tar
203
216
```
204
217
205
218
Now repeat the steps for the OPCUA Adapter and Cloud Gateway
219
+
220
+
Check the version of the OPCUA Adapter and Cloud Gateway in the docker-compose-local.yml
Finally, create a [Docker Swarm](https://docs.docker.com/engine/swarm/) on your machine. You only need to do this once on your machine. If you have done so in the past you can disregard this step.
@@ -367,7 +387,15 @@ This file is used by the Cloud Gateway service and contains properties indicatin
367
387
368
388
### Step 6. Run the App and Validate the Results
369
389
370
-
#### Step 1: Get Access Token
390
+
#### Step 1: Make data Dir Writeable
391
+
392
+
First let's make the data dir writeable. This is needed when running the app because the username inside the container does not match your username.
393
+
394
+
```bash
395
+
chmod 777 ./data
396
+
```
397
+
398
+
#### Step 2: Get Access Token
371
399
372
400
The result of this app is to publish a scaled value to Predix Cloud Time Series. In order to do so, the app requires a UAA token with permissions to ingest data. On a Predix Edge device, apps obtain this token from the device once it is enrolled to Edge Manager.
373
401
@@ -376,10 +404,10 @@ During development, though, you must generate a token to be used by the app. To
376
404
The script takes three input parameters:
377
405
-`my-client-id` - the client id for your instance of UAA: it must have permissions to ingest data into your Time Series instance
378
406
-`my-secret` - the client secret for that client id
379
-
-`my-uaa-url` - must be the full URL including the /oauth/token ending
407
+
-`my-uaa-issuerid-url` - must be the full URL including the /oauth/token ending
After you run the script, a file named *access_token* will be created in the data folder of the app. The app is configured to use this file to obatin the token for transmitting data to the cloud.
0 commit comments