Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docker install to have all projects #3200

Merged
merged 3 commits into from
Jan 2, 2024
Merged

Conversation

charlesBochet
Copy link
Member

@charlesBochet charlesBochet commented Jan 2, 2024

In this PR, we are updating the docker-compose dev configuration to share the whole root folder with Docker. This is simplifying the setup.

As an output, the dev docker image is 1.5GB and a volume is created for each node_module instance (so node_modules built in docker are not visible on the host file system).

I have also made a direct link to the IDE setup dock in the Docker setup doc to make sure contributors are also following it

@@ -1,14 +1,6 @@
FROM node:18.16-bullseye as twenty-dev

WORKDIR /app
COPY ./package.json .
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not useful as we don't yarn install anymore at build stage

- ../../../packages/twenty-front:/app/packages/twenty-front
- ../../../packages/twenty-server:/app/packages/twenty-server
- ../../../packages/eslint-plugin-twenty:/app/packages/eslint-plugin-twenty
- ../../..:/app
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's it!

@charlesBochet charlesBochet merged commit 3d16ad8 into main Jan 2, 2024
12 of 13 checks passed
@charlesBochet charlesBochet deleted the fix-docker-install branch January 2, 2024 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants