TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Miniboss, versatile local container management with Python

158 pointsby afroisalreadyinabout 3 years ago

8 comments

freeqazabout 3 years ago
I&#x27;ve definitely experienced the problems of using Docker Compose for local dev. Oh, that file changed? Control-C to kill the whole cluster. Wait until the DB flushes. Start it again.<p>And if you just want to restart one service? Well you have to run 4 commands[0] in order to properly do it...<p>And what the author was saying about needing to &quot;template&quot; the YAML files is also true. In the past, when shipping an Open Source library for others to use, we had to wrap Docker Compose in a CLI that generates the YAML file and then invokes Docker Compose for you. (See it here[1][2][3])<p>It sucks and this library definitely solves a real problem!<p>0: <a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;31466428&#x2F;how-to-restart-a-single-container-with-docker-compose" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;31466428&#x2F;how-to-restart-...</a><p>1: The code: <a href="https:&#x2F;&#x2F;github.com&#x2F;lunasec-io&#x2F;lunasec&#x2F;blob&#x2F;master&#x2F;js&#x2F;sdks&#x2F;packages&#x2F;cli&#x2F;src&#x2F;docker-compose&#x2F;lunasec-stack.ts" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;lunasec-io&#x2F;lunasec&#x2F;blob&#x2F;master&#x2F;js&#x2F;sdks&#x2F;pa...</a><p>2: The package it lives in: <a href="https:&#x2F;&#x2F;github.com&#x2F;lunasec-io&#x2F;lunasec&#x2F;tree&#x2F;master&#x2F;js&#x2F;sdks&#x2F;packages&#x2F;cli" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;lunasec-io&#x2F;lunasec&#x2F;tree&#x2F;master&#x2F;js&#x2F;sdks&#x2F;pa...</a><p>3: The docs for the wrapped CLI: <a href="https:&#x2F;&#x2F;www.lunasec.io&#x2F;docs&#x2F;pages&#x2F;overview&#x2F;demo-app&#x2F;overview" rel="nofollow">https:&#x2F;&#x2F;www.lunasec.io&#x2F;docs&#x2F;pages&#x2F;overview&#x2F;demo-app&#x2F;overview</a>
评论 #30528619 未加载
评论 #30529911 未加载
评论 #30529046 未加载
dec0dedab0deabout 3 years ago
This looks great, I am so sick of YAML.<p>While it&#x27;s probably fine for most of the use cases you&#x27;re predicting, if someone who isn&#x27;t quite familiar with Python&#x27;s gotchas decides to subclass, or modify one of the items at runtime, it will be a tricky thing to troubleshoot. Even though that is a rite of passage for Python developers, it&#x27;s probably best to not have examples that could set them up for weird bugs.<p>edit: I was talking about mutable types at the top level of a class, and somehow left that out.
评论 #30528556 未加载
0xbadcafebeeabout 3 years ago
Why not fork docker-compose v1? It&#x27;s Python! <a href="https:&#x2F;&#x2F;github.com&#x2F;docker&#x2F;compose&#x2F;tree&#x2F;1.29.2&#x2F;compose" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;docker&#x2F;compose&#x2F;tree&#x2F;1.29.2&#x2F;compose</a><p>You could keep the YAML format and extend it, and still write compose files as pure Python.
评论 #30528494 未加载
评论 #30531869 未加载
kfkabout 3 years ago
Can this be adapted to the Kubernetes ecosystem?
评论 #30528894 未加载
emacsenabout 3 years ago
This looks potentially very interesting indeed! Thanks for sharing.<p>How tied is it to the Docker daemon?<p>Instead of Docker, could one use podman, which doesn&#x27;t need root.
评论 #30538614 未加载
roomeyabout 3 years ago
Is there anyway to use this with kompose convert so it can be deployed to production in a kubernetes cluster?
评论 #30538348 未加载
mataugabout 3 years ago
Would it be correct to assume that something similar can be done to replace helm.sh with kubernetes ?
评论 #30533476 未加载
评论 #30531041 未加载
blondinabout 3 years ago
so it&#x27;s like terraform or pulumi but scoped down to docker and using python?
评论 #30538361 未加载