Skip to content

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

Merged
merged 10 commits into from
Jun 19, 2025
Merged

Provide Dockerfile for devs #1960

merged 10 commits into from
Jun 19, 2025

Conversation

gantoine
Copy link
Member

@gantoine gantoine commented Jun 9, 2025

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.

  • I've tested the changes locally
  • I've updated relevant comments
  • I've assigned reviewers for this PR
  • I've added unit tests that cover the changes

Screenshots

Copy link

trunk-io bot commented Jun 9, 2025

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.

@gantoine gantoine requested review from zurdi15, Copilot and adamantike and removed request for zurdi15 June 19, 2025 03:24
Copy link
Contributor

@Copilot Copilot AI left a 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 a romm-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 is romm-postgresql-dev; consider aligning these for consistency.
    container_name: romm-postgresql-dev

gantoine and others added 4 commits June 18, 2025 23:49
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@gantoine gantoine marked this pull request as ready for review June 19, 2025 03:54
Copy link
Contributor

@adamantike adamantike left a comment

Choose a reason for hiding this comment

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

🚀

@gantoine gantoine merged commit 6e951b1 into master Jun 19, 2025
7 checks passed
@gantoine gantoine deleted the dev-dockerfile branch June 19, 2025 14:04
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.

2 participants