-
Notifications
You must be signed in to change notification settings - Fork 10
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
Docker issues. #2
Comments
Works find on windows/osx |
Hi @chrisjenx, Thank you for raising this. So it's struggling to unpack in a docker image 🤔
|
Just to clarify, I don't think this is libly's fault, but does worry me, that it could affect some docker containers. |
Hi @chrisjenx, Just realised you're the author of Calligraphy! I've used it so many times in my Android projects so thank you very much for that! 😁 I made myself a very brief docker container and tested it. It does indeed crash inside docker containers. This is not ideal at all and I will try and fix it. Example stacktrace:
|
Just found a solution. It seems that if you are using So to solve this issue you can do one of 3 things it seems:
Hope that works 👍 |
Awesome, thanks for looking into this. That's great to hear! We moved to
Android tests for this specifically but if we do something on the backend
for this I'll give this a go!
Hopefully if anyone else has a similar issue they will see this.
…On Sun, Nov 17, 2019, 4:11 PM Gurpreet Paul ***@***.***> wrote:
Just found a solution. It seems that if you are using alpine images they
don't include glibc. The solution provided here
<https://stackoverflow.com/questions/50288034/unsatisfiedlinkerror-tmp-snappy-1-1-4-libsnappyjava-so-error-loading-shared-li/>
is very helpful.
So to solve this issue you can do one of 3 things it seems:
1. Use a docker base that does in include it. That is, use FROM
openjdk:8-jre-slim.
2. If you don't want to switch your base image then you can Install
glibc via RUN apk update && apk add --no-cache libc6-compat
3. Or alternatively RUN apk update && apk add --no-cache gcompat
Hope that works 👍
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAI5DMOEUGFTVGWZZQSWYQ3QUHFTVANCNFSM4JJ23FLA>
.
|
Not sure why, struggling to dig into it, but resource loader seems to struggle to unpack resources when running within a docker instance.
I'm trying to get the full stack, but it looks like it never unpacks from the jar correctly:
The text was updated successfully, but these errors were encountered: