mirror of https://github.com/nocodb/nocodb
4 changed files with 78 additions and 33 deletions
@ -1,34 +1,43 @@ |
|||||||
version: "3.5" |
version: "3.5" |
||||||
|
|
||||||
services: |
services: |
||||||
mysql: |
db80: |
||||||
image: mysql:5.7 |
network_mode: host |
||||||
restart: always |
image: mysql:8.0 |
||||||
environment: |
restart: always |
||||||
MYSQL_ROOT_PASSWORD: password |
environment: |
||||||
ports: |
MYSQL_ROOT_PASSWORD: password |
||||||
- 3306:3306 |
ports: |
||||||
volumes: |
- 3306:3306 |
||||||
- ./packages/nocodb/tests/mysql-sakila-db:/docker-entrypoint-initdb.d |
volumes: |
||||||
healthcheck: |
- ./packages/nocodb/tests/mysql-sakila-db:/docker-entrypoint-initdb.d |
||||||
test: "/etc/init.d/mysql status" |
|
||||||
interval: 1s |
|
||||||
retries: 240 |
|
||||||
xc-cypress-nocodb: |
xc-cypress-nocodb: |
||||||
|
network_mode: host |
||||||
image: node:12.22.1-slim |
image: node:12.22.1-slim |
||||||
ports: |
ports: |
||||||
- "8080:8080" |
- "8080:8080" |
||||||
volumes: |
volumes: |
||||||
- ./packages/:/home/packages/ |
- ./packages/nocodb:/home/app |
||||||
depends_on: |
command: |
||||||
- mysql |
- /bin/bash |
||||||
|
- -c |
||||||
|
- | |
||||||
|
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" |
||||||
|
cd /home/app/ && npm i && npm run run |
||||||
|
xc-cypress-nc-gui: |
||||||
|
network_mode: host |
||||||
|
image: node:12.22.1-slim |
||||||
|
ports: |
||||||
|
- "3000:3000" |
||||||
|
environment: |
||||||
|
- HOST=0.0.0.0 |
||||||
|
- PORT=3000 |
||||||
|
volumes: |
||||||
|
- ./packages/nc-gui:/home/app |
||||||
|
- ./packages/nc-lib-gui:/home/nc-lib-gui |
||||||
command: |
command: |
||||||
- /bin/bash |
- /bin/bash |
||||||
- -c |
- -c |
||||||
- | |
- | |
||||||
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" |
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" |
||||||
apt-get update && apt-get install rsync -y |
cd /home/app/ && npm i && npm run dev |
||||||
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