Repository navigation
docs: improve HealthyCode deployment docs - #27
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>
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
| sudo docker compose -f /opt/purldb/docker-compose.yml exec web purldb \ | ||
| create-scan-queue-worker-user scancode-worker --generate-api-key <username> |
There was a problem hiding this comment.
I think this is the correct command, right ?
| 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 |
There was a problem hiding this comment.
| 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 --generate-api-key <username> |
This HealthyCode deployment docs do not ask/require edit to Line 149 in 0f12939
Once again Lines 140 to 160 in 0f12939 |
No description provided.