Fix docker install to have all projects (#3200)

* Fix docker install to have all projects

* Fix

* Fixes
This commit is contained in:
Charles Bochet 2024-01-02 14:31:21 +01:00 committed by GitHub
parent 2204345300
commit 3d16ad8efd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 20 deletions

View File

@ -1,13 +1,12 @@
dev-build:
@docker compose -f dev/docker-compose.yml down
rm -rf ../twenty-front/node_modules
rm -rf ../twenty-server/node_modules
rm -rf ../twenty-docs/node_modules
@docker volume rm twenty_dev_node_modules_root > /dev/null 2>&1 || true
@docker volume rm twenty_dev_node_modules_docs > /dev/null 2>&1 || true
@docker volume rm twenty_dev_node_modules_eslint > /dev/null 2>&1 || true
@docker volume rm twenty_dev_node_modules_front > /dev/null 2>&1 || true
@docker volume rm twenty_dev_node_modules_server > /dev/null 2>&1 || true
@docker volume rm twenty_dev_node_modules_docs > /dev/null 2>&1 || true
@docker volume rm twenty_dev_node_modules_root > /dev/null 2>&1 || true
@docker volume rm twenty_dev_node_modules_yarn > /dev/null 2>&1 || true
@docker volume rm twenty_dev_node_modules_website > /dev/null 2>&1 || true
@docker volume rm twenty_dev_node_modules_zapier > /dev/null 2>&1 || true
@docker compose -f dev/docker-compose.yml build
dev-up:

View File

@ -9,13 +9,14 @@ services:
- "3001:3001"
- "6006:6006"
volumes:
- ../../../packages/twenty-front:/app/packages/twenty-front
- ../../../packages/twenty-server:/app/packages/twenty-server
- ../../../packages/eslint-plugin-twenty:/app/packages/eslint-plugin-twenty
- ../../..:/app
- twenty_dev_node_modules_root:/app/node_modules
- twenty_dev_node_modules_yarn:/app/.yarn
- twenty_dev_node_modules_docs:/app/packages/twenty-docs/node_modules
- twenty_dev_node_modules_eslint:/app/packages/eslint-plugin-twenty/node_modules
- twenty_dev_node_modules_front:/app/packages/twenty-front/node_modules
- twenty_dev_node_modules_server:/app/packages/twenty-server/node_modules
- twenty_dev_node_modules_website:/app/packages/twenty-website/node_modules
- twenty_dev_node_modules_zapier:/app/packages/twenty-zapier/node_modules
depends_on:
- postgres
postgres:
@ -33,7 +34,10 @@ volumes:
twenty_db_data:
name: twenty_db_data
twenty_dev_node_modules_root:
twenty_dev_node_modules_yarn:
twenty_dev_node_modules_docs:
twenty_dev_node_modules_eslint:
twenty_dev_node_modules_front:
twenty_dev_node_modules_server:
twenty_dev_node_modules_docs:
twenty_dev_node_modules_website:
twenty_dev_node_modules_zapier:

View File

@ -1,14 +1,6 @@
FROM node:18.16-bullseye as twenty-dev
WORKDIR /app
COPY ./package.json .
COPY ./yarn.lock .
COPY ./.yarnrc.yml .
COPY ./.yarn/releases /app/.yarn/releases
COPY ./packages/twenty-front/package.json /app/packages/twenty-front/package.json
COPY ./packages/twenty-server/package.json /app/packages/twenty-server/package.json
COPY ./packages/twenty-server/patches /app/packages/twenty-server/patches
COPY ./packages/eslint-plugin-twenty/package.json /app/packages/eslint-plugin-twenty/package.json
RUN npx playwright install-deps

View File

@ -118,6 +118,10 @@ You should now have:
Sign in using a seeded demo account `tim@apple.dev` (password: `Applecar2025`) to start using Twenty.
## Step 6: Configure your IDE
As you are executing the project inside a Docker container, you need to configure your IDE to use the same environment.
You can find the instructions for your IDE in our [IDE setup](/contributor/local-setup/ide-setup) guide.
### Troubleshooting