Skip to content

Comments

Feature/docker deployment#179

Open
ki-do wants to merge 14 commits intowot-oss:mainfrom
ki-do:feature/docker_deployment
Open

Feature/docker deployment#179
ki-do wants to merge 14 commits intowot-oss:mainfrom
ki-do:feature/docker_deployment

Conversation

@ki-do
Copy link
Contributor

@ki-do ki-do commented Jan 12, 2026

packs current tmc into a docker image, also creates a tarball of the image. local file repos are just being copied into the image. for http repos, it first clones the repo and, then, saves it as a local file repository into the image, as well. for s3, currently nothing happens, as i'm not sure how to deal with them.

@ki-do ki-do marked this pull request as ready for review January 20, 2026 14:36
@ki-do ki-do force-pushed the feature/docker_deployment branch from 4fc0cab to 0ba57eb Compare January 23, 2026 12:51
Copy link
Member

@egekorkan egekorkan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Documentation is missing on the usage other than the help
  • Running without the output tar argument causes a cool bug:
panic: runtime error: index out of range [1] with length 1

goroutine 1 [running]:
github.com/wot-oss/tmc/cmd.createDockerImg(0x1048cbae0, {0x1400034a5d0, 0x1, 0x3})
        /Users/egekorkan/git/tmc/cmd/create_docker_img.go:36 +0x1e4
github.com/spf13/cobra.(*Command).execute(0x1048cbae0, {0x1400034a570, 0x3, 0x3})
        /Users/egekorkan/go/pkg/mod/github.com/spf13/cobra@v1.10.2/command.go:1019 +0x7bc
github.com/spf13/cobra.(*Command).ExecuteC(0x1048cd4c0)
        /Users/egekorkan/go/pkg/mod/github.com/spf13/cobra@v1.10.2/command.go:1148 +0x350
github.com/spf13/cobra.(*Command).Execute(...)
        /Users/egekorkan/go/pkg/mod/github.com/spf13/cobra@v1.10.2/command.go:1071
github.com/wot-oss/tmc/cmd.Execute()
        /Users/egekorkan/git/tmc/cmd/root.go:35 +0x24
main.main()
        /Users/egekorkan/git/tmc/main.go:10 +0x1c
  • in the above one, -r argument is ignored. All repos are packed
  • I get creating docker image failed: failed to build Docker image: exit status 125 error
  • These warnings/logs should be taken into account. Might be related to my docker version? It is Docker version 28.5.2, build ecc694264d:
Building Docker image
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            Install the buildx component to build images with BuildKit:
            https://docs.docker.com/go/buildx/

unknown flag: --progress

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.

2 participants