Repository navigation
docs: improve HealthyCode deployment docs - #27
Open
keshav-space wants to merge 3 commits into
Open
keshav-space wants to merge 3 commits into
keshav-space wants to merge 3 commits into
Conversation
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
ziadhany
reviewed
Nov 9, 2026
Member
There was a problem hiding this comment.
Notes:
- Section: Set the
max_map_count
/etc/sysctl.confdepends on the distro. We should mention that the user should create a config file if it does not exist.
~$ ls /etc/sysctl.conf
ls: cannot access '/etc/sysctl.conf': No such file or directory
-
Section: Add PurlDB base URL and API key to ScanCode.io
What is the<username>? Do you mean the system username? -
What are the default ports for the services, and what is the default configuration for deploying them locally? I think we should have a default deployment configuration for both PurlDB and ScanCode.io to make sure users can deploy faster and then tweak the ports and services as needed.
SCIO docker.env example: (users only need to update SECRET_KEY and PURLDB_API_KEY):
POSTGRES_DB=scancodeio
POSTGRES_USER=scancodeio
POSTGRES_PASSWORD=scancodeio
POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=en_US.UTF-8 --lc-ctype=en_US.UTF-8
SCANCODEIO_DB_HOST=db
SCANCODEIO_RQ_REDIS_HOST=redis
SCANCODEIO_ASYNC=True
SCANCODEIO_WORKSPACE_LOCATION=/var/scancodeio/workspace/
GRIMOIRELAB_METRICS_EXECUTABLE=/opt/healthycode/.venv/bin/grimoirelab-metrics
SECRET_KEY="AJmckthcifSC8eegdsfsdgdsfhdfshdjhhdkhghgfjfjF"
PURLDB_URL=http://localhost
PURLDB_API_KEY="...."
GRIMOIRELAB_URL="http://grimoirelab-nginx:8000/"
GRIMOIRELAB_OPENSEARCH_URL="https://grimoirelab-opensearch:9200/"
GRIMOIRELAB_ECOSYSTEM="npmlargerecosystem"
GRIMOIRELAB_PROJECT="npmmostused"
GRIMOIRELAB_OPENSEARCH_INDEX="events"
# Populate this using value from GRIMOIRELAB_SUPERUSER_USERNAME
# and GRIMOIRELAB_SUPERUSER_PASSWORD set earlier in
# /opt/healthycode/deploy/docker-compose/docker-compose-grimoirelab2.yml
GRIMOIRELAB_USERNAME="admin"
GRIMOIRELAB_PASSWORD="admin"
# Populate this using value from GRIMOIRELAB_ARCHIVIST_STORAGE_USERNAME
# and GRIMOIRELAB_ARCHIVIST_STORAGE_PASSWORD set earlier in
# /opt/healthycode/deploy/docker-compose/docker-compose-grimoirelab2.yml
GRIMOIRELAB_OPENSEARCH_USERNAME="admin"
GRIMOIRELAB_OPENSEARCH_PASSWORD="GrimoireLab.1"
ALLOWED_HOSTS=localhost
CSRF_TRUSTED_ORIGINS=http://localhost:8443
NGINX_PUBLISHED_HTTP_PORT=8081
NGINX_PUBLISHED_HTTPS_PORT=8443
PURLDB docker.env example: (users only need to update SECRET_KEY):
POSTGRES_DB=packagedb
POSTGRES_USER=packagedb
POSTGRES_PASSWORD=packagedb
POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=en_US.UTF-8 --lc-ctype=en_US.UTF-8
PACKAGEDB_DB_HOST=db
PURLDB_REDIS_HOST=redis
PURLDB_ASYNC=True
SECRET_KEY="AJmckthcifSC8eegdsfdhsdfhejtrsdgdsfhdfshdjhhdkhghgfjfjF"
ALLOWED_HOSTS=localhost
SITE_URL=localhost
PURLDB_PUBLIC_SETUP=True
REST_API_ENDPOINTS=scan_queue,health,packages
Comment on lines
+181
to
+182
| sudo docker compose -f /opt/purldb/docker-compose.yml exec web purldb \ | ||
| create-scan-queue-worker-user scancode-worker --generate-api-key <username> |
Member
There was a problem hiding this comment.
I think this is the correct command, right ?
Suggested change
| sudo docker compose -f /opt/purldb/docker-compose.yml exec web purldb \ | |
| create-scan-queue-worker-user scancode-worker --generate-api-key <username> | |
| sudo docker compose -f /opt/purldb/docker-compose.yml exec web purldb \ | |
| create-scan-queue-worker-user <username> --generate-api-key |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.