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

Some error occur when upgrading bionic-base to jammy-base #278

Open
zhoufenqin opened this issue May 17, 2023 · 1 comment
Open

Some error occur when upgrading bionic-base to jammy-base #278

zhoufenqin opened this issue May 17, 2023 · 1 comment

Comments

@zhoufenqin
Copy link

From Jammy stack.toml and Bionic stack.toml, I found the uid is different.

In jammy stack, the uid is difference between build and runtime phase, and the final /workspace dir is generated by build user, there is no permission for runtime user to do some write operations in the folder.
image

So when we migrate bionic stack to jammy stack, we may meet some errors. E.g. In the spring boot project, if there are some code like Files.copy(Paths.get(source), Paths.get(destination)), then it will be blocked.
image

So why the uid change between the build and runtime phase, and is there any guide to migrate bionic stack to jammy stack smoothly?

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce

Motivations

@robdimsdale
Copy link
Member

The UID is different between the build and run phases to improve security and confirm with the upstream specification: https://github.com/buildpacks/rfcs/blob/main/text/0085-run-uid.md

We don't have a migration guide specifically, but other than this issue there aren't any buildpack-specific changes. More generally, users should be aware of the fact that there are different packages on Jammy vs Bionic, but that's true outside of using Buildpacks, too.

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