{"id":18918052,"url":"https://github.com/piccolo-orm/piccolo_docker","last_synced_at":"2025-04-15T09:32:18.490Z","repository":{"id":46797597,"uuid":"405919113","full_name":"piccolo-orm/piccolo_docker","owner":"piccolo-orm","description":"Easily spin up databases for your Piccolo project using Docker","archived":false,"fork":false,"pushed_at":"2021-09-25T06:01:32.000Z","size":86,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T19:44:39.617Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/piccolo-orm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-13T09:57:07.000Z","updated_at":"2023-07-06T00:27:31.000Z","dependencies_parsed_at":"2022-09-05T11:40:21.287Z","dependency_job_id":null,"html_url":"https://github.com/piccolo-orm/piccolo_docker","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piccolo-orm%2Fpiccolo_docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piccolo-orm%2Fpiccolo_docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piccolo-orm%2Fpiccolo_docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piccolo-orm%2Fpiccolo_docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piccolo-orm","download_url":"https://codeload.github.com/piccolo-orm/piccolo_docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249043006,"owners_count":21203398,"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-08T10:29:26.833Z","updated_at":"2025-04-15T09:32:18.055Z","avatar_url":"https://github.com/piccolo-orm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## piccolo_docker\nEasily spin up databases for your Piccolo project using Docker\n\n### Requirements\n- [Install poetry](https://python-poetry.org/docs/#installation)\n- [Install docker](https://docs.docker.com/get-docker/)\n\n### Setup\n\n- Clone this repo\n- Open `.env`\n- Add database name\n- Add password. If you don't a random password will be generated that can be seen with `docker inspect --format=\"{{index .Config.Env 0}}\" your_container_name`\n- Change the unique container name if you don't want to use the default\n- To add use this app to your Piccolo project, add it to your `AppRegistry` in `piccolo_conf.py` with: `APP_REGISTRY = AppRegistry(apps=[\"piccolo_docker.user.piccolo_app\"])`\n\n\n### Usage\n- `piccolo dockerdb create`\ncreates new postgres container with your piccolo database.\n\n- `piccolo dockerdb stop`\nstops the docker container.\n\n- `piccolo dockerdb start`\nstarts the docker container.\n\n- `piccolo dockerdb destroy`\ndestroys the docker container. This is irreversible.\n\n### Tests\nSimply run:\n`pytest -vv tests/`\n\nFor the `nox` tests you'll probably need pyenv and all versions of python that are declared inside `noxfile.py`\n\n### Improvements\n- Test against multiple versions of postgres\n- Test against more versions of python.\n\n\n### To Contribute\n- Fork the repo\n- Have a look around\n- Make sure you install [pre-commit](https://pre-commit.com/)\n- Do a small PR for early feedback\n- Enjoy!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiccolo-orm%2Fpiccolo_docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiccolo-orm%2Fpiccolo_docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiccolo-orm%2Fpiccolo_docker/lists"}