{"id":15443644,"url":"https://github.com/namuan/docker-files","last_synced_at":"2025-09-11T21:33:00.631Z","repository":{"id":139821365,"uuid":"284811250","full_name":"namuan/docker-files","owner":"namuan","description":"Source code for https://www.docker-files.com/ developed using Flask and running on DigitalOcean","archived":false,"fork":false,"pushed_at":"2021-12-12T16:42:24.000Z","size":680,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T07:41:50.528Z","etag":null,"topics":["ansible","digitalocean","flask","peewee-orm","python"],"latest_commit_sha":null,"homepage":"https://www.docker-files.com/","language":"Python","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/namuan.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":"2020-08-03T21:30:11.000Z","updated_at":"2021-12-12T16:42:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"bbd4b45e-daf3-49ce-9a36-926f401462d4","html_url":"https://github.com/namuan/docker-files","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/namuan/docker-files","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/namuan%2Fdocker-files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/namuan%2Fdocker-files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/namuan%2Fdocker-files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/namuan%2Fdocker-files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/namuan","download_url":"https://codeload.github.com/namuan/docker-files/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/namuan%2Fdocker-files/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274709106,"owners_count":25335327,"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","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ansible","digitalocean","flask","peewee-orm","python"],"created_at":"2024-10-01T19:36:01.357Z","updated_at":"2025-09-11T21:33:00.614Z","avatar_url":"https://github.com/namuan.png","language":"Python","readme":"# Docker-files\n\nDocker-files is a website to index Dockerfile and docker-compose files from open source projects.\n\n## Web-Infra\n\nSetting up infrastructure for running Flask website\n\n### Setting up venv\n\n```bash\nmake venv requirements\n```\n\n### Running on DigitalOcean\n\n*Pre-requisite*\n\n- [ ] Set `DIGITALOCEAN_ACCESS_TOKEN` environment variable to token from [Digital Ocean API Key](https://cloud.digitalocean.com/account/api/tokens).\n- [ ] Set `DIGITAL_OCEAN_SSH_FINGERPRINT` environment variable to SSH fingerprint from [Digital Ocean SSH Key](https://cloud.digitalocean.com/account/security).\n- [ ] Set `DIGITAL_OCEAN_SSH_KEY` environment variable to the file path of private SSH key. For eg. ~/.ssh/py-flask-digitalocean as this will be used when setting up the Digital Ocean droplet.\n- [ ] Set `FLASK_SECRET_KEY` environment variable as a secure random string which is used by Flask framework.\n\nThese can be setup by\n\n```bash\nexport DIGITAL_OCEAN_TOKEN=\nexport DIGITAL_OCEAN_SSH_FINGERPRINT=\nexport DIGITAL_OCEAN_SSH_KEY=\nexport FLASK_SECRET_KEY=\n```\n\n*Setting up application*\n\n- Start up DigitalOcean droplet\n\n```bash\nmake doplaybook\n```\n\n- Setup user for management and deployment\n\n```bash\nmake bootstrap\n```\n\n- Deploy Flask application\n\n```bash\nmake deployapp\n```\n\n- Setup Supervisor, Nginx etc\n\n```bash\nmake setupplaybook\n```\n\n*Updating application*\n\nTo re-deploy changes and restart supervisor daemon after deployment\n\n```bash\nmake deployapp updateapp\n```\n\n*Rollback application*\n\n```bash\nmake updateapp\n```\n\n*Cleanup*\n\nMake sure you have [doctl](https://github.com/digitalocean/doctl) installed\n\nIt can be initialised with the token in the environment variable\n\n```bash\ndoctl auth init --access-token $DIGITAL_OCEAN_TOKEN\n```\n\nThen run the following to delete the droplet.\n\n\u003e Please note that the following action is destructive and remove any unsaved changes/data on the droplet.\n\n```\nmake deleteinfra\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamuan%2Fdocker-files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnamuan%2Fdocker-files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamuan%2Fdocker-files/lists"}