slimtoolkit / slimtoolkit/slim

XRay works, but build fails with EOF error

Open
#141 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
23.4k
Forks
840
PR merge metrics
No merged PRs in 30d

Description

Image marklambert/nextpvr-ccextractor

This image will eventually fail for other reasons because it uses .NET runtime, but this analysis failure should probably be looked at separately.

mark@Storage:~/docker-slim/dist_linux$ ./docker-slim build marklambert/nextpvr-ccextractor docker-slim[build]: info=http.probe message='using default probe' docker-slim[build]: state=started docker-slim[build]: info=params target=marklambert/nextpvr-ccextractor continue.mode=probe rt.as.user=true keep.perms=true docker-slim[build]: state=image.inspection.start docker-slim[build]: info=image id=sha256:9376732854714babe0f3efd7ec7f2f69c1e68a02315a700cbdb74b9fdfd43b0d size.bytes=594633103 size.human=595 MB docker-slim[build]: info=image.stack index=0 name='nextpvr/nextpvr_amd64:stable' id='sha256:567d433cd7009f51107d5fb1743bb54ee38e468be13e9a730c168a6461c72f75' docker-slim[build]: info=image.stack index=1 name='marklambert/nextpvr-ccextractor:latest' id='sha256:9376732854714babe0f3efd7ec7f2f69c1e68a02315a700cbdb74b9fdfd43b0d' docker-slim[build]: info=image.exposed_ports list='80,443' docker-slim[build]: state=image.inspection.done docker-slim[build]: state=container.inspection.start time="2020-04-05T09:05:50-06:00" level=error msg="dockerutil.BuildEmptyImage: dockerapi.BuildImage() error = unexpected EOF" time="2020-04-05T09:05:50-06:00" level=fatal msg="docker-slim: failure" error="unexpected EOF" stack="goroutine 1 [running]:\nruntime/debug.Stack(0x0, 0x0, 0x0)\n\truntime/debug/stack.go:24 +0x9d\ngithub.com/docker-slim/docker-slim/pkg/util/errutil.FailOn(0xb9ab20, 0xc000104060)\n\tgithub.com/docker-slim/docker-slim/pkg/util/errutil/errutil.go:14 +0x54\ngithub.com/docker-slim/docker-slim/internal/app/master/inspectors/container.(*Inspector).RunContainer(0xc0000f21e0, 0x4, 0xc000279f98)\n\tgithub.com/docker-slim/docker-slim/internal/app/master/inspectors/container/container_inspector.go:255 +0x339c\ngithub.com/docker-slim/docker-slim/internal/app/master/commands.OnBuild(0xc00007e050, 0x7ffdfc6b9d9e, 0x1f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xaa2d01, ...)\n\tgithub.com/docker-slim/docker-slim/internal/app/master/commands/build.go:263 +0x1617\ngithub.com/docker-slim/docker-slim/internal/app/master.init.0.func10(0xc00007c160, 0x0, 0xc000302300)\n\tgithub.com/docker-slim/docker-slim/internal/app/master/cli.go:1655 +0x171a\ngithub.com/urfave/cli.HandleAction(0x9cd840, 0xad0bd8, 0xc00007c160, 0xc00007c160, 0x0)\n\tgithub.com/urfave/cli@v1.22.1/app.go:523 +0x11a\ngithub.com/urfave/cli.Command.Run(0xaa0a83, 0x5, 0x0, 0x0, 0xc00026ad40, 0x1, 0x1, 0xac41f6, 0x3e, 0x0, ...)\n\tgithub.com/urfave/cli@v1.22.1/command.go:174 +0x56e\ngithub.com/urfave/cli.(*App).Run(0xc000290000, 0xc00018c000, 0x3, 0x3, 0x0, 0x0)\n\tgithub.com/urfave/cli@v1.22.1/app.go:276 +0x7ae\ngithub.com/docker-slim/docker-slim/internal/app/master.runCli()\n\tgithub.com/docker-slim/docker-slim/internal/app/master/cli.go:2053 +0x55\ngithub.com/docker-slim/docker-slim/internal/app/master.Run()\n\tgithub.com/docker-slim/docker-slim/internal/app/master/app.go:6 +0x25\nmain.main()\n\tgithub.com/docker-slim/docker-slim/cmd/docker-slim/main.go:8 +0x20\n" version="linux|Transformer|1.29.0|afff2c9679a697ebfc933360267253a10325269d|2020-03-18_07:11:20PM"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the reported docker-slim build command and image. Start at internal/app/master/inspectors/container/container_inspector.go:255, where dockerutil.BuildEmptyImage reports the dockerapi.BuildImage unexpected EOF. Done means the image analysis proceeds without this EOF failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
devops, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.