{"id":19874098,"url":"https://github.com/pythoninthegrass/pulumi_docker","last_synced_at":"2025-03-01T01:22:50.150Z","repository":{"id":260383155,"uuid":"881022808","full_name":"pythoninthegrass/pulumi_docker","owner":"pythoninthegrass","description":"Use Pulumi's Docker provider to deploy containers locally and remotely.","archived":false,"fork":false,"pushed_at":"2025-02-07T22:51:01.000Z","size":93,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-21T21:49:55.906Z","etag":null,"topics":["docker","pulumi","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pythoninthegrass.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":"2024-10-30T19:28:31.000Z","updated_at":"2024-11-04T00:11:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"fb194c0e-a0a6-4e77-a996-81a3d0e8832f","html_url":"https://github.com/pythoninthegrass/pulumi_docker","commit_stats":null,"previous_names":["pythoninthegrass/pulumi_docker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Fpulumi_docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Fpulumi_docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Fpulumi_docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Fpulumi_docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pythoninthegrass","download_url":"https://codeload.github.com/pythoninthegrass/pulumi_docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241301727,"owners_count":19940696,"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":["docker","pulumi","python"],"created_at":"2024-11-12T16:21:41.314Z","updated_at":"2025-03-01T01:22:50.125Z","avatar_url":"https://github.com/pythoninthegrass.png","language":"Python","readme":"# pulumi_docker\n\nUse Pulumi's Docker provider to deploy containers locally and remotely.\n\n## Minimum Requirements\n\n* [Pulumi](https://www.pulumi.com/docs/get-started/install/)\n* [Python 3.11+](https://www.python.org/downloads/)\n* [Docker](https://docs.docker.com/get-docker/)\n\n## Recommended Requirements\n\n* [asdf](https://asdf-vm.com/guide/getting-started.html)\n\n## Quickstart\n\n```bash\n# default destination and stack\npulumi org set-default \u003cmy_org\u003e\n\n# new project (empty directory other than .git)\npulumi new\n\n# manage and view state\npulumi stack init dev\n\n# tf analogues\npulumi preview\npulumi up\npulumi down\n\n# info\npulumi about\n\n# project config (Pulumi.yaml)\npulumi config\n```\n\n## Linting\n\n```bash\n# directory\nmypy .\n\n# file\nmypy __main__.py\n```\n\n## TODO\n\n* Replace fake creds in [services.py](services.py) with environment variables\n* Add more outputs (cf. `mongo_container_name`)\n* Research if it's possible to use both `unix:///var/run/docker.sock` and `ssh://user@remote-host:22` in the [Pulumi config](Pulumi.yml#L11)\n* Set registry creds to use other than `docker.io` / access private registry\n  * `DOCKER_REGISTRY_USER`\n  * `DOCKER_REGISTRY_PASS`\n* Local containers\n  * prometheus and grafana\n* Remote containers (prometheus exporters)\n\n    | Name          | Image                                                       | Port |\n    | ------------- | ----------------------------------------------------------- | ---- |\n    | node          | \"prom/node-exporter:latest\"                                 | 9100 |\n    | mongodb       | \"percona/mongodb_exporter:0.40\"                             | 9216 |\n    | redis         | \"oliver006/redis_exporter:latest\"                           | 9121 |\n    | elasticsearch | \"quay.io/prometheuscommunity/elasticsearch-exporter:latest\" | 9114 |\n    | kafka         | \"danielqsj/kafka-exporter:latest\"                           | 9308 |\n\n* Add tests\n\n## Further Reading\n\n* [Docker Provider](https://www.pulumi.com/docs/reference/pkg/docker/)\n* [pulumi/pulumi-docker](https://github.com/pulumi/pulumi-docker/tree/master/examples)\n* [Docker Build](https://www.pulumi.com/registry/packages/docker-build/)\n* [Command](https://www.pulumi.com/registry/packages/command/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythoninthegrass%2Fpulumi_docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpythoninthegrass%2Fpulumi_docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythoninthegrass%2Fpulumi_docker/lists"}