#can't get slim module to work

1 messages Β· Page 1 of 1 (latest)

cinder minnow
#

I am following the demo on https://www.youtube.com/watch?v=RgE7Y2Lvxro and it looks like dagger is trying to use an image for slim built for arm but my host is amd64 and this will not work:

❯ dagger call --focus=false server
✘ Miniweb.server: Container! 4.9s
! call function "Server": process "/runtime" did not complete successfully: exit code: 2
┃ marshal: json: error calling MarshalJSON for type *dagger.Container: input: slim.slim resolve: call function "Slim": p
┃ cess "/runtime" did not complete successfully: exit code: 2
┃
    βœ” DockerImage.ref: String! 0.3s
    βœ” Container.from(address: "index.docker.io/dslim/slim-arm"): Container! 0.2s
      βœ” remotes.docker.resolver.HTTPRequest 0.1s
        βœ” HTTP HEAD 0.1s
    ✘ Container.sync: ContainerID! 0.1s
    ! process "/bin/slim build --tag slim-output:latest --target :@sha256:ce3dcbad52db82a36405fc13b4d0460c7e9b4ab0940a58e7948cfbc64788fd1f" did not complete successfully: exit code: 149
      ✘ exec /bin/slim build --tag slim-output:latest --target :@sha256:ce3dcbad52db82a36405fc13b4d0460c7e9b4ab0940a58e7948cfbc64788fd1f 0.1s
      ! process "/bin/slim build --tag slim-output:latest --target :@sha256:ce3dcbad52db82a36405fc13b4d0460c7e9b4ab0940a58e7948cfbc64788fd1f" did not complete successfully: exit code: 149

Error: response from query: input: miniweb.server resolve: call function "Server": process "/runtime" did not complete successfully: exit code: 2

Stdout:
marshal: json: error calling MarshalJSON for type *dagger.Container: input: slim.slim resolve: call function "Slim": process "/runtime" did not complete successfully: exit code: 2

Stdout:
invoke: input: container.from.withServiceBinding.withEnvVariable.withExec.sync resolve: process "/bin/slim build --tag slim-output:latest --target :@sha256:ce3dcbad52db82a36405fc13b4d0460c7e9b4ab0940a58e7948cfbc64788fd1f" did not complete successfully: exit code: 149

Application delivery doesn’t have to suck. Solomon Hykes joins Nirmal and me to talk about Dagger and their application delivery-as-code that runs anywhere.
Reminder we're on Eastern Standard Time (EST) now here (UTC -5). Click Notify Me πŸ”” so you get notified.

⭐️A special thanks to this episode's sponsor, Uffizzi!⭐️

πŸ‘€ Uffizzi is a platfo...

β–Ά Play video
cinder minnow
#
  ┃ invoke: input: container.from.withServiceBinding.withEnvVariable.withExec.sync resolve: process "/bin/slim build --t
  ┃ lim-output:latest --target :@sha256:87f91d7e5fbee08a7d3fb707dcb765276c7e8430d251306ce54619fd1a478b26" did not comple
  ┃ uccessfully: exit code: 149
  ┃
    βœ” Container.from(address: "index.docker.io/dslim/slim-arm"): Container! 0.5s
      ✘ remotes.docker.resolver.HTTPRequest 0.1s
        ✘ HTTP HEAD 0.1s
      βœ” HTTP GET 0.3s
      βœ” remotes.docker.resolver.HTTPRequest 0.1s
        βœ” HTTP HEAD 0.1s
    ✘ Container.sync: ContainerID! 0.1s
    ! process "/bin/slim build --tag slim-output:latest --target :@sha256:87f91d7e5fbee08a7d3fb707dcb765276c7e8430d251306ce54619fd1a478b26" did not complete successfully: exit code: 149
      ✘ exec /bin/slim build --tag slim-output:latest --target :@sha256:87f91d7e5fbee08a7d3fb707dcb765276c7e8430d251306ce54619fd1a478b26 0.1s
      ! process "/bin/slim build --tag slim-output:latest --target :@sha256:87f91d7e5fbee08a7d3fb707dcb765276c7e8430d251306ce54619fd1a478b26" did not complete successfully: exit code: 149

Error: response from query: input: miniweb.server resolve: call function "Server": process "/runtime" did not complete successfully: exit code: 2

Stdout:
marshal: json: error calling MarshalJSON for type *dagger.Container: input: slim.slim resolve: call function "Slim": process "/runtime" did not complete successfully: exit code: 2

Stdout:
invoke: input: container.from.withServiceBinding.withEnvVariable.withExec.sync resolve: process "/bin/slim build --tag slim-output:latest --target :@sha256:87f91d7e5fbee08a7d3fb707dcb765276c7e8430d251306ce54619fd1a478b26" did not complete successfully: exit code: 149```