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

An error occurred at sealer build #1913

Closed
henkuaifacai opened this issue Dec 8, 2022 · 2 comments · Fixed by #2020
Closed

An error occurred at sealer build #1913

henkuaifacai opened this issue Dec 8, 2022 · 2 comments · Fixed by #2020
Assignees
Labels
kind/bug Something isn't working

Comments

@henkuaifacai
Copy link

What happen?

我在用sealer 制作基础镜像时在里面放了一个chart包(charts/vela-core),然后build时解析这个包的镜像时有问题,解析出一个错误的包
docker.io/library/parameter.image:latest
docker.io/library/parameter.image:latest
实际上没有这些包

Relevant log output?

[root@master01 builad]# sealer  build  -t  testtest:1.0.2  . 
2022-12-08 18:05:04 [INFO] [utils.go:135] get mount dir :/var/lib/sealer/tmp/.DTmp-061589638 success 
2022-12-08 18:05:04 [INFO] [executor.go:123] start to check the middleware file
2022-12-08 18:05:04 [INFO] [executor.go:63] run build layer: COPY . .
2022-12-08 18:05:05 [INFO] [executor.go:95] exec all build instructs success
Pulling image: docker.io/kubernetesui/dashboard:v2.6.1
Pulling image: docker.io/kubernetesui/metrics-scraper:v1.0.8
Pulling image: docker.io/library/parameter.image:latest
Pulling image: docker.io/library/string:latest
Pulling image: docker.io/library/_params.image:latest
Pulling image: docker.io/oamdev/vela-core:v1.6.4
Pulling image: docker.io/oamdev/kube-webhook-certgen:v2.4.1

What you expected to happen?

后期能不能加一些选项,比如忽略一些错误的镜像

How to reproduce it (as minimally and precisely as possible)?

FROM kubernetes:v1.24.6
COPY . .
CMD cp -ar bin/helm   /usr/local/bin/ && cp -ar bin/vela   /usr/local/bin/

CMD helm install --create-namespace -n vela-system kubevela charts/vela-core --wait  &&  vela addon enable velaux
CMD  kubectl  apply -f  manifests/recommended.yaml

Anything else we need to know?

No response

What is the version of Sealer you using?

{"gitVersion":"v0.8.6","gitCommit":"884513e","buildDate":"2022-07-12 02:58:54","goVersion":"go1.16.15","compiler":"gc","platform":"linux/amd64"}

What is your OS environment?

CentOS Linux 7 (Core)

What is the Kernel version?

Linux master01 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Other environment you want to tell us?

  • Cloud provider or hardware configuration:
  • Install tools:
  • Others:
@henkuaifacai henkuaifacai added the kind/bug Something isn't working label Dec 8, 2022
@kakaZhou719
Copy link
Member

@henkuaifacai ,看来应该是在walk 这个charts包的时候,找到了错误的镜像list,能看下这个docker.io/library/parameter.image:latest 在包的哪里吗?

@kakaZhou719
Copy link
Member

@henkuaifacai#2020 is working on it.

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

Successfully merging a pull request may close this issue.

3 participants