mirror of https://github.com/nocodb/nocodb
Pranav C
3 years ago
3 changed files with 34 additions and 15 deletions
@ -1,15 +1,34 @@ |
|||||||
version: "3.5" |
version: "3.5" |
||||||
|
|
||||||
services: |
services: |
||||||
xc-cypress-test: |
mysql: |
||||||
image: node:12.22.1-slim |
image: mysql:5.7 |
||||||
ports: |
restart: always |
||||||
- 8080:8080 |
environment: |
||||||
volumes: |
MYSQL_ROOT_PASSWORD: password |
||||||
- ./packages/nocodb:/home/app |
ports: |
||||||
command: |
- 3306:3306 |
||||||
- /bin/bash |
volumes: |
||||||
- -c |
- ./packages/nocodb/tests/mysql-sakila-db:/docker-entrypoint-initdb.d |
||||||
- | |
healthcheck: |
||||||
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" |
test: "/etc/init.d/mysql status" |
||||||
cd /home/app/ && npm i && npm run run |
interval: 1s |
||||||
|
retries: 240 |
||||||
|
xc-cypress-nocodb: |
||||||
|
image: node:12.22.1-slim |
||||||
|
ports: |
||||||
|
- "8080:8080" |
||||||
|
volumes: |
||||||
|
- ./packages/:/home/packages/ |
||||||
|
depends_on: |
||||||
|
- mysql |
||||||
|
command: |
||||||
|
- /bin/bash |
||||||
|
- -c |
||||||
|
- | |
||||||
|
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" |
||||||
|
apt-get update && apt-get install rsync -y |
||||||
|
cp -r /home/packages/ /home/app/ |
||||||
|
cd /home/app/nc-gui && npm i && npm run build:copy && cd ../nc-lib-gui && npm i |
||||||
|
rm -rf /home/app/nocodb/node_modules/nc-lib-gui |
||||||
|
cd /home/app/nocodb && npm i ../nc-lib-gui ; npm i && npm run run |
||||||
|
Loading…
Reference in new issue