Comments (9)
I'm not sure if we have the exact same issue, but my workaround was to override the java tool options with utf-8 file encoding in my dockerfile.
ENV JAVA_TOOL_OPTIONS="-XX:+UseContainerSupport -Dfile.encoding=UTF-8"
from openjdk-docker.
I'm not sure if we have the exact same issue, but my workaround was to override the java tool options with utf-8 file encoding in my dockerfile.
ENV JAVA_TOOL_OPTIONS="-XX:+UseContainerSupport -Dfile.encoding=UTF-8"
No, this one is different. file.encoding
is for file contents while sun.jnu.encoding
is for file names.
from openjdk-docker.
I think, I understand now what's going on.
The adoptopenjdk docker image doesn't really build against musl. Instead, it just uses the precompiled binaries built against standard glibc and then installs some version of glibc into alpine.
musl itself always supports UTF-8 out of the box. So, if adoptopenjdk would be built against musl it would probably support UTF-8 out of the box.
However, if you run with glibc you will need proper glibc locales to support anything other than C
which comes with a default encoding of ANSI_X3.4-1968
, i.e. basically ASCII
.
Proper musl support for adoptopenjdk would probably be interesting as it can make for even smaller images (e.g. there's a Zulu for Alpine release) but let's treat this as out-of-scope for this ticket.
Without going the full way to musl support, what needs to be done is actually quite simple: you need to generate at least one UTF-8 locale and use that as a default. As the current docker files already download glibc packages, the only thing missing would be to also install glibc-i18n
and then run localedef -i en_US -f UTF-8 en_US.UTF-8
and set en_US.UTF-8
as the default locale in /etc/profile
or as an environment variable (like it was done in #111 for ubuntu).
from openjdk-docker.
Some news on this issue?
from openjdk-docker.
#111 - does it helps ?
from openjdk-docker.
I have added (I hope so) UTF-8 to alpine image
from openjdk-docker.
Thank @jrudolph for explaining, I will try to provide an alpine fix then
from openjdk-docker.
https://github.com/frol/docker-alpine-glibc/blob/master/Dockerfile will use this as reference
from openjdk-docker.
from openjdk-docker.
Related Issues (20)
- openj9,javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
- Latest Alpine slim image is not present with jdk8u302-b08-alpine-slim image tag AND jre8u302-b08-alpine HOT 5
- Latest adoptopenjdk/openjdk8:ubi-minimal-jre docker image doesn't contain arm64 HOT 6
- linux/amd64 missing for many recent releases on Docker Hub HOT 1
- Image adoptopenjdk/openjdk11-openj9:latest broken "no matching manifest for linux/amd64 in the manifest list entries" HOT 6
- OpenJ9 debianslim images are built only for thelinux/ppc64le architecture HOT 1
- migrate debian:buster -> debian:Bullseye (released 14 August 2021) HOT 3
- CVE-2021-33574 and CVE-2021-27645 in adoptopenjdk/openjdk11:alpine-jre HOT 1
- amd64 missing for debianslim-jre HOT 3
- Unable to pull adoptopenjdk/openjdk11:ubi-jre image HOT 1
- When will be the release for Alpine 3.15? HOT 1
- adoptopenjdk/openjdk11-openj9:alpine-slim --->Cannot write dump to file HOT 4
- adoptopenjdk/openjdk8:ubuntu/latest has dropped ARM support HOT 1
- openjdk14x86_64-alpine-jdk-14.0.2_12 is missing HOT 1
- Openjdk11:x86_64-alpine-jdk-11.0.11_9 invalid/missing certificates HOT 1
- Latest centos-slim / jdk-11.0.18_10-centos-slim only published with armv7 images HOT 4
- adoptopenjdk/openjdk11:slim linux/amd64 is missing HOT 1
- adoptopenjdk/openjdk11:debian linux/amd64 is missing HOT 1
- Bump to newer alpine version as 3.14 is EOL HOT 1
- ERROR [internal] load metadata for docker.io/adoptopenjdk/openjdk11:alpine-slim HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openjdk-docker.