Repository navigation
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR introduces minor local development setup improvements and updates documentation accordingly.
- Added a complete docker-compose.yaml for local development with updated services and volumes.
- Modified documentation in both development_setup.md and upgrading.md to reflect the updated docker compose commands.
- Updated environment variables in .env.dev and adjusted container networking configuration in the devcontainer compose file.
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| docker-compose.yaml | Added full service definitions for local development. |
| argilla/docs/getting_started/development_setup.md | Updated Docker command instructions. |
| argilla/docs/admin_guide/upgrading.md | Updated Docker commands and file references. |
| argilla-server/.env.dev | Adjusted database and Elasticsearch connection details. |
| .devcontainer/docker-compose/docker-compose.yml | Commented out network_mode for potential network issues. |
Comments suppressed due to low confidence (1)
.devcontainer/docker-compose/docker-compose.yml:33
- Commenting out 'network_mode: host' may affect container networking; verify that the current setup meets the connectivity requirements for your development environment.
# network_mode: host
| - ARGILLA_ELASTICSEARCH=${ARGILLA_ELASTICSEARCH} | ||
| - ARGILLA_REDIS_URL=${ARGILLA_REDIS_URL} | ||
| - ARGILLA_DEFAULT_USERNAME=argilla | ||
| - ARGILLA_DEFAULT_PASSWORD=12345678 |
There was a problem hiding this comment.
[nitpick] The default password '12345678' is weak; if this configuration is used beyond local development, consider using a stronger password or configuring it securely.
| - ARGILLA_DEFAULT_PASSWORD=12345678 | |
| - ARGILLA_DEFAULT_PASSWORD=${ARGILLA_DEFAULT_PASSWORD} | |
| # Ensure ARGILLA_DEFAULT_PASSWORD is set to a strong password in the environment, especially for production. |
|
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
❌ 3 Tests Failed:
View the top 3 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
|
Hi @priyankeshh , thanks for this. I realize the dev environment setup is not currently ideal for your workflow. To understand the current issues you have, can you list out the reasons for the files you added? We can discuss more about this in greater depth in our next weekly check-in, by going through current dev setup issues and discussing options to make setting up test servers easier. |
|
Hi @JonnyTran sorry for the late reply. Here's why I made the changes:
These changes allowed me to successfully run the project locally. |
JonnyTran
left a comment
There was a problem hiding this comment.
Hi @JonnyTran sorry for the late reply. Here's why I made the changes:
Added docker-compose.yaml at root level:
- Problem: Following the docs and running from .devcontainer/docker-compose/ wasn't reliable
- What I did: Added root-level config for consistent startup regardless of directory
network_mode: hostcomment-out:
- Problem: This setting caused connection issues on some systems
- What I did: Disabled it to use Docker's default networking
Database path simplification:
- Problem: Path with
${HOME}was causing permissions issues- What I did: Simplified to a relative path (
./argilla-dev.db)Elasticsearch URL fix:
- Problem:
[::1]IPv6 format wasn't resolving consistently- What I did: Changed to
localhostfor better compatibilityUse
docker compose upinstead ofdocker-compose up:
- Updated to
docker compose(vsdocker-compose) per current best practicesThese changes allowed me to successfully run the project locally.
Thanks for this overview @priyankeshh! I approved changes 2, 3, 4 and 5, with some modifications:
Regarding 3, the examples/deployments/docker/docker-composeyaml was moved to docker-compose.yaml at root level, along with some changes. Can you review this if you're able to locally deploy it, @priyankeshh ?
Regarding 1, it's not a good practice to place argilla-server/argilla-dev.db in the git repo.
… docs (#58) * setup ini * added docker compose yaml in root * added creds in docker * docs: update Docker commands in upgrading and development setup documentation * refactor: remove root docker-compose.yaml and update .env.dev for database path * chore: remove deprecated docker-compose.yaml file from deployments --------- Co-authored-by: JonnyTran <nhat.c.tran@gmail.com>
… docs (#58) * setup ini * added docker compose yaml in root * added creds in docker * docs: update Docker commands in upgrading and development setup documentation * refactor: remove root docker-compose.yaml and update .env.dev for database path * chore: remove deprecated docker-compose.yaml file from deployments --------- Co-authored-by: JonnyTran <nhat.c.tran@gmail.com>
… docs (#58) * setup ini * added docker compose yaml in root * added creds in docker * docs: update Docker commands in upgrading and development setup documentation * refactor: remove root docker-compose.yaml and update .env.dev for database path * chore: remove deprecated docker-compose.yaml file from deployments --------- Co-authored-by: JonnyTran <nhat.c.tran@gmail.com>
… docs (#58) * setup ini * added docker compose yaml in root * added creds in docker * docs: update Docker commands in upgrading and development setup documentation * refactor: remove root docker-compose.yaml and update .env.dev for database path * chore: remove deprecated docker-compose.yaml file from deployments --------- Co-authored-by: JonnyTran <nhat.c.tran@gmail.com>
Description
Related Tickets & Documents
Closes #
What type of PR is this? (check all applicable)
Steps to QA
Added/updated tests?
have not been included
Added/updated documentations?
have not been included
Checklist