Skip to content

Commit

Permalink
Release 1.0.50
Browse files Browse the repository at this point in the history
  • Loading branch information
predix-adoption-bot committed Mar 23, 2019
1 parent 9492ca2 commit f4a65ec
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 53 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ LABEL maintainer="Predix Builder Relations"
LABEL hub="https://hub.docker.com"
LABEL org="https://hub.docker.com/u/predixedge"
LABEL repo="predix-edge-ref-app"
LABEL version="1.0.47"
LABEL version="1.0.50"
LABEL support="https://forum.predix.io"
LABEL license="https://github.com/PredixDev/predix-docker-samples/blob/master/LICENSE.md"

Expand Down
5 changes: 5 additions & 0 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ services:
image: "dtr.predix.io/predix-edge/cloud-gateway:amd64-1.1.0"
environment:
config: "/config/config-cloud-gateway.json"
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}
HTTP_PROXY: ${HTTP_PROXY}
HTTPS_PROXY: ${HTTP_PROXY}
no_proxy: ${no_proxy}
volumes:
- ./config:/config
- ./data:/data
Expand Down
7 changes: 6 additions & 1 deletion docker-compose-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ services:
image: "dtr.predix.io/predix-edge/cloud-gateway:amd64-1.1.0"
environment:
config: "/config/config-cloud-gateway.json"
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}
HTTP_PROXY: ${HTTP_PROXY}
HTTPS_PROXY: ${HTTP_PROXY}
no_proxy: ${no_proxy}
volumes:
- ./config:/config
- ./data:/data
Expand All @@ -40,7 +45,7 @@ services:
ports:
- 1880:1880
predix-edge-ref-app:
image: "predixedge/predix-edge-ref-app:1.0.47"
image: "predixedge/predix-edge-ref-app:1.0.50"
volumes:
- ./config:/config
- ./data:/data
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ services:
ports:
- 1880:1880
predix-edge-ref-app:
image: "predixedge/predix-edge-ref-app:1.0.47"
image: "predixedge/predix-edge-ref-app:1.0.50"
networks:
- predix-edge-broker_net
ports:
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "edge-ref-app",
"version": "1.0.47",
"version": "1.0.50",
"description": "Predix Edge Reference app with node-red",
"main": "server/app.js",
"directories": {
Expand Down
21 changes: 0 additions & 21 deletions scripts/build-docker.sh

This file was deleted.

28 changes: 21 additions & 7 deletions scripts/get-access-token.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# get command line paramaters

set -e

CLIENT_ID=$1
SECRET=$2
UAA_URL=$3

echo "usage: get-access-token.sh <clientId> <secret> <uaa-issuerid-url>"
echo "usage: createAccessTokenFile <clientId> <secret> <uaa-issuerid-url>"

# base64 encide the client and secret
AUTH='Authorization: Basic '$(echo -n $CLIENT_ID:$SECRET | base64)
Expand All @@ -12,9 +15,20 @@ AUTH='Authorization: Basic '$(echo -n $CLIENT_ID:$SECRET | base64)
RESULT=$(curl -X POST $UAA_URL -H "$AUTH" -H 'Content-Type: application/x-www-form-urlencoded' -d grant_type=client_credentials)

# parse out the access token from the result - this requires jq to be installed on your machine (brew install jq)
ACCESS_TOKEN=$( echo "$RESULT" | jq -r '.["access_token"]' )

# copy the access token to the access_token file in the data folder of your app - where the Cloud Gateway container will look for it
printf "%s" "$ACCESS_TOKEN" > ./data/access_token

echo 'token refreshed'
if [[ $( echo "$RESULT" | jq 'has("access_token")') == true ]]; then
ACCESS_TOKEN=$( echo "$RESULT" | jq -r '.["access_token"]' )
# copy the access token to the access_token file in the data folder of your app - where the Cloud Gateway container will look for it
mkdir -p ./data
printf "%s" "$ACCESS_TOKEN" > ./data/access_token
chmod -R 777 data
echo 'token refreshed'
else
echo "Coult not fetch token : $RESULT"
echo "Please check if the paramters passed are correct"
echo "$CLIENT_ID $SECRET $UAA_URL"
echo "CURL COMAND : curl -X POST $UAA_URL -H "$AUTH" -H 'Content-Type: application/x-www-form-urlencoded' -d grant_type=client_credentials"
mkdir -p ./data
printf "%s" "" > ./data/access_token
chmod -R 777 data
exit 1
fi
15 changes: 0 additions & 15 deletions scripts/pullimages.sh

This file was deleted.

10 changes: 5 additions & 5 deletions version.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "Edge Ref App",
"version": "1.0.47",
"version": "1.0.50",
"private": true,
"dependencies": {
"local-setup": "https://github.com/PredixDev/local-setup#1.0.106",
"predix-scripts": "https://github.com/PredixDev/predix-scripts#1.1.240",
"predix-webapp-starter": "https://github.com/PredixDev/predix-webapp-starter.git#2.0.90",
"predix-edge-ref-app": "https://github.com/PredixDev/predix-edge-ref-app.git#1.0.47",
"local-setup": "https://github.com/PredixDev/local-setup#1.0.107",
"predix-scripts": "https://github.com/PredixDev/predix-scripts#1.1.246",
"predix-webapp-starter": "https://github.com/PredixDev/predix-webapp-starter.git#2.0.92",
"predix-edge-ref-app": "https://github.com/PredixDev/predix-edge-ref-app.git#1.0.50",
"predix-edge-broker": "https://artifactory.predix.io/artifactory/PREDIX-EXT/predix-edge/2_1_0/os/predix-edge-broker-amd64-20180917-1.0.2.tar.gz#",
"opcua": "https://artifactory.predix.io/artifactory/PREDIX-EXT/predix-edge/2_1_0/apps/adapters/predix-edge-opc-ua-adapter-amd64-20181002-1.1.0.tar.gz#",
"cloud_gateway": "https://artifactory.predix.io/artifactory/PREDIX-EXT/predix-edge/2_1_0/apps/gateway/predix-edge-cloud-gateway-amd64-20181002-1.1.0.tar.gz#"
Expand Down

0 comments on commit f4a65ec

Please sign in to comment.