create-steedos-app 2.1.68 → 2.1.74
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": "create-steedos-app",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.74",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"steedos"
|
|
6
6
|
],
|
|
@@ -32,5 +32,8 @@
|
|
|
32
32
|
"cpy": "7.3.0",
|
|
33
33
|
"fs-extra": "8.1.0"
|
|
34
34
|
},
|
|
35
|
-
"
|
|
35
|
+
"resolutions": {
|
|
36
|
+
"**/chalk": "3.0.0"
|
|
37
|
+
},
|
|
38
|
+
"gitHead": "ee62091811d4fcf0e63575e9f813befe124ea66f"
|
|
36
39
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# create mongodb data directory
|
|
2
|
+
mkdir -p /workspace/mongodb/data/db
|
|
3
|
+
|
|
4
|
+
# create .env.local
|
|
5
|
+
cp .env .env.local
|
|
6
|
+
|
|
7
|
+
# replace ROOT_URL
|
|
8
|
+
root_replacement="ROOT_URL=$(gp url 5000)"
|
|
9
|
+
sed -i "/^ROOT_URL=*/c$root_replacement" .env.local
|
|
10
|
+
|
|
11
|
+
# replace METADATA_SERVER
|
|
12
|
+
meta_replacement="METADATA_SERVER=$(gp url 5000)"
|
|
13
|
+
sed -i "/^METADATA_SERVER=*/c$meta_replacement" .env.local
|
|
@@ -3,6 +3,7 @@ FROM node:12.22.7
|
|
|
3
3
|
WORKDIR /app
|
|
4
4
|
|
|
5
5
|
ADD .steedos ./.steedos/
|
|
6
|
+
ADD .scripts ./.scripts/
|
|
6
7
|
ADD services ./services/
|
|
7
8
|
ADD steedos-app ./steedos-app/
|
|
8
9
|
# ADD steedos-packages ./steedos-packages/
|
|
@@ -10,11 +11,11 @@ ADD package.json .
|
|
|
10
11
|
ADD moleculer.config.js .
|
|
11
12
|
ADD steedos-config.yml ./steedos-config.yml
|
|
12
13
|
|
|
13
|
-
RUN npm config set registry http://registry.npm.taobao.org/
|
|
14
|
-
RUN yarn config set registry http://registry.npm.taobao.org/
|
|
14
|
+
# RUN npm config set registry http://registry.npm.taobao.org/
|
|
15
|
+
# RUN yarn config set registry http://registry.npm.taobao.org/
|
|
15
16
|
|
|
16
17
|
RUN yarn
|
|
17
18
|
|
|
18
19
|
ENV NODE_ENV=production
|
|
19
20
|
|
|
20
|
-
CMD ["yarn", "start"]
|
|
21
|
+
CMD ["yarn", "start"]
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"node": ">=12"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
|
-
"start": "moleculer-runner services",
|
|
11
|
+
"start": "yarn flushCacherDB && moleculer-runner services",
|
|
12
|
+
"flushCacherDB": "node .scripts/flush_cacher_db.js",
|
|
12
13
|
"start:steedos": "cross-env NODEID=STEEDOS-SERVER moleculer-runner services/steedos-server",
|
|
13
14
|
"start:app": "cross-env NODEID=STEEDOS-APP moleculer-runner --repl services/steedos-app",
|
|
14
15
|
"console": "cross-env NODEID=STEEDOS-CONSOLE moleculer connect --config ./moleculer.config.js",
|
|
@@ -39,6 +40,7 @@
|
|
|
39
40
|
"homepage": "https://www.steedos.com",
|
|
40
41
|
"resolutions": {
|
|
41
42
|
"typeorm": "0.2.28",
|
|
43
|
+
"**/chalk": "3.0.0",
|
|
42
44
|
"**/lodash": "^4.17.15",
|
|
43
45
|
"**/handlebars": "^4.3.0",
|
|
44
46
|
"**/debug": "^3.1.0",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
image: steedos/gitpod-workspace-base:latest
|
|
1
|
+
image: ecr.aws.steedos.cn/dockerhub/steedos/gitpod-workspace-base:latest
|
|
2
2
|
|
|
3
3
|
# List the ports you want to expose and what to do when they are served. See https://www.gitpod.io/docs/config-ports/
|
|
4
4
|
ports:
|
|
@@ -17,15 +17,19 @@ ports:
|
|
|
17
17
|
visibility: public
|
|
18
18
|
# List the start up tasks. You can start them in parallel in multiple terminals. See https://www.gitpod.io/docs/config-start-tasks/
|
|
19
19
|
tasks:
|
|
20
|
-
-
|
|
20
|
+
- name: MongoDB
|
|
21
|
+
init: sh ./.scripts/setup.sh
|
|
21
22
|
command: |
|
|
22
23
|
mongod --replSet rs0 --dbpath /workspace/mongodb/data/db
|
|
23
24
|
- command: |
|
|
24
25
|
gp await-port 27017
|
|
25
26
|
mongo steedos --eval "rs.initiate()"
|
|
26
|
-
|
|
27
|
+
exit
|
|
28
|
+
- name: Redis
|
|
29
|
+
command: |
|
|
27
30
|
redis-server --save "" --appendonly no --client-output-buffer-limit replica 0 0 0 --client-output-buffer-limit pubsub 0 0 0 --client-output-buffer-limit slave 0 0 0
|
|
28
|
-
-
|
|
31
|
+
- name: Steedos
|
|
32
|
+
init: |
|
|
29
33
|
yarn install
|
|
30
34
|
command: |
|
|
31
35
|
gp await-port 27017
|
|
@@ -38,3 +42,4 @@ vscode:
|
|
|
38
42
|
- redhat.vscode-yaml
|
|
39
43
|
- steedos.steedosdx-vscode
|
|
40
44
|
- steedos.steedosdx-vscode-core
|
|
45
|
+
- ms-ceintl.vscode-language-pack-zh-hans
|