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

feat(new-tool): Docker Compose to Kubernetes manifests #890

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sharevb
Copy link
Contributor

@sharevb sharevb commented Feb 18, 2024

Fix #883

Copy link

vercel bot commented Feb 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
it-tools ✅ Ready (Inspect) Visit Preview Feb 25, 2024 1:39pm

@TheAnachronism
Copy link

However the actual conversion takes place, there's a mistake.
The command directive in docker does something different than when used in Kubernetes.
In docker compose, the directive specifies additional arguments passed to the ENTRYPOINT of the image.
In Kubernetes, it overrides the ENTRYPOINT of the image.

args should be used instead of command.

sharevb added a commit to sharevb/docker2kube that referenced this pull request Feb 18, 2024
As referred in CorentinTh/it-tools#890 (comment):
- `entrypoint` in Docker Compose is `command` in Kubernetes
- `command` in Docker Compose is `args` in Kubernetes
@sharevb
Copy link
Contributor Author

sharevb commented Feb 18, 2024

Hi @TheAnachronism, made a PR in dohsimpson/docker2kube#1

@TheAnachronism
Copy link

Sick! Let's hope it gets merged soon.

@teambvd
Copy link

teambvd commented Feb 22, 2024

PR has been merged FYI

@sharevb
Copy link
Contributor Author

sharevb commented Feb 25, 2024

Hi @teambvd, docker2kube updated

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.

[NEW TOOL] Docker command to Kubernetes kustomization
3 participants