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

In a stack that doesn't have the pack user pack build fails to export #50

Closed
dsyer opened this issue Oct 12, 2018 · 7 comments
Closed
Assignees

Comments

@dsyer
Copy link

dsyer commented Oct 12, 2018

*** EXPORTING:
Step 1/3 : FROM cfbuildpacks/cflinuxfs3-cnb-experimental:run
---> 2b15b1dbf8f9
Step 2/3 : ADD --chown=pack:pack /workspace/app /workspace/app
Error: image build: unable to convert uid/gid chown string to host mapping: can't find uid for user pack: no such user: pack
Usage:
@ekcasey
Copy link
Member

ekcasey commented Oct 15, 2018

I am going to change it to use the $PACK_USER_ID and $PACK_USER_GID env vars to determine the user and group. Those variables will need to be set on the stack images if they aren't already.

@nebhale
Copy link
Contributor

nebhale commented Oct 15, 2018

@ekcasey You should open an issue in the stack specification for this and link it back to here.

@dsyer
Copy link
Author

dsyer commented Oct 15, 2018

There is a org.cloudfoundry.stacks.cflinuxfs3 stack that I have been trying to use and it doesn't have those env vars (I have to add them using a manual docker build - thanks @dgodd for the tip). Whoever is maintaining that should get the message as well (I have no idea).

@ekcasey
Copy link
Member

ekcasey commented Oct 15, 2018

buildpacks/spec#16

@sclevine
Copy link
Member

Whoever is maintaining that should get the message as well (I have no idea).

That stack contains unfinished development images maintained by the CF buildpacks team. Follow https://www.pivotaltracker.com/story/show/160291184 for updates.

@dsyer
Copy link
Author

dsyer commented Oct 17, 2018

I can't make comments on that tracker. Can someone ask then to add yj (seems like it is in packs/build)? Maybe it has to have a debian package?

@sclevine
Copy link
Member

I can prioritize a story to get yj added to it.

I'm worried about the CNB version of cflinuxfs3 diverging from the CF production version of cflinuxfs3, but I think it's reasonable to include it for simple shell script CNBs, given the TOML parsing requirements.

dgodd added a commit that referenced this issue Oct 17, 2018
Fallback to PACK_USER_GID if PACK_GROUP_ID is missing

[#50]
dgodd added a commit to buildpacks/lifecycle that referenced this issue Oct 17, 2018
PACK_USER_GID is deprecated, leaving here until tooling updates

[buildpacks/pack#50]
@dgodd dgodd self-assigned this Oct 18, 2018
dgodd pushed a commit to buildpacks/lifecycle that referenced this issue Oct 18, 2018
Setting UID & GID will set the values on image layer directories and
files.

This allows files to be temporarily stored on file systems where the
user does not have privileges to set uid & gid.

[buildpacks/pack#50]

Signed-off-by: Dave Goddard <dave@goddard.id.au>
dgodd added a commit that referenced this issue Oct 18, 2018
Fallback to PACK_USER_GID if PACK_GROUP_ID is missing

[#50]
dgodd added a commit that referenced this issue Oct 18, 2018
Fallback to PACK_USER_GID if PACK_GROUP_ID is missing

[#50]
dgodd added a commit that referenced this issue Oct 18, 2018
Fallback to PACK_USER_GID if PACK_GROUP_ID is missing

[#50]
@ssisil ssisil closed this as completed Oct 22, 2018
natalieparellano added a commit that referenced this issue Jul 17, 2024
Launch build containers in a separate ephemeral Docker bridge network
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

6 participants