Size: a a a

2021 June 12

AB

Andrey Burov in Go-go!
FROM scratch -> FROM alpine
источник

M

Manish | Developer in Go-go!
NOthing changed
источник

M

Manish | Developer in Go-go!
same problem
источник

AK

Andrey Kartashov in Go-go!
+1 "no such file" may be related to a shared library. @itzmanish you can check ldd mediasoup
источник

M

Manish | Developer in Go-go!
linux-vdso.so.1 (0x00007ffd57dbb000)
       libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fc52b6f4000)
       librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fc52b4ec000)
       libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fc52b163000)
       libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fc52adc5000)
       libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fc52abad000)
       libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fc52a98e000)
       libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc52a59d000)
       /lib64/ld-linux-x86-64.so.2 (0x00007fc52c334000)
источник

AK

Andrey Kartashov in Go-go!
all .so should be in place inside the docker image
источник

AK

Andrey Kartashov in Go-go!
try FROM debian
источник

AK

Andrey Kartashov in Go-go!
alpine has no libc.so.6
источник

M

Manish | Developer in Go-go!
Right working fine with debian. Thanks @gorilych and @burik666
источник

M

Manish | Developer in Go-go!
But don't you guys thinks it will be bulky to use debian instead of scratch and alpine.
источник

AK

Andrey Kartashov in Go-go!
you can check some distroless if you worry about the size. or debian slim
источник

AB

Andrey Burov in Go-go!
you can use a -slim version https://hub.docker.com/_/debian
источник

AK

Andrey Kartashov in Go-go!
or, if you have this option, try to replace mediasoup with statically linked binary
источник

M

Manish | Developer in Go-go!
Is it possible to just copy libc.so.6 to scratch or alpine?
источник

M

Manish | Developer in Go-go!
And how to do that?
источник

AK

Andrey Kartashov in Go-go!
I wouldn't recommend this
источник

AK

Andrey Kartashov in Go-go!
recompile
источник

AK

Andrey Kartashov in Go-go!
источник

M

Manish | Developer in Go-go!
What I do is compile mediasoup and get a binary then I can use that with docker-compose(mount bin volume) or dockerfile (add that bin directly). Is it possible that mediasoup process run on my ubuntu server and my golang service run on docker?
источник

AK

Andrey Kartashov in Go-go!
This needs proper reasoning. Why do you need docker in the first place? Both binaries expected to work well w/o it
источник