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

builder-jammy-tiny need support LANG environment #304

Open
lmm1990 opened this issue Jan 31, 2024 · 2 comments
Open

builder-jammy-tiny need support LANG environment #304

lmm1990 opened this issue Jan 31, 2024 · 2 comments

Comments

@lmm1990
Copy link

lmm1990 commented Jan 31, 2024

Describe the Enhancement

support environment
--env BPE_LC_ALL=en_US.utf8
--env BPE_LANG=en_US.utf8 \

Motivation

i have a springboot project,The configuration is as follows

bootBuildImage {
    imageName = "registry.cn-shanghai.aliyuncs.com/metafusion/rta-data-statistics:$version"
    builder = "paketobuildpacks/builder-jammy-tiny:latest"
    runImage = "paketobuildpacks/run-jammy-tiny:latest"
    environment.put("BP_JVM_VERSION","17")
    publish = true
    docker {
        host = "tcp://192.168.0.140:2375"
        tlsVerify = false
        publishRegistry {
            username = "***"
            password = "***"
            url = "***"
        }
    }
}

tiny image Unsupported utf8

@dmikusa
Copy link

dmikusa commented Feb 11, 2024

The current documented behavior is to not set a locale, see https://paketo.io/docs/howto/configuration/#configuring-locale. It doesn't mean you can't set one, you just need to do it.

Having a default locale that's set in the image would be difficult because there's not one locale for everyone (that's kind of the purpose of a locale), so regardless of what we'd pick it's not going to be correct for some set of people. Not setting one provides some basic support through POSIX, but requires you to pick a locale that makes sense for you.

@lmm1990
Copy link
Author

lmm1990 commented Feb 20, 2024

The problem is that the builder jammy tiny does not have a UTF-8 local

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