TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Miniboss, versatile local container management with Python

158 点作者 afroisalreadyin超过 3 年前

8 条评论

freeqaz超过 3 年前
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 未加载
dec0dedab0de超过 3 年前
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 未加载
0xbadcafebee超过 3 年前
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 未加载
kfk超过 3 年前
Can this be adapted to the Kubernetes ecosystem?
评论 #30528894 未加载
emacsen超过 3 年前
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 未加载
roomey超过 3 年前
Is there anyway to use this with kompose convert so it can be deployed to production in a kubernetes cluster?
评论 #30538348 未加载
mataug超过 3 年前
Would it be correct to assume that something similar can be done to replace helm.sh with kubernetes ?
评论 #30533476 未加载
评论 #30531041 未加载
blondin超过 3 年前
so it&#x27;s like terraform or pulumi but scoped down to docker and using python?
评论 #30538361 未加载