Comments (12)
Try using frolvlad/alpine-oraclejre8
/ frolvlad/alpine-oraclejdk8
images instead of building your own image. Where did you get glibc 1.2?
from alpine-pkg-glibc.
sorry, my error , i use the repository glibc and the version is glibc-2.23-r3.apk
, i want to know why it can not work? thinks
from alpine-pkg-glibc.
I have no idea, but you should try the latest glibc, which is already 2.27-r0. Give a try to the Docker images I referred above.
from alpine-pkg-glibc.
@frol i use the frolvlad/alpine-oraclejdk8
images to test code the same with worn
from alpine-pkg-glibc.
thks, i also test the 2.27-r0 version , it also do not work !
from alpine-pkg-glibc.
I have just read your comment between the two pictures and realized that there is no issue with the glibc, you are just missing the font. Alpine just doesn't ship too many fonts by default. You may try installing various ttf* packages from apk and see if that helps. Otherwise, just bundle your favorite font into the image.
from alpine-pkg-glibc.
@frol yes , i test the way that i drop the font file (ttf) to ${JRE_HOME}/lib/fonts/fallback
, it can works but i want use my own ttf
in my program, now i want know why it can not work , can give some debug methods ? thinks , my english is poor.
from alpine-pkg-glibc.
I want use my own ttf in my program
So you do, you use your own font from what I see, and it is working fine, isn't it? I don't understand what is your problem then.
from alpine-pkg-glibc.
the problem is :
-
in the env
(centos+oracle jdk1.8)
, i run the code it can draw the picture use my own fonts,the reset is follow picture:
-
when i do not use the docker images
(build with alpine3.4+ sgerrand/alpine-pkg-glibc + Oracle JDK1.8 )
, the same code , but it can not draw the picture
PS:
i use the sgerrand/alpine-pkg-glibc
with 2.27-r0
and use this images https://github.com/oracle/docker-images
, all of them is error!
from alpine-pkg-glibc.
This just means that CentOS has the necessary font by default and Alpine does not. You should create an image with the necessary font. You may want to start with copying all the fonts from the CentOS image to Alpine image and then, once you know which font you need, you may try to find a package in Alpine repository and install it in your Dockerfile.
from alpine-pkg-glibc.
but the font file is my own design, alpine repository do not have , so i will use Font.createFont("my own font file")
method to create it, but now it do not work
from alpine-pkg-glibc.
Thank you for filing this issue and apologies for the late reply. Unfortunately this issue as stated is related solely with your Java code and runtime environment, not this package.
from alpine-pkg-glibc.
Related Issues (20)
- Whether aarch64 is supported? HOT 1
- Missing symbos to debug a `malloc` crash in glibc-compat HOT 2
- trying to overwrite etc/nsswitch.conf owned by alpine-baselayout-data-3.2.0-r23. HOT 4
- make test failed about [email protected] on ubuntu_aarch64 HOT 2
- error /lib/ld-linux-x86-64.so.2 HOT 1
- /usr/lib/libstdc++.so.6: no version information available HOT 2
- Error relocating /lib/ld-linux-x86-64.so.2: unsupported relocation type 37 HOT 6
- did this glibc support arm? HOT 2
- v2.35-r1 symbols not found HOT 2
- Unexpected "(" in /usr/glibc-compat/sbin/ldconfig
- SSL certificate from https://sgerrand.com/ has expired. HOT 11
- Error character map file UTF-8' not found: No such file or directory HOT 1
- ....symbol not found HOT 4
- Is alpine-pkg-glibc supports for latest alpine release 3.18 HOT 13
- protoc: stdout: . stderr: Error loading shared library ld-linux-x86-64.so.2: No such file or directory HOT 4
- 2.35-r1 release doesnt work with alpine image HOT 1
- ERROR: gcompat-1.1.0-r4: trying to overwrite lib/ld-linux-x86-64.so.2 owned by glibc-2.35-r1. HOT 10
- Getting segmentation fault after python upgrade HOT 4
- Release 2.38 HOT 20
- Cannot connect to https://alpine-pkgs.sgerrand.com/ via CloudFlare HOT 2
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 alpine-pkg-glibc.