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

Can't create repository following documentation example with (--type docker) #360

Open
RafaelPalomar opened this issue Jul 26, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@RafaelPalomar
Copy link

Luet version:
luet version 0.35.2 (Build time: 2024-04-22 08:57:59 UTC)

CPU architecture, OS, and Version:
AMD64, inside a suse linux distrobox container (it may not be relevant)

Describe the bug
I try to run through the repository creation in https://luet.io/docs/concepts/overview/repositories/. Everything works as expected, but when I create-repo with the argument --type docker I get the following output:

INFO   Generating docker images for packages in /tmp/out
  ERROR    while building repository artifact index: while initializing repository generator: while pushing metadata file associated to the artifact: Failed generating metadata tree /tmp/out:foo-bar-0.1.metadata.yaml: while loading image: Failed loading image: invalid reference format
          : exit status 1

To Reproduce

mkdir package
cat <<EOF > package/build.yaml
image: busybox
steps:
- echo "foo" > /foo
EOF
cat <<EOF > package/definition.yaml
name: "foo"
version: "0.1"
category: "bar" # optional!
EOF
sudo luet build --all --destination $PWD/out/ --tree $PWD/package
sudo luet create-repo --name "test" --output $PWD/out --packages $PWD/out --tree $PWD/package --type docker

Expected behavior

I would expect the last command to run with no errors

Logs

here is the output by sudo luet create-repo --name "test" --output $PWD/out --packages $PWD/out --tree $PWD/package --type docker --debug:

 DEBUG   (config.go:#204:github.com/mudler/luet/cmd/util.initContext)  System rootfs: /
  DEBUG   (config.go:#205:github.com/mudler/luet/cmd/util.initContext)  Colors true
  DEBUG   (config.go:#206:github.com/mudler/luet/cmd/util.initContext)  Logging level info
  DEBUG   (config.go:#207:github.com/mudler/luet/cmd/util.initContext)  Debug mode true
 INFO   Generating docker images for packages in /tmp/out
  DEBUG   (repository_docker.go:#54:github.com/mudler/luet/pkg/installer.(*dockerRepositoryGenerator).Initialize.func1)  Skipping directories
  DEBUG   (repository_docker.go:#126:github.com/mudler/luet/pkg/installer.(*dockerRepositoryGenerator).pushFileFromArtifact)  Generating image /tmp/out:foo-bar-0.1.metadata.yaml
  DEBUG   (simpledocker.go:#76:github.com/mudler/luet/pkg/compiler/backend.(*SimpleDocker).LoadImage)  🐋  Loading image: /var/tmp/luet/tempimage4186696045
  ERROR    while building repository artifact index: while initializing repository generator: while pushing metadata file associated to the artifact: Failed generating metadata tree /tmp/out:foo-bar-0.1.metadata.yaml: while loading image: Failed loading image: invalid reference format
          : exit status 1

Additional context

@RafaelPalomar RafaelPalomar added the bug Something isn't working label Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants