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

how to make package binaries available in docker image #30

Open
jalbstmeijer opened this issue Aug 2, 2023 · 1 comment
Open

how to make package binaries available in docker image #30

jalbstmeijer opened this issue Aug 2, 2023 · 1 comment

Comments

@jalbstmeijer
Copy link

jalbstmeijer commented Aug 2, 2023

Hi,

When building the phpfpm example as docker image, I see the php cli included in /nix.

/nix/store/ppmh7fh74ywsypabp613xip0c0dhn7vz-php-8.0.29/bin/php
/nix/store/kayqcnlwcmmacy6pbz0x7h07agd5p44q-php-with-extensions-8.0.29/bin/php

But when starting a shell in the resulting container there is no bin/php symlink or a PATH pointing to it.

How to nicely make that available? I suspect the php-with-extensions is the preferred one.

In line with this, what is the intended way of running for instance the phpfpm example in shell mode?
Seems that "activate" needs to populate the filesystem first.

Gr, J

@MagicRB
Copy link
Collaborator

MagicRB commented Oct 18, 2023

The shell mode cannot nicely run php-fpm as you found. environment.systemPackages will add it to PATH. But also you must use a login shell. So /bin/sh -l. Whether to add or not to add (to global PATH) is still a question I have not solved.

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

No branches or pull requests

2 participants