forked from nocodb/nocodb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-cypress.yml
63 lines (47 loc) · 1.35 KB
/
docker-compose-cypress.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: "3.5"
services:
xc-mysql-sakila-db:
network_mode: host
image: mysql:8.0
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
volumes:
- ./packages/nocodb/tests/mysql-sakila-db:/docker-entrypoint-initdb.d
xc-cypress-nocodb:
network_mode: host
image: node:14-alpine
environment:
- EE=true
volumes:
- ./packages/nocodb:/home/app
command:
- /bin/sh
- -c
- |
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
# cp -r /home/app1/ /home/app/
rm /home/app/package-lock.json
rm /home/app/noco.db
cd /home/app/ && npm i && EE=true npm run run
# cd /home/app/ && npm i && EE=true npm run watch:run
xc-cypress-nc-gui:
network_mode: host
image: node:14-alpine
environment:
- HOST=0.0.0.0
- PORT=3000
- EE=true
volumes:
- ./packages/nc-gui:/home/app
- ./packages/nc-lib-gui:/home/nc-lib-gui
command:
- /bin/sh
- -c
- |
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
apk --update --no-cache add git
# cp -r /home/app1/ /home/app/
rm /home/app/package-lock.json
# cd /home/app/ && npm i && npm run dev
cd /home/app/ && npm i && NODE_ENV=development npm run build && npm start