Skip to content

Commit 1ffadb0

Browse files
Release 1.0.35
1 parent 6c96d23 commit 1ffadb0

File tree

6 files changed

+42
-30
lines changed

6 files changed

+42
-30
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM predixadoption/edge-pycdp3:1.0.0
22

33
LABEL maintainer="Predix Builder Relations"
44
LABEL org="https://hub.docker.com/u/predixadoption"
5-
LABEL version="1.0.34"
5+
LABEL version="1.0.35"
66
LABEL support="https://forum.predix.io"
77
LABEL license="https://github.com/PredixDev/predix-docker-samples/blob/master/LICENSE.md"
88

docker-compose-edge-broker.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ version: '3'
55

66
services:
77
predix-edge-broker:
8-
image: "dtr.predix.io/predix-edge/predix-edge-mosquitto-amd64:latest"
8+
image: "dtr.predix.io/predix-edge/predix-edge-broker:amd64-1.0.2"
9+
hostname: 127.0.0.1
910
networks:
1011
- net
1112
ports:

docker-compose-local.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version: '3'
55

66
services:
77
edge-hello-world:
8-
image: "predixadoption/edge-hello-world:{EDGE_HELLOWORLD_VERSION}"
8+
image: "predixadoption/edge-hello-world:latest"
99
environment:
1010
- UPDATE_RATE_SEC=1.0
1111
- TURBINE_IN_CHANNEL=turbine_control

scripts/quickstart-deploy-to-edgeos.sh

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ set -e
55
trap "trap_ctrlc" 2
66

77
ROOT_DIR=$(pwd)
8-
SKIP_BROWSER="0"
8+
logDir="$ROOT_DIR/predix-scripts/log"
9+
BUILD_APP=false
910
function local_read_args() {
1011
while (( "$#" )); do
1112
opt="$1"
@@ -20,8 +21,10 @@ function local_read_args() {
2021
QUICKSTART_ARGS+=" $1 $2"
2122
shift
2223
;;
24+
--build-app)
25+
BUILD_APP=true
26+
;;
2327
-o|--override)
24-
RECREATE_TAR="1"
2528
QUICKSTART_ARGS=" $SCRIPT"
2629
;;
2730
--skip-setup)
@@ -44,22 +47,27 @@ function local_read_args() {
4447
BRANCH="master"
4548
PRINT_USAGE=0
4649
SKIP_SETUP=false
50+
51+
IZON_SH="https://raw.githubusercontent.com/PredixDev/izon/master/izon2.sh"
4752
#ASSET_MODEL="-amrmd predix-ui-seed/server/sample-data/predix-asset/asset-model-metadata.json predix-ui-seed/server/sample-data/predix-asset/asset-model.json"
48-
SCRIPT="-script edge-starter-deploy.sh -script-readargs edge-starter-deploy-readargs.sh -deploy-edge-app"
49-
QUICKSTART_ARGS=" $SCRIPT"
53+
REPO_NAME="wind-workbench"
54+
DOCKER_STACK_NAME="edge-hello-world"
55+
SCRIPT="-script edge-starter-deploy.sh -script-readargs edge-starter-deploy-readargs.sh"
56+
QUICKSTART_ARGS=" $SCRIPT -create-packages -deploy-edge-app -repo-name $REPO_NAME -app-name $DOCKER_STACK_NAME"
5057
VERSION_JSON="version.json"
5158
PREDIX_SCRIPTS="predix-scripts"
52-
REPO_NAME="wind-workbench"
5359
VERSION_JSON="version.json"
5460
APP_DIR="edge-hello-world"
5561
APP_NAME="Edge Starter Hello World"
62+
GITHUB_RAW="https://raw.githubusercontent.com/PredixDev"
63+
5664
TOOLS="Docker, Git"
5765
TOOLS_SWITCHES="--docker --git"
5866

67+
# Process switches
5968
local_read_args $@
60-
IZON_SH="https://raw.githubusercontent.com/PredixDev/izon/$BRANCH/izon.sh"
61-
VERSION_JSON_URL=https://raw.githubusercontent.com/PredixDev/$REPO_NAME/$BRANCH/version.json
6269

70+
VERSION_JSON_URL="$GITHUB_RAW/$REPO_NAME/$BRANCH/version.json"
6371

6472
function check_internet() {
6573
set +e
@@ -112,14 +120,10 @@ getPredixScripts
112120
#clone the repo itself if running from oneclick script
113121
pwd
114122
ls -lrt
115-
#if [[ ! -d "$PREDIX_SCRIPTS/$REPO_NAME" ]]; then
116-
# echo "repo not present"
117-
getCurrentRepo
118-
#fi
123+
119124
echo "pwd after copy -> $(pwd)"
120-
ls -lrt
121125
echo "quickstart_args=$QUICKSTART_ARGS"
122-
source $PREDIX_SCRIPTS/bash/quickstart.sh $QUICKSTART_ARGS -repo-name $REPO_NAME -app-name $APP_DIR
126+
source $PREDIX_SCRIPTS/bash/quickstart.sh $QUICKSTART_ARGS
123127

124128
sleep 20
125129
# Automagically open the application in browser, based on OS
@@ -142,4 +146,10 @@ if [[ $SKIP_BROWSER == 0 ]]; then
142146
esac
143147
fi
144148

145-
echo "Deployed Predix Edge Hello World Application to Predix Edge OS."
149+
echo "" >> $SUMMARY_TEXTFILE
150+
echo "Deployed Predix Edge Hello World Application to Predix Edge OS." >> $SUMMARY_TEXTFILE
151+
echo "Edge Hello world URL: http://$IP_ADDRESS:9098" >> $SUMMARY_TEXTFILE
152+
echo "" >> $SUMMARY_TEXTFILE
153+
154+
cat $SUMMARY_TEXTFILE
155+
echo "......................................Done......................................"

scripts/quickstart-wind-workbench.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -125,21 +125,21 @@ ls -lrt
125125
getCurrentRepo
126126
#fi
127127

128-
echo "pwd after copy -> $(pwd)"
128+
#echo "pwd after copy -> $(pwd)"
129129
echo "quickstart_args=$QUICKSTART_ARGS"
130130
cd $PREDIX_SCRIPTS/$REPO_NAME
131-
dockerVersion=$(grep version Dockerfile | awk -F"=" '{print $2}' | tr -d "\"")
132-
echo "$dockerVersion"
133-
sed "s#{EDGE_HELLOWORLD_VERSION}#$dockerVersion#" docker-compose-local.yml > $(pwd)/docker-compose-local.yml.tmp
134-
mv $(pwd)/docker-compose-local.yml.tmp $(pwd)/docker-compose-local.yml
131+
#dockerVersion=$(grep version Dockerfile | awk -F"=" '{print $2}' | tr -d "\"")
132+
#echo "$dockerVersion"
133+
#sed "s#{EDGE_HELLOWORLD_VERSION}#$dockerVersion#" docker-compose-local.yml > $(pwd)/docker-compose-local.yml.tmp
134+
#mv $(pwd)/docker-compose-local.yml.tmp $(pwd)/docker-compose-local.yml
135135

136-
sed "s#{EDGE_HELLOWORLD_VERSION}#$dockerVersion#" docker-compose.yml > $(pwd)/docker-compose.yml.tmp
137-
mv $(pwd)/docker-compose.yml.tmp $(pwd)/docker-compose.yml
136+
#sed "s#{EDGE_HELLOWORLD_VERSION}#$dockerVersion#" docker-compose.yml > $(pwd)/docker-compose.yml.tmp
137+
#mv $(pwd)/docker-compose.yml.tmp $(pwd)/docker-compose.yml
138138

139139
if [[ "$BUILD_APP" == "true" ]]; then
140-
docker build --no-cache -t "predixadoption/edge-hello-world:$dockerVersion" -f ./Dockerfile . --build-arg http_proxy --build-arg https_proxy --build-arg no_proxy
141-
else
142-
docker pull predixadoption/edge-hello-world:$dockerVersion
140+
docker build --no-cache -t "predixadoption/edge-hello-world:latest" -f ./Dockerfile . --build-arg http_proxy --build-arg https_proxy --build-arg no_proxy
141+
#else
142+
# docker pull predixadoption/edge-hello-world:$dockerVersion
143143
fi
144144
cd ../..
145145

version.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"name": "Wind Workbench",
3-
"version": "1.0.34",
3+
"version": "1.0.35",
44
"private": false,
55
"dependencies": {
66
"local-setup": "https://github.com/PredixDev/local-setup#1.0.101",
7-
"predix-scripts": "https://github.com/PredixDev/predix-scripts#1.1.182",
8-
"wind-workbench": "https://github.com/PredixDev/wind-workbench#1.0.34"
7+
"predix-scripts": "https://github.com/PredixDev/predix-scripts#1.1.183",
8+
"wind-workbench": "https://github.com/PredixDev/wind-workbench#1.0.35",
9+
"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#"
910
},
1011
"author": "susheelchoudhari"
1112
}

0 commit comments

Comments
 (0)