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

JKube should not pick the Dockerfile where the podman daemon is executed #1870

Closed
sunix opened this issue Oct 20, 2022 · 4 comments
Closed
Assignees
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@sunix
Copy link
Member

sunix commented Oct 20, 2022

Describe the bug

In Dockerfile mode with podman, if podman daemon is executed in a directory that is not the project folder and that contains a Dockerfile, the build task/goal is picking the Dockerfile in the podman daemon directory and not the project one.

Eclipse JKube version

SNAPSHOT

Component

JKube Kit

Apache Maven version

3.6.3

Gradle version

No response

Steps to reproduce

  1. Create/Clone a project with a Dockerfile in the root directory of the project
  2. Create another Dockerfile in your home directory
  3. Start the podman daemon in your home directory, and keep it running
    cd /home/sunix && podman system service --time=0 unix:/run/user/$(id -u)/podman.sock
    
  4. in another terminal, tell jkube to use podman by referencing the podman.sock file
    export DOCKER_HOST="unix:/run/user/$(id -u)/podman.sock"
    
  5. go to the project folder and run the build task or goal
    mvn package k8s:build
    

I managed to figure out it wasn't picking the right Dockerfile in debug mode:
Selection_724

Expected behavior

Dockermode should pick the Dockerfile located in the project.

Runtime

Kubernetes (vanilla)

Kubernetes API Server version

other (please specify in additional context)

Environment

Linux

Eclipse JKube Logs

No response

Sample Reproducer Project

No response

Additional context

No response

@sunix sunix added the bug Something isn't working label Oct 20, 2022
@sunix
Copy link
Member Author

sunix commented Oct 25, 2022

probably related to containers/podman#13293 (comment)

@manusa
Copy link
Member

manusa commented Oct 26, 2022

probably related to containers/podman#13293 (comment)

Yes, from your description and internal discussion, this seems more like a Podman related issue. Since we're sending the container build configuration and files through the Docker-compatible REST API.

@sunix
Copy link
Member Author

sunix commented Nov 22, 2022

TODO @sunix try with newer version of podman
Current version: podman version 3.2.3

@sunix sunix self-assigned this Nov 22, 2022
@manusa manusa moved this to Planned in Eclipse JKube Nov 23, 2022
@sunix
Copy link
Member Author

sunix commented Nov 23, 2022

I just upgraded podman to version 4.3.1 and I cannot reproduce anymore. Closing this issue.

@sunix sunix closed this as completed Nov 23, 2022
Repository owner moved this from Planned to Done in Eclipse JKube Nov 23, 2022
@manusa manusa closed this as not planned Won't fix, can't repro, duplicate, stale Nov 24, 2022
@manusa manusa added the invalid This doesn't seem right label Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants