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

Requiring docker when supplying --out #1141

Open
1 task done
lamebear opened this issue Jul 18, 2024 · 5 comments
Open
1 task done

Requiring docker when supplying --out #1141

lamebear opened this issue Jul 18, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@lamebear
Copy link

lamebear commented Jul 18, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I run into an error when running nixpacks build with the --out param:

Error: Please install Docker to build the app https://docs.docker.com/engine/install/

To reproduce

nixpacks build . --name some-name --out path/to/out/dir --no-cache --config assets/nixpacks/golang.toml --build-cmd "go build -o out ./path/to/source"

Expected behavior

Docker should not be required for generating a Dockerfile

Environment

Alpine 3.19
Nixpacks 1.24.6

@lamebear lamebear added the bug Something isn't working label Jul 18, 2024
@lamebear
Copy link
Author

Maybe related: #1115

@zuchka
Copy link
Contributor

zuchka commented Jul 18, 2024

Hi,

thanks for this. passing along to the product team. thx and more soon

@lamebear
Copy link
Author

Original issue stated that it would occasionally work. That was wrong. I embed nixpacks within a docker container as part of my CI pipeline. When building the container locally, the layer would be cached and it would use 1.24.5 while when the pipeline built the container, it would instead pull the latest of 1.24.6. Forcing 1.24.5 fixes the issue.

For context, I use the out parameter to generate the docker file which is then zipped, sent to S3, to be built by Kaniko on Fargate.

@mms-gianni
Copy link

Same here.

Generating Dockerfile with Nixpacks and building the image on my Kubernetescluster with Buildah. Getting the same error message.

As @lamebear stated: Works as expected with 1.24.5

@lamebear
Copy link
Author

@zuchka any update on this? I'm stuck on 1.24.5

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

3 participants