nythepegasus / SideJITServer

A JIT enabler for iOS 17 with a Windows/macOS computer on the same WiFi!
GNU General Public License v3.0
396 stars 33 forks source link

Linux docker improvements #15

Closed takov751 closed 5 months ago

takov751 commented 5 months ago

I was able to make this work for now inside docker image user is root, however possible workaround might be adding. Need more testing

setcap 'cap_net_raw,cap_net_admin+eip' `readlink -f \`which python\``

Anyhow with this multistage approach i was able to shrink down docker image from 600MB to 346MB.

lockieluke commented 5 months ago

This error is still not fixed for some reason:

23.27       sslpsk_pmd3/_sslpsk.c:19:10: fatal error: openssl/ssl.h: No such file or directory
23.27          19 | #include <openssl/ssl.h>
23.27             |          ^~~~~~~~~~~~~~~
23.27       compilation terminated.
23.27       error: command '/usr/bin/gcc' failed with exit code 1
23.27       [end of output]
takov751 commented 5 months ago

@lockieluke I would need more context as I have not encountered with issue on either native nor docker build. What is your setup (docker/podman) or just how I would be able to reproduce it. So far what i see that openssl dev library not installed. Are you perhaps cross compiling ?

lockieluke commented 5 months ago

I use OrbStack on macOS

polymo1 commented 5 months ago

I use OrbStack on macOS

Please try using the docker command line or docker compose.

takov751 commented 5 months ago

I use OrbStack on macOS

In case you are on macOS you might not want to use docker. Just python module itself