File tree Expand file tree Collapse file tree 4 files changed +69
-0
lines changed Expand file tree Collapse file tree 4 files changed +69
-0
lines changed Original file line number Diff line number Diff line change @@ -43,4 +43,5 @@ install/
43
43
superset-frontend /cypress-base /
44
44
superset-frontend /coverage /
45
45
superset /static /assets /
46
+ superset-websocket /dist /
46
47
venv
Original file line number Diff line number Diff line change @@ -61,6 +61,34 @@ services:
61
61
environment :
62
62
CYPRESS_CONFIG : " ${CYPRESS_CONFIG}"
63
63
64
+ superset-websocket :
65
+ container_name : superset_websocket
66
+ build : ./superset-websocket
67
+ image : superset-websocket
68
+ ports :
69
+ - 8080:8080
70
+ depends_on :
71
+ - redis
72
+ # Mount everything in superset-websocket into container and
73
+ # then exclude node_modules and dist with bogus volume mount.
74
+ # This is necessary because host and container need to have
75
+ # their own, separate versions of these files. .dockerignore
76
+ # does not seem to work when starting the service through
77
+ # docker-compose.
78
+ #
79
+ # For example, node_modules may contain libs with native bindings.
80
+ # Those bindings need to be compiled for each OS and the container
81
+ # OS is not necessarily the same as host OS.
82
+ volumes :
83
+ - ./superset-websocket:/home/superset-websocket
84
+ - /home/superset-websocket/node_modules
85
+ - /home/superset-websocket/dist
86
+ environment :
87
+ - PORT=8080
88
+ - REDIS_HOST=redis
89
+ - REDIS_PORT=6379
90
+ - REDIS_SSL=false
91
+
64
92
superset-init :
65
93
image : *superset-image
66
94
container_name : superset_init
Original file line number Diff line number Diff line change
1
+ # Licensed to the Apache Software Foundation (ASF) under one or more
2
+ # contributor license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright ownership.
4
+ # The ASF licenses this file to You under the Apache License, Version 2.0
5
+ # (the "License"); you may not use this file except in compliance with
6
+ # the License. You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ node_modules /
16
+ dist /
Original file line number Diff line number Diff line change
1
+ # Licensed to the Apache Software Foundation (ASF) under one or more
2
+ # contributor license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright ownership.
4
+ # The ASF licenses this file to You under the Apache License, Version 2.0
5
+ # (the "License"); you may not use this file except in compliance with
6
+ # the License. You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ FROM node:14.16.1
16
+
17
+ WORKDIR /home/superset-websocket
18
+
19
+ COPY . .
20
+
21
+ RUN npm ci
22
+ RUN npm run build
23
+
24
+ CMD ["npm" , "start" ]
You can’t perform that action at this time.
0 commit comments