{"id":21274920,"url":"https://github.com/maayanlab/signature-commons","last_synced_at":"2025-03-15T12:45:08.284Z","repository":{"id":43969481,"uuid":"165935993","full_name":"MaayanLab/signature-commons","owner":"MaayanLab","description":"A docker-compose for deploying the entire signature-commons stack","archived":false,"fork":false,"pushed_at":"2023-04-30T06:20:39.000Z","size":527,"stargazers_count":2,"open_issues_count":3,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-01-22T03:15:34.019Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MaayanLab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-15T22:53:13.000Z","updated_at":"2020-11-09T21:23:58.000Z","dependencies_parsed_at":"2024-11-21T09:38:55.251Z","dependency_job_id":null,"html_url":"https://github.com/MaayanLab/signature-commons","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaayanLab%2Fsignature-commons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaayanLab%2Fsignature-commons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaayanLab%2Fsignature-commons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaayanLab%2Fsignature-commons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaayanLab","download_url":"https://codeload.github.com/MaayanLab/signature-commons/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243732255,"owners_count":20338831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-21T09:26:21.620Z","updated_at":"2025-03-15T12:45:08.259Z","avatar_url":"https://github.com/MaayanLab.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Signature Commons: Docker Compose\n\nThis configuration file is designed to make it easy to deploy the entire signature-commons software architecture on any cloud with docker-compose support.\n\nIt uses an nginx proxy to proxy connections from the outside world to the docker containers:\n- `maayanlab/signature-commons-metadata-api`\n- `maayanlab/enrichmentapi`\n\nIt can also optionally host the signature commons metadata database.\n\n## Using this repo\nThis is a mono-repo for all of the signature commons applications. It uses `git submodules` to organize the separate repositories into one and `lerna` for linking together javascript related dependencies. Cloning the repository and all the submodules can be done with:\n\n```bash\ngit clone --recurse-submodules git@github.com:dcic/signature-commons.git\n```\n\nIf you already have it cloned, you can get all the submodules with:\n```bash\ngit submodule update --init --recursive\n```\n\n## .env\nMany aspects of the application can be configured via environment variables--copy `.env.example` to `.env` and modify as needed.\n\n\n## Refreshing APIs\nMetadata DB: Trigger the API to refresh the cached views/indecies\n```bash\ndocker-compose exec metadata-api /bin/bash -c \"npx typeorm migration:revert \u0026\u0026 npx typeorm migration:run\"\n```\n\nData DB: Trigger the API to load the desired data.\n```bash\n# The variables here should be replaced with .env settings, `file` should be set with the file used during ingestion.\ncurl -H 'Content-Type: application/json' -H \"Authorization: Token ${TOKEN}\" -X POST 'http://localhost/enrichmentapi/api/v1/load' -d \"{\\\"bucket\\\": \\\"${AWS_BUCKET}\\\", \\\"file\\\": \\\"${file}.so\\\", \\\"datasetname\\\": \\\"${file}\\\"}'\n```\n\n## Performing ingestion\n```bash\n# Setup virtualenv\npython3 -m venv venv\nsource venv/bin/activate\n\ncd ingestion\npip install -r requirements.txt\npython ingest.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaayanlab%2Fsignature-commons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaayanlab%2Fsignature-commons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaayanlab%2Fsignature-commons/lists"}