Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Local podman support #261

Merged
merged 13 commits into from
Jun 14, 2022
Merged

WIP: Local podman support #261

merged 13 commits into from
Jun 14, 2022

Conversation

ikreymer
Copy link
Member

Refactor the original Swarm support to also include running with Podman instead of Docker Swarm for single machine deployment.

  • Use secrets instead of configs, which are supported in Swarm and Podman (but not regular Docker Compose)
  • RUNTIME=podman enables running in podman, otherwise use Swarm
  • add podman static binary and podman-compose to backend image.
  • pylint: relint with latest pylint

ikreymer added 4 commits June 13, 2022 12:41
- implement podman support as subclass of swarm deployment
- podman is used when 'RUNTIME=podman' env var is set
- podman socket is mapped instead of docker socket
- podman-compose is used instead of docker-compose (though docker-compose works with podman, it does not support secrets, but podman-compose does)
- separate cli utils into SwarmRunner and PodmanRunner which extends it
- using config.yaml and config.env, both copied from sample versions
- work on simplifying config: add docker-compose.podman.yml and docker-compose.swarm.yml and signing and debug configs
- add run-podman.sh, run-swarm.sh, stop-podman.sh, stop-swarm.sh for simplying usage
@ikreymer ikreymer linked an issue Jun 13, 2022 that may be closed by this pull request
@ikreymer ikreymer marked this pull request as ready for review June 14, 2022 07:04
@ikreymer ikreymer merged commit 418c07b into main Jun 14, 2022
@ikreymer ikreymer deleted the podman-support branch June 14, 2022 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Architecture: Support running with podman
1 participant