@things-factory/operato-ecs 8.0.40 → 9.0.0-9.0.0-beta.59.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-ecs",
3
- "version": "8.0.40",
3
+ "version": "9.0.0-9.0.0-beta.59.0",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -40,75 +40,67 @@
40
40
  "docker:push": "docker image push hatiolab/operato-ecs:latest && docker image push hatiolab/operato-ecs:$npm_package_version"
41
41
  },
42
42
  "dependencies": {
43
- "@operato/data-grist": "^8.0.0",
44
- "@operato/property-editor": "^8.0.0",
45
- "@operato/scene-auth": "^8.0.0",
46
- "@operato/scene-chartjs": "^8.0.0",
47
- "@operato/scene-clock": "^8.0.0",
48
- "@operato/scene-clone": "^8.0.0",
49
- "@operato/scene-compass": "^8.0.0",
50
- "@operato/scene-data-transform": "^8.0.0",
51
- "@operato/scene-excel": "^8.0.0",
52
- "@operato/scene-form": "^8.0.0",
53
- "@operato/scene-gantt": "^8.0.0",
54
- "@operato/scene-gauge": "^8.0.0",
55
- "@operato/scene-google-map": "^8.0.0",
56
- "@operato/scene-graphql": "^8.0.0",
57
- "@operato/scene-grist": "^8.0.0",
58
- "@operato/scene-half-roundrect": "^8.0.0",
59
- "@operato/scene-i18n": "^8.0.0",
60
- "@operato/scene-image-slider": "^8.0.0",
61
- "@operato/scene-indoor-map": "^8.0.0",
62
- "@operato/scene-integration": "^8.0.0",
63
- "@operato/scene-label": "^8.0.0",
64
- "@operato/scene-legend": "^8.0.0",
65
- "@operato/scene-manufacturing": "^8.0.0",
66
- "@operato/scene-marker": "^8.0.0",
67
- "@operato/scene-news-ticker": "^8.0.0",
68
- "@operato/scene-polypath": "^8.0.0",
69
- "@operato/scene-progressbar": "^8.0.0",
70
- "@operato/scene-random": "^8.0.0",
71
- "@operato/scene-restful": "^8.0.0",
72
- "@operato/scene-scichart": "^8.0.0",
73
- "@operato/scene-switch": "^8.0.0",
74
- "@operato/scene-tab": "^8.0.0",
75
- "@operato/scene-table": "^8.0.0",
76
- "@operato/scene-timer": "^8.0.0",
77
- "@operato/scene-visualizer": "^8.0.0",
78
- "@operato/scene-wellstek-gantt": "^8.0.0",
79
- "@operato/scene-wheel-sorter": "^8.0.0",
80
- "@things-factory/api": "^8.0.38",
81
- "@things-factory/apptool-ui": "^8.0.38",
82
- "@things-factory/auth-ui": "^8.0.38",
83
- "@things-factory/board-service": "^8.0.40",
84
- "@things-factory/board-ui": "^8.0.38",
85
- "@things-factory/context-ui": "^8.0.38",
86
- "@things-factory/dashboard": "^8.0.40",
87
- "@things-factory/evaluation": "^8.0.38",
88
- "@things-factory/export-ui": "^8.0.38",
89
- "@things-factory/help": "^8.0.38",
90
- "@things-factory/i18n-base": "^8.0.38",
91
- "@things-factory/integration-email": "^8.0.40",
92
- "@things-factory/integration-headless": "^8.0.40",
93
- "@things-factory/integration-influxdb": "^8.0.40",
94
- "@things-factory/integration-melsec": "^8.0.40",
95
- "@things-factory/integration-modbus": "^8.0.40",
96
- "@things-factory/integration-opc": "^8.0.40",
97
- "@things-factory/integration-ui": "^8.0.40",
98
- "@things-factory/lite-menu": "^8.0.40",
99
- "@things-factory/more-ui": "^8.0.38",
100
- "@things-factory/notification": "^8.0.38",
101
- "@things-factory/oauth2-client": "^8.0.38",
102
- "@things-factory/print-ui": "^8.0.38",
103
- "@things-factory/resource-ui": "^8.0.38",
104
- "@things-factory/scheduler": "^8.0.38",
105
- "@things-factory/setting-base": "^8.0.38",
106
- "@things-factory/setting-ui": "^8.0.38",
107
- "@things-factory/shell": "^8.0.38",
108
- "@things-factory/system": "^8.0.38"
43
+ "@operato/data-grist": "^9.0.0-beta",
44
+ "@operato/property-editor": "^9.0.0-beta",
45
+ "@operato/scene-auth": "^9.0.0-beta",
46
+ "@operato/scene-chartjs": "^9.0.0-beta",
47
+ "@operato/scene-clock": "^9.0.0-beta",
48
+ "@operato/scene-data-transform": "^9.0.0-beta",
49
+ "@operato/scene-excel": "^9.0.0-beta",
50
+ "@operato/scene-form": "^9.0.0-beta",
51
+ "@operato/scene-gantt": "^9.0.0-beta",
52
+ "@operato/scene-gauge": "^9.0.0-beta",
53
+ "@operato/scene-grist": "^9.0.0-beta",
54
+ "@operato/scene-half-roundrect": "^9.0.0-beta",
55
+ "@operato/scene-image-slider": "^9.0.0-beta",
56
+ "@operato/scene-integration": "^9.0.0-beta",
57
+ "@operato/scene-label": "^9.0.0-beta",
58
+ "@operato/scene-manufacturing": "^9.0.0-beta",
59
+ "@operato/scene-material-design": "^9.0.0-beta",
60
+ "@operato/scene-news-ticker": "^9.0.0-beta",
61
+ "@operato/scene-progressbar": "^9.0.0-beta",
62
+ "@operato/scene-random": "^9.0.0-beta",
63
+ "@operato/scene-restful": "^9.0.0-beta",
64
+ "@operato/scene-scichart": "^9.0.0-beta",
65
+ "@operato/scene-switch": "^9.0.0-beta",
66
+ "@operato/scene-table": "^9.0.0-beta",
67
+ "@operato/scene-timer": "^9.0.0-beta",
68
+ "@operato/scene-wellstek-gantt": "^9.0.0-beta",
69
+ "@things-factory/api": "^9.0.0-9.0.0-beta.59.0",
70
+ "@things-factory/apptool-ui": "^9.0.0-9.0.0-beta.59.0",
71
+ "@things-factory/auth-ui": "^9.0.0-9.0.0-beta.59.0",
72
+ "@things-factory/board-service": "^9.0.0-9.0.0-beta.59.0",
73
+ "@things-factory/board-ui": "^9.0.0-9.0.0-beta.59.0",
74
+ "@things-factory/context-ui": "^9.0.0-9.0.0-beta.59.0",
75
+ "@things-factory/dashboard": "^9.0.0-9.0.0-beta.59.0",
76
+ "@things-factory/evaluation": "^9.0.0-9.0.0-beta.59.0",
77
+ "@things-factory/export-ui": "^9.0.0-9.0.0-beta.59.0",
78
+ "@things-factory/help": "^9.0.0-9.0.0-beta.59.0",
79
+ "@things-factory/i18n-base": "^9.0.0-9.0.0-beta.59.0",
80
+ "@things-factory/integration-email": "^9.0.0-9.0.0-beta.59.0",
81
+ "@things-factory/integration-headless": "^9.0.0-9.0.0-beta.59.0",
82
+ "@things-factory/integration-influxdb": "^9.0.0-9.0.0-beta.59.0",
83
+ "@things-factory/integration-melsec": "^9.0.0-9.0.0-beta.59.0",
84
+ "@things-factory/integration-modbus": "^9.0.0-9.0.0-beta.59.0",
85
+ "@things-factory/integration-opc": "^9.0.0-9.0.0-beta.59.0",
86
+ "@things-factory/integration-qdrant": "^9.0.0-9.0.0-beta.59.0",
87
+ "@things-factory/integration-ui": "^9.0.0-9.0.0-beta.59.0",
88
+ "@things-factory/integration-weather": "^9.0.0-9.0.0-beta.59.0",
89
+ "@things-factory/lite-menu": "^9.0.0-9.0.0-beta.59.0",
90
+ "@things-factory/more-ui": "^9.0.0-9.0.0-beta.59.0",
91
+ "@things-factory/notification": "^9.0.0-9.0.0-beta.59.0",
92
+ "@things-factory/oauth2-client": "^9.0.0-9.0.0-beta.59.0",
93
+ "@things-factory/print-ui": "^9.0.0-9.0.0-beta.59.0",
94
+ "@things-factory/resource-ui": "^9.0.0-9.0.0-beta.59.0",
95
+ "@things-factory/scheduler": "^9.0.0-9.0.0-beta.59.0",
96
+ "@things-factory/setting-base": "^9.0.0-9.0.0-beta.59.0",
97
+ "@things-factory/setting-ui": "^9.0.0-9.0.0-beta.59.0",
98
+ "@things-factory/shell": "^9.0.0-9.0.0-beta.59.0",
99
+ "@things-factory/system": "^9.0.0-9.0.0-beta.59.0",
100
+ "@things-factory/weather": "^9.0.0-9.0.0-beta.59.0"
109
101
  },
110
102
  "devDependencies": {
111
- "@things-factory/builder": "^8.0.37"
103
+ "@things-factory/builder": "^9.0.0-9.0.0-beta.59.0"
112
104
  },
113
- "gitHead": "6f97ca5dc8aab9acaeebbd3caace0c76bab2676d"
105
+ "gitHead": "cf6ee84b991f469a4e71198b0e6314b45e9e10b8"
114
106
  }
package/schema.graphql CHANGED
@@ -532,7 +532,7 @@ type Connection {
532
532
  endpoint: String
533
533
  id: ID!
534
534
  name: String!
535
- params: String
535
+ params: Object
536
536
  state: String
537
537
  type: String
538
538
  updatedAt: DateTimeISO
@@ -552,7 +552,7 @@ input ConnectionPatch {
552
552
  endpoint: String
553
553
  id: ID
554
554
  name: String
555
- params: String
555
+ params: Object
556
556
  type: String
557
557
  }
558
558
 
@@ -723,6 +723,31 @@ input DomainInput {
723
723
  name: String!
724
724
  }
725
725
 
726
+ """Entity for DomainLink representing a connection between two domains"""
727
+ type DomainLink {
728
+ createdAt: DateTimeISO!
729
+ creator: User
730
+ id: ID!
731
+ sourceDomain: Domain!
732
+ targetDomain: Domain!
733
+ type: String!
734
+ updatedAt: DateTimeISO!
735
+ updater: User
736
+ }
737
+
738
+ type DomainLinkList {
739
+ items: [DomainLink!]!
740
+ total: Int!
741
+ }
742
+
743
+ input DomainLinkPatch {
744
+ cuFlag: String
745
+ id: ID!
746
+ sourceDomain: ObjectRef
747
+ targetDomain: ObjectRef
748
+ type: String
749
+ }
750
+
726
751
  type DomainList {
727
752
  items: [Domain!]
728
753
  total: Int
@@ -762,6 +787,8 @@ type Employee {
762
787
  address: String
763
788
  alias: String
764
789
  approvalLines: [ApprovalLine!]!
790
+ bankAccount: String
791
+ bankName: String
765
792
  contact: Contact
766
793
  controlNo: String!
767
794
  createdAt: DateTimeISO
@@ -770,8 +797,10 @@ type Employee {
770
797
  department: Department
771
798
  domain: Domain!
772
799
  email: EmailAddress
800
+ emergencyContact: String
801
+ emergencyContactPhone: String
773
802
  extension: String
774
- hiredOn: String
803
+ hiredOn: DateTimeISO
775
804
  id: ID!
776
805
  jobPosition: String
777
806
  jobResponsibility: String
@@ -781,7 +810,7 @@ type Employee {
781
810
  phone: String
782
811
  photo: String
783
812
  profile: Profile
784
- retiredAt: String
813
+ retiredOn: DateTimeISO
785
814
  supervises: [Employee!]!
786
815
  supervisor: Employee
787
816
  type: String
@@ -799,18 +828,22 @@ type EmployeeList {
799
828
  input EmployeePatch {
800
829
  active: Boolean
801
830
  alias: String
831
+ bankAccount: String
832
+ bankName: String
802
833
  contact: ObjectRefForContact
803
834
  controlNo: String
804
835
  cuFlag: String
805
836
  department: ObjectRefForDepartment
806
- hiredOn: String
837
+ emergencyContact: String
838
+ emergencyContactPhone: String
839
+ hiredOn: DateTimeISO
807
840
  id: ID
808
841
  jobPosition: String
809
842
  jobResponsibility: String
810
843
  name: String
811
844
  note: String
812
845
  photo: Upload
813
- retiredAt: String
846
+ retiredOn: DateTimeISO
814
847
  supervisor: ObjectRefForEmployee
815
848
  type: EmployeeType
816
849
  user: ObjectRefForUser
@@ -1620,6 +1653,9 @@ type Mutation {
1620
1653
  """To create domain (Only superuser is granted this privilege.)"""
1621
1654
  createDomain(domainInput: DomainPatch!): Domain!
1622
1655
 
1656
+ """To create new DomainLink"""
1657
+ createDomainLink(domainLink: NewDomainLink!): DomainLink!
1658
+
1623
1659
  """
1624
1660
  Creates a new employee record with the provided details. Optionally associates the employee with a supervisor, department, and system user. If a photo is provided, it will be attached to the employee record.
1625
1661
  """
@@ -1776,6 +1812,12 @@ type Mutation {
1776
1812
  """To delete domain (Only superuser is granted this privilege.)"""
1777
1813
  deleteDomain(name: String!): Domain!
1778
1814
 
1815
+ """To delete DomainLink"""
1816
+ deleteDomainLink(id: String!): Boolean!
1817
+
1818
+ """To delete multiple DomainLinks"""
1819
+ deleteDomainLinks(ids: [String!]!): Boolean!
1820
+
1779
1821
  """To delete domain user"""
1780
1822
  deleteDomainUser(username: String!): Boolean!
1781
1823
 
@@ -2170,6 +2212,9 @@ type Mutation {
2170
2212
  """To update domain (Only superuser is granted this privilege.)"""
2171
2213
  updateDomain(name: String!, patch: DomainPatch!): Domain!
2172
2214
 
2215
+ """To modify DomainLink information"""
2216
+ updateDomainLink(id: String!, patch: DomainLinkPatch!): DomainLink!
2217
+
2173
2218
  """To update multiple domains (Only superuser is granted this privilege.)"""
2174
2219
  updateDomains(patches: [DomainPatch!]!): Boolean!
2175
2220
 
@@ -2233,6 +2278,9 @@ type Mutation {
2233
2278
  """To modify multiple Departments' information"""
2234
2279
  updateMultipleDepartment(patches: [DepartmentPatch!]!): [Department!]!
2235
2280
 
2281
+ """To modify multiple DomainLinks' information"""
2282
+ updateMultipleDomainLink(patches: [DomainLinkPatch!]!): [DomainLink!]!
2283
+
2236
2284
  """
2237
2285
  Updates or creates multiple employee records based on the provided patches. New employees are created if the "cuFlag" is "+", and existing employees are updated if the "cuFlag" is "M".
2238
2286
  """
@@ -2446,7 +2494,7 @@ input NewConnection {
2446
2494
  edge: ObjectRef
2447
2495
  endpoint: String
2448
2496
  name: String!
2449
- params: String
2497
+ params: Object
2450
2498
  type: String
2451
2499
  }
2452
2500
 
@@ -2473,20 +2521,30 @@ input NewDepartment {
2473
2521
  picture: Upload
2474
2522
  }
2475
2523
 
2524
+ input NewDomainLink {
2525
+ sourceDomain: ObjectRef!
2526
+ targetDomain: ObjectRef!
2527
+ type: String!
2528
+ }
2529
+
2476
2530
  input NewEmployee {
2477
2531
  active: Boolean
2478
2532
  alias: String
2533
+ bankAccount: String
2534
+ bankName: String
2479
2535
  contact: ObjectRefForContact
2480
2536
  controlNo: String!
2481
2537
  department: ObjectRefForDepartment
2538
+ emergencyContact: String
2539
+ emergencyContactPhone: String
2482
2540
  extension: String
2483
- hiredOn: String
2541
+ hiredOn: DateTimeISO
2484
2542
  jobPosition: String
2485
2543
  jobResponsibility: String
2486
2544
  name: String!
2487
2545
  note: String
2488
2546
  photo: Upload
2489
- retiredAt: String
2547
+ retiredOn: DateTimeISO
2490
2548
  supervisor: ObjectRefForEmployee
2491
2549
  type: EmployeeType
2492
2550
  user: ObjectRefForUser
@@ -3119,7 +3177,7 @@ input ObjectRefForEmployee {
3119
3177
  """Field description"""
3120
3178
  description: String
3121
3179
  email: EmailAddress
3122
- hiredOn: String
3180
+ hiredOn: DateTimeISO
3123
3181
 
3124
3182
  """Field id"""
3125
3183
  id: ID!
@@ -3562,6 +3620,9 @@ type Query {
3562
3620
  """To fetch domain"""
3563
3621
  domain(id: String!): Domain!
3564
3622
 
3623
+ """To fetch multiple DomainLinks"""
3624
+ domainLinks(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): DomainLinkList!
3625
+
3565
3626
  """To fetch domain"""
3566
3627
  domainTypes: [String!]!
3567
3628
 
@@ -4255,7 +4316,7 @@ type Step {
4255
4316
  id: ID!
4256
4317
  log: Boolean
4257
4318
  name: String!
4258
- params: String
4319
+ params: Object
4259
4320
 
4260
4321
  """
4261
4322
  A boolean attribute indicating the inclusion status of an element in the result
@@ -4281,7 +4342,7 @@ input StepPatch {
4281
4342
  id: ID
4282
4343
  log: Boolean
4283
4344
  name: String
4284
- params: String
4345
+ params: Object
4285
4346
  result: Boolean
4286
4347
  sequence: Int
4287
4348
  skip: Boolean
@@ -52,7 +52,6 @@
52
52
 
53
53
  <!-- Performance tip: hint to the browser to start the handshake for the fonts site -->
54
54
  <link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin />
55
- <link href="/node_modules/@material-design-icons/font/index.css" rel="stylesheet" />
56
55
  <link href="/node_modules/material-symbols/index.css" rel="stylesheet" />
57
56
  <link href="/node_modules/@fontsource/roboto/index.css" rel="stylesheet" />
58
57
  <link rel="stylesheet" href="/theme.css" />
@@ -51,7 +51,6 @@
51
51
 
52
52
  <!-- Performance tip: hint to the browser to start the handshake for the fonts site -->
53
53
  <link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin />
54
- <link href="/node_modules/@material-design-icons/font/index.css" rel="stylesheet" />
55
54
  <link href="/node_modules/material-symbols/index.css" rel="stylesheet" />
56
55
  <link href="/node_modules/@fontsource/roboto/index.css" rel="stylesheet" />
57
56
  <link rel="stylesheet" href="/theme.css" />
@@ -1,62 +0,0 @@
1
- module.exports = {
2
- subdomain: 'system',
3
- SECRET: '0xD58F835B69C217A76CA5FA4a70a1D0d4D79dAC64', // temporary...
4
- accessTokenCookieKey: 'access_token.ecs',
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-ecs',
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
- }
@@ -1,4 +0,0 @@
1
- ---
2
- queue: local
3
-
4
- local: /app/evt_queue
@@ -1,19 +0,0 @@
1
- version: '3'
2
- services:
3
- app:
4
- container_name: operato-ecs
5
- image: hatiolab/operato-ecs:latest
6
- privileged: true
7
- volumes:
8
- - ../logs:/app/logs
9
- - ../attachments:/app/attachments
10
- - ../cache:/app/cache
11
- - ../config.development.js:/app/config.production.js
12
- - ../db.sqlite:/app/db.sqlite
13
- ports:
14
- - 4000:3000
15
- logging:
16
- driver: 'json-file'
17
- options:
18
- max-size: '100m'
19
- max-file: '3'
@@ -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-ecs
11
- image: hatiolab/operato-ecs: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-ecs
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'
@@ -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-ecs/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-ecs/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-ecs/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-ecs/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-ecs/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-ecs/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-ecs:latest
51
-
52
- docker pull hatiolab/operato-nginx:latest
53
-
54
- docker-compose create
@@ -1 +0,0 @@
1
- docker exec -it operato-ecs npx things-factory-migration --mode=production
@@ -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
@@ -1 +0,0 @@
1
- curl -fsSL https://raw.githubusercontent.com/things-factory/things-factory/master/packages/operato-ecs/installer/install.sh | bash -s