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

Container Image - Support Bitbucket Pipeline #11978

Open
2 tasks done
VanCoding opened this issue Nov 27, 2024 · 4 comments
Open
2 tasks done

Container Image - Support Bitbucket Pipeline #11978

VanCoding opened this issue Nov 27, 2024 · 4 comments
Assignees
Labels
feature Feature request or proposal

Comments

@VanCoding
Copy link

Is your feature request related to a problem?

The official Nix Container Image cannot be used in Bitbucket Pipelines because Bitbucket requires the binaries /bin/echo /bin/cat and /usr/bin/mkfifo to be there in the image.

That of course does not make any sense, but even after reporting the issue to Bitbucket Bitbucket did not react and it seems this won't get fixed anytime soon.

Proposed solution

Instead of waiting & hoping for Bitbucket to fix this issue, we could propably update the Nix image to have these binaries symlinked accordingly. I don't like that we need to do this, but what's the point of having an official image if it doesn't run in all of the major build pipelines.

Alternative solutions

We could of course just wait for Bitbucket and let users create patched images for themselves (that's what we're doing currently).

Additional context

There's also a topic on discourse about this: https://discourse.nixos.org/t/nixos-nix-docker-image-is-not-compatible-with-bitbucket-pipelines/48765

Checklist


Add 👍 to issues you find important.

@VanCoding VanCoding added the feature Feature request or proposal label Nov 27, 2024
@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/nixos-nix-docker-image-is-not-compatible-with-bitbucket-pipelines/48765/4

@fricklerhandwerk
Copy link
Contributor

Note: AFAIK there is no one currently maintaining anything related Docker in the Nix codebase. @garbas did that in the past, but the last activities were ~2 years ago IIRC.

Nix maintainers discussed this quite a while ago, and the gist is that if someone wants to take ownership of that, it would be greatly appreciated. I'd urge @nixos/nix-team to onboard new maintainers if the opportunity arises.

@nim65s
Copy link

nim65s commented Nov 27, 2024

Same for Gitlab CI: grep is required, ref. https://docs.gitlab.com/ee/ci/docker/using_docker_images.html#image-requirements

it seems that mkdir is also required, as my CI fail with:

/bin/sh: line 5: grep: command not found
/bin/sh: line 55: mkdir: command not found

@tomberek tomberek self-assigned this Nov 27, 2024
@heimalne
Copy link

heimalne commented Nov 29, 2024

And also support to run the Nix cli tool as an random non-root userid without a $HOME would be great. The Gitlab CI in many larger companies runs inside restricted Openshift clusters. See #8074

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request or proposal
Projects
None yet
Development

No branches or pull requests

6 participants