{"id":19174625,"url":"https://github.com/equalitie/open-corroborator-deploy","last_synced_at":"2026-02-27T16:11:42.419Z","repository":{"id":151043742,"uuid":"52087542","full_name":"equalitie/open-corroborator-deploy","owner":"equalitie","description":"Issues relating to deploying Corroborator rather than the code itself.","archived":false,"fork":false,"pushed_at":"2016-04-22T14:23:37.000Z","size":38,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-04T01:36:42.976Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/equalitie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-02-19T12:54:15.000Z","updated_at":"2017-05-05T11:26:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"e3542701-6f89-4beb-9d6b-24968129f7c1","html_url":"https://github.com/equalitie/open-corroborator-deploy","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/equalitie%2Fopen-corroborator-deploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equalitie%2Fopen-corroborator-deploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equalitie%2Fopen-corroborator-deploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equalitie%2Fopen-corroborator-deploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/equalitie","download_url":"https://codeload.github.com/equalitie/open-corroborator-deploy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240254182,"owners_count":19772386,"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-09T10:18:33.284Z","updated_at":"2026-02-27T16:11:37.396Z","avatar_url":"https://github.com/equalitie.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# open-corroborator-deploy\n\nDeployment routines for Corroborator.\n\n## Installation\n\nInstall Ansible:\n\n```\nsudo apt-get install ansible\n```\n\nTo test deployment on local virtual machines, install Vagrant from https://www.vagrantup.com/downloads.html\n\n\n## VM install\n\nTo create a local virtual machine (VM) and install the software stack onto it:\n\n```\nvagrant up\n```\n\nThis uses Vagrant to create the VM and then Vagrant uses Ansible to install the stack with an environment of 'vm' which uses the ansible `group_vars/vm` settings and the Django `corroborator/settings/vm.py` configuration.\n\nTo test the VM, visit http://10.33.33.4/ and login as 'admin' with a password of 'password'.\n\nTo re-deploy to the running VM:\n\n```\nvagrant provision\n```\n\nor\n\n```\nansible-playbook -i ansible/vm ansible/site.yml\n```\n\nTo stop the local VM:\n\n```\nvagrant halt\n```\n\nTo destroy the local VM:\n\n```\nvagrant destroy server1\n```\n\n## Create another installation\nTo use Ansible to install the stack to another target/environment, e.g. _ENV_:\n\n### Create deployment files\nIn this corroborator-deploy project:\n\n * create an Ansible inventory file, ENV, to give the target machine location - **make sure** the prefix to the `:children` entry is updated to ENV:\n \n```\n[ENV:children]\nwebservers\n```\n\n * create an Ansible groups_vars/ENV directory and main.yml file to give the server name, git branch, database password, etc.\n\n### Create settings file\nIn the open-corroborator project:\n\n * create a Django settings file, corroborator/settings/ENV.py, to give the media locations, initial (non-secret) database password, etc.\n \nBy default, uploaded media files are stored and served from the local disk. To store them in Amazon S3, set `QUEUED_STORAGE=True` in the Django settings file and set the `AWS_ACCESS_KEY_ID` and `AWS_STORAGE_BUCKET_NAME`).\nIf PROD_BUILD is set to True (to use a prebuilt javascript file), you should also set the Ansible variable `run_grunt: yes` (to make sure the file is rebuilt on the server)\n\n## Deploy\nPut the SSL certificate files (or links to them) in the following locations (not necessary for the VM deployment):\n\n   * /etc/ssl/private/corroborator.key\n   * /etc/ssl/certs/corroborator.pem\n   * /etc/ssl/certs/corroborator-intermediates.pem\n\nThen use Ansible to deploy everything:\n\n```\ncd ansible\nansible-playbook -i ENV site.yml -K\n```\n\nThen make secure by setting the secret settings: login to the target machine and:\n \n   a. manually change the secret database password settings, SECRET__KEY, etc. in `/var/local/sites/corroborator/lib/python2.7/site-packages/corroborator/settings/ENV.py`\n      (including `AWS_SECRET_ACCESS_KEY` if S3 queued storage is being used)\n      \n   b. change the mysql database password to suit\n   \n   c. restart the services:\n   \n   ```\n   sudo service corroborator-gunicorn restart\n   sudo service corroborator-celery restart\n   ```\n\n   d. change the default 'demo' and 'admin' user passwords (see below)\n\nTo test, visit the ENV server in a browser and login as 'demo' with a password of 'demo'.\nThe 'admin' user password is intially set to 'password'.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fequalitie%2Fopen-corroborator-deploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fequalitie%2Fopen-corroborator-deploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fequalitie%2Fopen-corroborator-deploy/lists"}