apache / apache/kyuubi

[Bug] target/tmp/docker/base/docker/Dockerfile: no such file or directory

Open
#4,160 3 comments 0 reactions 0 assignees View on GitHub
kind:bug priority:major
Dominant language
Scala
Stars
2.4k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

### Code of Conduct

- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)

### Search before asking

- [X] I have searched in the [issues](https://github.com/apache/kyuubi/issues?q=is%3Aissue) and found no similar issues.

### Describe the bug

when execute `KYUUBI_VERSION=1.6.1-incubating bin/docker-image-tool.sh -r docker.io/myrepo -t 1.6.1 build`, i got error `...target/tmp/docker/base/docker/Dockerfile: no such file or directory`.

when remove `trap cleanup_ctx_dir EXIT` in bin/docker-image-tool.sh, the structure of the target directory is `.../target/tmp/docker/docker/base/docker/Dockerfile`.

so `cp -r "docker/" "$BASE_CTX/docker"` in function `create_dev_build_context` should be `cp -r "docker" "$BASE_CTX/"`?

### Affects Version(s)

master

### Kyuubi Server Log Output

_No response_

### Kyuubi Engine Log Output

_No response_

### Kyuubi Server Configurations

_No response_

### Kyuubi Engine Configurations

_No response_

### Additional context

_No response_

### Are you willing to submit PR?

- [ ] Yes. I would be willing to submit a PR with guidance from the Kyuubi community to fix.
- [ ] No. I cannot submit a PR at this time.

Contributor guide

Open the contributing guide

Research direction

Start in bin/docker-image-tool.sh, focusing on create_dev_build_context and the cp command that places docker/ under BASE_CTX. Reproduce the documented bin/docker-image-tool.sh build command and inspect the generated target/tmp/docker layout. Done means the Dockerfile is found at the expected target/tmp/docker/base/docker/Dockerfile and the image build proceeds past this missing-file error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, shell
Domain
build-system, devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.