@things-factory/operato-edge 8.0.0-beta.1 → 8.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +18 -18
- package/installer/config.production.js +0 -62
- package/installer/config.yaml +0 -4
- package/installer/docker-compose.yml +0 -54
- package/installer/install.sh +0 -54
- package/installer/migrate.sh +0 -1
- package/installer/start.sh +0 -18
- package/installer/stop.sh +0 -1
- package/installer/upgrade.sh +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-edge",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.2",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "dist-client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -41,24 +41,24 @@
|
|
|
41
41
|
"docker:push": "docker image push hatiolab/operato-edge:latest && docker image push hatiolab/operato-edge:$npm_package_version"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@things-factory/apptool-ui": "^8.0.0-beta.
|
|
45
|
-
"@things-factory/auth-ui": "^8.0.0-beta.
|
|
46
|
-
"@things-factory/context-ui": "^8.0.0-beta.
|
|
47
|
-
"@things-factory/edge": "^8.0.0-beta.
|
|
48
|
-
"@things-factory/evaluation": "^8.0.0-beta.
|
|
49
|
-
"@things-factory/i18n-base": "^8.0.0-beta.
|
|
50
|
-
"@things-factory/integration-influxdb": "^8.0.0-beta.
|
|
51
|
-
"@things-factory/integration-melsec": "^8.0.0-beta.
|
|
52
|
-
"@things-factory/integration-modbus": "^8.0.0-beta.
|
|
53
|
-
"@things-factory/integration-opc": "^8.0.0-beta.
|
|
54
|
-
"@things-factory/integration-ui": "^8.0.0-beta.
|
|
55
|
-
"@things-factory/lite-menu": "^8.0.0-beta.
|
|
56
|
-
"@things-factory/more-ui": "^8.0.0-beta.
|
|
57
|
-
"@things-factory/shell": "^8.0.0-beta.
|
|
58
|
-
"@things-factory/system": "^8.0.0-beta.
|
|
44
|
+
"@things-factory/apptool-ui": "^8.0.0-beta.2",
|
|
45
|
+
"@things-factory/auth-ui": "^8.0.0-beta.2",
|
|
46
|
+
"@things-factory/context-ui": "^8.0.0-beta.2",
|
|
47
|
+
"@things-factory/edge": "^8.0.0-beta.2",
|
|
48
|
+
"@things-factory/evaluation": "^8.0.0-beta.2",
|
|
49
|
+
"@things-factory/i18n-base": "^8.0.0-beta.2",
|
|
50
|
+
"@things-factory/integration-influxdb": "^8.0.0-beta.2",
|
|
51
|
+
"@things-factory/integration-melsec": "^8.0.0-beta.2",
|
|
52
|
+
"@things-factory/integration-modbus": "^8.0.0-beta.2",
|
|
53
|
+
"@things-factory/integration-opc": "^8.0.0-beta.2",
|
|
54
|
+
"@things-factory/integration-ui": "^8.0.0-beta.2",
|
|
55
|
+
"@things-factory/lite-menu": "^8.0.0-beta.2",
|
|
56
|
+
"@things-factory/more-ui": "^8.0.0-beta.2",
|
|
57
|
+
"@things-factory/shell": "^8.0.0-beta.2",
|
|
58
|
+
"@things-factory/system": "^8.0.0-beta.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@things-factory/builder": "^8.0.0-beta.
|
|
61
|
+
"@things-factory/builder": "^8.0.0-beta.2"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "f03431a09435511b2595515658f9cb8f78ba4ebb"
|
|
64
64
|
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
subdomain: 'system',
|
|
3
|
-
SECRET: '0xD59F835B69C217A76BB1FA4a70a1D0d4D79dAC66', // temporary...
|
|
4
|
-
accessTokenCookieKey: 'access_token.edge',
|
|
5
|
-
email: {
|
|
6
|
-
host: 'smtp.office365.com', // your sender-email smtp host
|
|
7
|
-
port: 587, // smtp server port
|
|
8
|
-
secure: false, // true for 465, false for other ports
|
|
9
|
-
auth: {
|
|
10
|
-
user: 'your sender-email',
|
|
11
|
-
pass: 'your sender-email password' // generated ethereal password
|
|
12
|
-
},
|
|
13
|
-
secureConnection: false,
|
|
14
|
-
tls: {
|
|
15
|
-
ciphers: 'SSLv3'
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
logger: {
|
|
19
|
-
file: {
|
|
20
|
-
filename: 'logs/application-%DATE%.log',
|
|
21
|
-
datePattern: 'YYYY-MM-DD-HH',
|
|
22
|
-
zippedArchive: false,
|
|
23
|
-
maxSize: '20m',
|
|
24
|
-
maxFiles: '2d',
|
|
25
|
-
level: 'info'
|
|
26
|
-
},
|
|
27
|
-
console: {
|
|
28
|
-
level: 'silly'
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
// ormconfig: {
|
|
32
|
-
// name: 'default',
|
|
33
|
-
// type: 'sqlite',
|
|
34
|
-
// database: 'db.sqlite',
|
|
35
|
-
// synchronize: false,
|
|
36
|
-
// logging: true,
|
|
37
|
-
// logger: 'debug'
|
|
38
|
-
// },
|
|
39
|
-
ormconfig: {
|
|
40
|
-
name: 'default',
|
|
41
|
-
type: 'postgres',
|
|
42
|
-
host: 'postgres',
|
|
43
|
-
port: 5432,
|
|
44
|
-
database: 'postgres',
|
|
45
|
-
username: 'postgres',
|
|
46
|
-
password: 'abcd1234',
|
|
47
|
-
synchronize: true,
|
|
48
|
-
logging: true
|
|
49
|
-
},
|
|
50
|
-
scheduler: {
|
|
51
|
-
/* Name to be used for setting client's "application" properties when registering a schedule */
|
|
52
|
-
application: 'operato-edge',
|
|
53
|
-
/* Base endpoint to be used for setting "callback" properties when registering a schedule */
|
|
54
|
-
callbackBase: 'http://app:3000',
|
|
55
|
-
/*
|
|
56
|
-
Scheduler service endpoint
|
|
57
|
-
caution) endpoint for "localhost" has some problem.
|
|
58
|
-
https://github.com/node-fetch/node-fetch/issues/1624
|
|
59
|
-
*/
|
|
60
|
-
endpoint: 'http://scheduler:9902'
|
|
61
|
-
}
|
|
62
|
-
}
|
package/installer/config.yaml
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
version: '3'
|
|
2
|
-
services:
|
|
3
|
-
nginx:
|
|
4
|
-
image: hatiolab/operato-nginx:latest
|
|
5
|
-
ports:
|
|
6
|
-
- ${HostPort}:80
|
|
7
|
-
depends_on:
|
|
8
|
-
- app
|
|
9
|
-
app:
|
|
10
|
-
container_name: operato-edge
|
|
11
|
-
image: hatiolab/operato-edge:latest
|
|
12
|
-
privileged: true
|
|
13
|
-
volumes:
|
|
14
|
-
- ./logs:/app/logs
|
|
15
|
-
- ./config.production.js:/app/config.production.js
|
|
16
|
-
ports:
|
|
17
|
-
- 4000:3000
|
|
18
|
-
depends_on:
|
|
19
|
-
- postgres
|
|
20
|
-
- mosquitto
|
|
21
|
-
- scheduler
|
|
22
|
-
logging:
|
|
23
|
-
driver: 'json-file'
|
|
24
|
-
options:
|
|
25
|
-
max-size: '100m'
|
|
26
|
-
max-file: '3'
|
|
27
|
-
postgres:
|
|
28
|
-
image: postgres:13.2
|
|
29
|
-
container_name: db-operato-edge
|
|
30
|
-
environment:
|
|
31
|
-
POSTGRES_PASSWORD: abcd1234
|
|
32
|
-
POSTGRES_USER: postgres
|
|
33
|
-
PGDATA: /var/lib/postgresql/data/pgdata
|
|
34
|
-
volumes:
|
|
35
|
-
- ./postgres_data:/var/lib/postgresql/data/pgdata
|
|
36
|
-
ports:
|
|
37
|
-
- '55432:5432'
|
|
38
|
-
mosquitto:
|
|
39
|
-
image: eclipse-mosquitto:1.6.12
|
|
40
|
-
ports:
|
|
41
|
-
- 1883:1883
|
|
42
|
-
- 9001:9001
|
|
43
|
-
scheduler:
|
|
44
|
-
image: hatiolab/schevt-mgr:latest
|
|
45
|
-
container_name: scheduler
|
|
46
|
-
volumes:
|
|
47
|
-
- ./config.yaml:/app/config.yaml
|
|
48
|
-
ports:
|
|
49
|
-
- '9902:9902'
|
|
50
|
-
logging:
|
|
51
|
-
driver: 'json-file'
|
|
52
|
-
options:
|
|
53
|
-
max-size: '100m'
|
|
54
|
-
max-file: '3'
|
package/installer/install.sh
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
if [ -f "config.production.js" ] ; then
|
|
2
|
-
echo "config.production.js exist"
|
|
3
|
-
else
|
|
4
|
-
echo "config.production.js create"
|
|
5
|
-
curl -O https://raw.githubusercontent.com/things-factory/things-factory/master/packages/operato-edge/installer/config.production.js
|
|
6
|
-
fi
|
|
7
|
-
|
|
8
|
-
if [ -f "start.sh" ] ; then
|
|
9
|
-
echo "start.sh exist"
|
|
10
|
-
else
|
|
11
|
-
echo "start.sh create"
|
|
12
|
-
curl -O https://raw.githubusercontent.com/things-factory/things-factory/master/packages/operato-edge/installer/start.sh
|
|
13
|
-
fi
|
|
14
|
-
|
|
15
|
-
if [ -f "stop.sh" ] ; then
|
|
16
|
-
echo "stop.sh exist"
|
|
17
|
-
else
|
|
18
|
-
echo "stop.sh create"
|
|
19
|
-
curl -O https://raw.githubusercontent.com/things-factory/things-factory/master/packages/operato-edge/installer/stop.sh
|
|
20
|
-
fi
|
|
21
|
-
|
|
22
|
-
if [ -f "upgrade.sh" ] ; then
|
|
23
|
-
echo "upgrade.sh exist"
|
|
24
|
-
else
|
|
25
|
-
echo "upgrade.sh create"
|
|
26
|
-
curl -O https://raw.githubusercontent.com/things-factory/things-factory/master/packages/operato-edge/installer/upgrade.sh
|
|
27
|
-
fi
|
|
28
|
-
|
|
29
|
-
if [ -f "migrate.sh" ] ; then
|
|
30
|
-
echo "migrate.sh exist"
|
|
31
|
-
else
|
|
32
|
-
echo "migrate.sh create"
|
|
33
|
-
curl -O https://raw.githubusercontent.com/things-factory/things-factory/master/packages/operato-edge/installer/migrate.sh
|
|
34
|
-
fi
|
|
35
|
-
|
|
36
|
-
if [ -f "docker-compose.yml" ] ; then
|
|
37
|
-
echo "docker-compose.yml exist"
|
|
38
|
-
else
|
|
39
|
-
echo "docker-compose.yml create"
|
|
40
|
-
curl -O https://raw.githubusercontent.com/things-factory/things-factory/master/packages/operato-edge/installer/docker-compose.yml
|
|
41
|
-
fi
|
|
42
|
-
|
|
43
|
-
chmod u+x start.sh
|
|
44
|
-
chmod u+x stop.sh
|
|
45
|
-
chmod u+x upgrade.sh
|
|
46
|
-
chmod u+x migrate.sh
|
|
47
|
-
|
|
48
|
-
echo "HostPort=3000" > .env
|
|
49
|
-
|
|
50
|
-
docker pull hatiolab/operato-edge:latest
|
|
51
|
-
|
|
52
|
-
docker pull hatiolab/operato-nginx:latest
|
|
53
|
-
|
|
54
|
-
docker-compose create
|
package/installer/migrate.sh
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
docker exec -it operato-edge npm run migration -- --mode=production
|
package/installer/start.sh
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
HOST_PORT=3000
|
|
2
|
-
|
|
3
|
-
if [ $# -eq 0 ] ; then
|
|
4
|
-
echo "Warning: default port 3000"
|
|
5
|
-
else
|
|
6
|
-
HOST_PORT=$1
|
|
7
|
-
fi
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
echo "HOST_PORT : ${HOST_PORT}"
|
|
11
|
-
|
|
12
|
-
echo "HostPort="$HOST_PORT > .env
|
|
13
|
-
|
|
14
|
-
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
|
15
|
-
xhost +"local:docker@"
|
|
16
|
-
fi
|
|
17
|
-
|
|
18
|
-
docker-compose up -d
|
package/installer/stop.sh
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
docker-compose stop
|
package/installer/upgrade.sh
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
curl -fsSL https://raw.githubusercontent.com/things-factory/things-factory/master/packages/operato-edge/installer/install.sh | bash -s
|