Skip to content

pythoninthegrass/pulumi_docker

Repository files navigation

pulumi_docker

Use Pulumi's Docker provider to deploy containers locally and remotely.

Minimum Requirements

Recommended Requirements

Quickstart

# default destination and stack pulumi org set-default <my_org> # new project (empty directory other than .git) pulumi new # manage and view state pulumi stack init dev # tf analogues pulumi preview pulumi up pulumi down # info pulumi about # project config (Pulumi.yaml) pulumi config

Linting

# directory mypy . # file mypy __main__.py

TODO

  • Replace fake creds in services.py with environment variables

  • Add more outputs (cf. mongo_container_name)

  • Research if it's possible to use both unix:///var/run/docker.sock and ssh://user@remote-host:22 in the Pulumi config

  • Set registry creds to use other than docker.io / access private registry

    • DOCKER_REGISTRY_USER
    • DOCKER_REGISTRY_PASS
  • Local containers

    • prometheus and grafana
  • Remote containers (prometheus exporters)

    Name Image Port
    node "prom/node-exporter:latest" 9100
    mongodb "percona/mongodb_exporter:0.40" 9216
    redis "oliver006/redis_exporter:latest" 9121
    elasticsearch "quay.io/prometheuscommunity/elasticsearch-exporter:latest" 9114
    kafka "danielqsj/kafka-exporter:latest" 9308
  • Add tests

Further Reading

About

Use Pulumi's Docker provider to deploy containers locally and remotely.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages