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

Docker run to Docker Compose Converter Fails #1501

Closed
lastplace1990 opened this issue Feb 18, 2025 · 2 comments
Closed

Docker run to Docker Compose Converter Fails #1501

lastplace1990 opened this issue Feb 18, 2025 · 2 comments
Assignees
Labels
bug Something isn't working triage

Comments

@lastplace1990
Copy link

Describe the bug

Summary: When using "Docker run to Docker compose converter" it fails to generate a valid compose file I can use. But using the same function at the devs seperate website "https://www.composerize.com/" works just fine.

What happened?

Steps to repro:

  1. Deploy Docker Desktop for MacOS
  2. Deploy it-tools using this info: https://github.com/CorentinTh/it-tools?tab=readme-ov-file#self-host
  3. Verify service is running and you can connect
  4. Go to Twingate and use docs to deploy software via docker: https://www.twingate.com/docs/connector-deployment
    1. Docs will give you a docker run command like this:
docker run -d --sysctl net.ipv4.ping_group_range="0 2147483647" --env TWINGATE_NETWORK="mortigiamon" --env TWINGATE_ACCESS_TOKEN="" --env TWINGATE_REFRESH_TOKEN=""  --env TWINGATE_LABEL_HOSTNAME="`hostname`" --env TWINGATE_LABEL_DEPLOYED_BY="docker" --name "twingate-versatile-kingfisher" --restart=unless-stopped --pull=always twingate/connector:1
  1. Copy docker run command from vendor website
  2. open it-tools
    1. navigate to docker run to docker compose converter
  3. paste run command in converter

Expected Results:

  1. docker run to docker compose converter provides output formatted correctly

Actual Results:

  1. docker run to docker compose converter provides incorrectly formatted conversion
  2. results do not fix in UX/UI window
  3. downloaded yml is not usable as compose file

Workaround:

  1. had to go to this page to get correct formatting for docker compose:
    1. https://www.composerize.com/
    2. Noticed its the same dev that helped with this project.

Image

System information

Docker Desktop MacOS build 4.38
IT-Tools v2024.10.22-7ca5933
Enduser > Proxy > Server/Docker Container

Where did you encounter the bug?

A self hosted

@lastplace1990 lastplace1990 added bug Something isn't working triage labels Feb 18, 2025
@sharevb
Copy link
Contributor

sharevb commented Feb 18, 2025

Hi @lastplace1990, fixed in #845 , I (also as maintainer of composerize) made a fork of it-tools (PR waiting for month in original project): if you arr interested in up to date version of it-tools, I made kind of a fork here : https://github.com/sharevb/it-tools (https://sharevb-it-tools.vercel.app/ and docker images https://github.com/sharevb/it-tools/pkgs/container/it-tools)

@lastplace1990
Copy link
Author

Hi @sharevb thank you for this! I can confirm that worked. Cheers and thank you for all of the work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

3 participants