-
-
Notifications
You must be signed in to change notification settings - Fork 247
Provide Dockerfile for devs #1960
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
Conversation
Running Code Quality on PRs by uploading data to Trunk will soon be removed. You can still run checks on your PRs using trunk-action - see the migration guide for more information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Adds a complete developer Docker setup including an entrypoint script, Dockerfile, and updates to docker-compose and docs to streamline local environment provisioning.
- Introduces
entrypoint.sh
to bootstrap.env
, link frontend assets, and start backend, worker, and frontend processes. - Provides a new
Dockerfile
that installs system dependencies, pyenv, Node via nvm, RAHasher, and Python tooling. - Updates
docker-compose.yml
with aromm-dev
service, default env fallbacks, and exposes ports for all containers. - Adjusts
DEVELOPER_SETUP.md
to reference the new container names.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
entrypoint.sh | New script to initialize environment and launch services |
docker-compose.yml | Added romm-dev service, default fallbacks, and fixed port mappings |
Dockerfile | Added image build steps for dependencies, pyenv, nvm, and project setup |
DEVELOPER_SETUP.md | Updated example commands to use renamed containers |
Comments suppressed due to low confidence (4)
docker-compose.yml:19
- This volume line omits the host:container mapping. Specify both sides (e.g.,
./romm_mock:/app/backend/romm_mock
) to ensure the correct directory is mounted.
- /app/backend/romm_mock # Empty directory
docker-compose.yml:21
- Missing host:container syntax here—add a host path (e.g.,
./frontend/node_modules:/app/frontend/node_modules
) so the volume mounts correctly.
- /app/frontend/node_modules # Empty directory
docker-compose.yml:22
- This entry lacks the host side of the mount. It should follow
host_path:container_path
format (for example./frontend/dist:/app/frontend/dist
).
- /app/frontend/dist # Empty directory
docker-compose.yml:59
- [nitpick] The service is named
romm-postgres-dev
but the container isromm-postgresql-dev
; consider aligning these for consistency.
container_name: romm-postgresql-dev
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Description
Explain the changes or enhancements you are proposing with this pull request.
This PR provides a Dockerfile and container devs can run to quick start development on their local machine, without having to install all the required dependencies.
Fixes #1954
Checklist
Please check all that apply.
Screenshots