Skip to content

Commit

Permalink
Release 1.0.46
Browse files Browse the repository at this point in the history
  • Loading branch information
predix-adoption-bot committed Mar 7, 2019
1 parent 3834db9 commit 30165e2
Show file tree
Hide file tree
Showing 14 changed files with 43 additions and 43 deletions.
6 changes: 3 additions & 3 deletions 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.44"
LABEL version="1.0.46"
LABEL support="https://forum.predix.io"
LABEL license="https://github.com/PredixDev/predix-docker-samples/blob/master/LICENSE.md"

Expand Down Expand Up @@ -52,8 +52,8 @@ RUN rm -rf ./server
RUN rm -rf ./src
RUN rm -rf ./images

COPY ./scripts/entry_point.sh .
COPY ./scripts/entrypoint.sh .

EXPOSE 5000

ENTRYPOINT ["/usr/src/edge-ref-app/entry_point.sh"]
ENTRYPOINT ["/usr/src/edge-ref-app/entrypoint.sh"]
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ If you are behind a corporate proxy server, use the proxy switches or remove the
Change the version in the command below to match

```sh
docker build --no-cache --build-arg https_proxy --build-arg no_proxy= --build-arg http_proxy -t predixedge/predix-edge-ref-app:latest .
docker build --no-cache --build-arg https_proxy --build-arg no_proxy= --build-arg http_proxy -t predixedge/predix-edge-ref-app:<latest-version-here> .
```

### Start the containers
Expand Down Expand Up @@ -142,7 +142,7 @@ However, if one of the containers has a bug or an environmental problem it is qu

There are a few tricks you can use to solve this.

### Trick #1 - add an entry_point.sh entry to the docker-compose.
### Trick #1 - add an entrypoint.sh entry to the docker-compose.

```sh
entrypoint: ["sh", "-c", "sleep 500000"]
Expand Down Expand Up @@ -280,13 +280,13 @@ docker login -u <username> -p <password>
Build predix-edge-ref-app docker image using proxy. Change 'predixedge' to your Docker Organization which is usually your username.

```sh
docker build --no-cache -t predixedge/predix-edge-ref-app:latest --build-arg https_proxy --build-arg no_proxy= --build-arg http_proxy .
docker build --no-cache -t predixedge/predix-edge-ref-app:<latest-version-here> --build-arg https_proxy --build-arg no_proxy= --build-arg http_proxy .
```

Build predix-edge-ref-app docker image without proxy. Change 'predixedge' to your Docker Organization which is usually your username.

```sh
docker build --no-cache -t predixedge/predix-edge-ref-app:latest .
docker build --no-cache -t predixedge/predix-edge-ref-app:<latest-version-here> .
```

Now Push the docker image to the Docker Hub.
Expand Down
2 changes: 1 addition & 1 deletion config/app-deadband/env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#use bash format.
#ensure that 'source /config/env' is added to the container entry_point.sh file that needs it
#ensure that 'source /config/env' is added to the container entrypoint.sh file that needs it
#export MYENVVAR=VALUE

export HIGHHIGH="4"
Expand Down
4 changes: 2 additions & 2 deletions config/env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#use bash format.
#ensure that 'source /config/env' is added to the container entry_point.sh file that needs it
#export MYENVVAR=VALUE
#ensure that 'source /config/env' is added to the container entrypoint.sh file that needs it
export MYENVVAR=VALUE
2 changes: 1 addition & 1 deletion docker-compose-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ services:
ports:
- 1880:1880
predix-edge-ref-app:
image: "predixedge/predix-edge-ref-app:1.0.44"
image: "predixedge/predix-edge-ref-app:1.0.46"
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.44"
image: "predixedge/predix-edge-ref-app:1.0.46"
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.44",
"version": "1.0.46",
"description": "Predix Edge Reference app with node-red",
"main": "server/app.js",
"directories": {
Expand Down
2 changes: 2 additions & 0 deletions scripts/entry_point.sh → scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
cp /config/settings.js /data
cp /config/flows.json /data
cp /data/compressor-specs.json /data
source /config/env
ln -s /config testdir
npm start
3 changes: 2 additions & 1 deletion scripts/quickstart-edge-ref-app-edgeos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,11 @@ IZON_SH="https://raw.githubusercontent.com/PredixDev/izon/1.2.0/izon2.sh"
#SCRIPT="-script build-basic-app.sh -script-readargs build-basic-app-readargs.sh"
SCRIPT="-script edge-starter-deploy.sh -script-readargs edge-starter-deploy-readargs.sh"
VERSION_JSON="version.json"
PREDIX_SCRIPTS_ORG="PredixDev"
PREDIX_SCRIPTS=predix-scripts
SCRIPT_NAME="quickstart-edge-ref-app-edgeos.sh"
GITHUB_RAW="https://raw.githubusercontent.com"
GITHUB_ORG="adoption"
GITHUB_ORG="PredixDev"
REPO_NAME="predix-edge-ref-app"
APP_DIR="edge-ref-app-local"
APP_NAME="Predix Edge Reference App - predix edgeos"
Expand Down
21 changes: 11 additions & 10 deletions scripts/quickstart-edge-ref-app-em.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,19 @@ function local_read_args() {
BRANCH="master"
PRINT_USAGE=0
SKIP_SETUP=false

REPO_NAME=predix-edge-ref-app
IZON_SH="https://raw.githubusercontent.com/PredixDev/izon/1.2.0/izon2.sh"
SCRIPT="-script edge-manager.sh -script-readargs edge-manager-readargs.sh"
QUICKSTART_ARGS="$QUICKSTART_ARGS --create-packages --upload-application --upload-configuration --create-device -edge-app-name $REPO_NAME -asset-name Compressor-CMMS-Compressor-2018 $SCRIPT"
PREDIX_SCRIPTS_ORG="PredixDev"
PREDIX_SCRIPTS="predix-scripts"
VERSION_JSON="version.json"
PREDIX_SCRIPTS=predix-scripts
GITHUB_RAW="https://raw.githubusercontent.com"
IZON_SH="https://raw.githubusercontent.com/PredixDev/izon/1.5.0/izon2.sh"

GITHUB_ORG="PredixDev"
REPO_NAME="predix-edge-ref-app"
SCRIPT_NAME="quickstart-edge-ref-app-em.sh"
GITHUB_RAW="https://raw.githubusercontent.com/PredixDev"
APP_DIR="edge-ref-app-local"
APP_NAME="Predix Edge Reference App - edge manager"
SCRIPT="-script edge-manager.sh -script-readargs edge-manager-readargs.sh"
QUICKSTART_ARGS="$QUICKSTART_ARGS --create-packages --upload-application --upload-configuration --create-device -edge-app-name $REPO_NAME -asset-name Compressor-CMMS-Compressor-2018 $SCRIPT"
TOOLS="Cloud Foundry CLI, Docker, Git, JQ, Node.js, Predix CLI, YQ"
TOOLS_SWITCHES="--cf --docker --git --jq --nodejs --predixcli --yq"
TIMESERIES_CHART_ONLY="true"
Expand All @@ -68,8 +69,8 @@ TIMESERIES_CHART_ONLY="true"
local_read_args $@

#variables after processing switches
SCRIPT_LOC="$GITHUB_RAW/$REPO_NAME/$BRANCH/scripts/$SCRIPT_NAME"
VERSION_JSON_URL=https://raw.githubusercontent.com/PredixDev/$REPO_NAME/$BRANCH/version.json
SCRIPT_LOC="$GITHUB_RAW/$GITHUB_ORG/$REPO_NAME/$BRANCH/scripts/$SCRIPT_NAME"
VERSION_JSON_URL=$GITHUB_RAW/$GITHUB_ORG/$REPO_NAME/$BRANCH/version.json


#if [[ "$SKIP_PREDIX_SERVICES" == "false" ]]; then
Expand Down Expand Up @@ -110,7 +111,7 @@ function init() {
eval "$(curl -s -L $IZON_SH)"
#curl -O $SCRIPT_LOC; chmod 755 $SCRIPT_NAME;
getVersionFile
getLocalSetupFuncs $GITHUB_RAW
getLocalSetupFuncs $GITHUB_RAW $PREDIX_SCRIPTS_ORG
}

if [[ $PRINT_USAGE == 1 ]]; then
Expand Down
9 changes: 3 additions & 6 deletions scripts/quickstart-edge-ref-app-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,18 @@ function local_read_args() {
BRANCH="master"
PRINT_USAGE=0
SKIP_SETUP=false

IZON_SH="https://raw.githubusercontent.com/PredixDev/izon/develop/izon2.sh"
#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"
#SCRIPT="-script build-basic-app.sh -script-readargs build-basic-app-readargs.sh"
SCRIPT="-script edge-starter-deploy.sh -script-readargs edge-starter-deploy-readargs.sh"
VERSION_JSON="version.json"
PREDIX_SCRIPTS_ORG="PredixDev"
PREDIX_SCRIPTS="predix-scripts"
GITHUB_RAW="https://raw.githubusercontent.com"
IZON_SH="https://raw.githubusercontent.com/PredixDev/izon/1.5.0/izon2.sh"

GITHUB_ORG="PredixDev"
REPO_NAME="predix-edge-ref-app"
SCRIPT_NAME="quickstart-edge-ref-app-local.sh"
APP_DIR="edge-ref-app-local"
APP_NAME="Predix Edge Reference App - local"

SCRIPT="-script edge-starter-deploy.sh -script-readargs edge-starter-deploy-readargs.sh"
TOOLS="Cloud Foundry CLI, Docker, Git, jq, yq, Node.js, Predix CLI"
TOOLS_SWITCHES="--cf --docker --git --jq --yq --nodejs --predixcli"

Expand Down
17 changes: 8 additions & 9 deletions scripts/quickstart-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,19 @@ function local_read_args() {
BRANCH="master"
PRINT_USAGE=0
SKIP_SETUP=false

IZON_SH="https://raw.githubusercontent.com/PredixDev/izon/1.4.0/izon2.sh"
SCRIPT="-script edge-manager.sh -script-readargs edge-manager-readargs.sh"
QUICKSTART_ARGS="$QUICKSTART_ARGS --create-packages --create-configuration -edge-app-name $REPO_NAME --skip-predix-services $SCRIPT"
VERSION_JSON="version.json"
PREDIX_SCRIPTS_ORG="adotion"
PREDIX_SCRIPTS=predix-scripts

SCRIPT_NAME="quickstart-package.sh"
PREDIX_SCRIPTS_ORG="PredixDev"
PREDIX_SCRIPTS="predix-scripts"
GITHUB_RAW="https://raw.githubusercontent.com"
IZON_SH="https://raw.githubusercontent.com/PredixDev/izon/1.5.0/izon2.sh"

GITHUB_ORG="adoption"
REPO_NAME="predix-edge-ref-app"
APP_DIR="edge-ref-app-local"
APP_NAME="Predix Edge Reference App - edge manager"
APP_NAME="Predix Edge Reference App - package"
SCRIPT="-script edge-manager.sh -script-readargs edge-manager-readargs.sh"
QUICKSTART_ARGS="$QUICKSTART_ARGS --create-packages --create-configuration -edge-app-name $REPO_NAME --skip-predix-services $SCRIPT"
SCRIPT_NAME="quickstart-package.sh"
TOOLS="Docker, Git, JQ, YQ"
TOOLS_SWITCHES="--cf --docker --git --jq --nodejs --predixcli --yq"
TIMESERIES_CHART_ONLY="true"
Expand Down
6 changes: 3 additions & 3 deletions version.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "Edge Ref App",
"version": "1.0.44",
"version": "1.0.46",
"private": true,
"dependencies": {
"local-setup": "https://github.com/PredixDev/local-setup#1.0.106",
"predix-scripts": "https://github.com/PredixDev/predix-scripts#1.1.229",
"predix-webapp-starter": "https://github.com/PredixDev/predix-webapp-starter.git#2.0.69",
"predix-edge-ref-app": "https://github.com/PredixDev/predix-edge-ref-app.git#1.0.44",
"predix-webapp-starter": "https://github.com/PredixDev/predix-webapp-starter.git#2.0.77",
"predix-edge-ref-app": "https://github.com/PredixDev/predix-edge-ref-app.git#1.0.46",
"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 30165e2

Please sign in to comment.