Hey everyone, is there a way/guide to serve an app...
# orm-help
e
Hey everyone, is there a way/guide to serve an app made with Prisma on a Raspberry Pi-like devices? Actually, my device is Orange Pi+ 2E (also an ARM processor). I'd like to bring with me a small app so that the members of my small church community could use it, without having to run it on a laptop/PC/from the internet.
n
can Docker run on that device? Can JVM run on that device?
e
Well, the device can run Android, Ubuntu, Debian, Raspbian. So, I'm pretty sure it can run at least JVM. I can't say anything about Docker though.
Currently running Armbian on it.
Would love to hear any info about this ... Thanks @nilan
Hey @nilan, I have installed Docker + Compose on the OrangePi device. The
docker-compose up -d
command finished without any problem, but I the prisma server itself isn't able to run; here is the log of the container:
Copy code
elie@orangepiplus2e:~/hello-world-postgres$ docker logs hello-world-postgres_prisma_1
standard_init_linux.go:190: exec user process caused "exec format error"
Can you point me to a direction to build the Prisma server as a docker image? I think, what has been pulled is an image for another CPU, hence the
exec format error
I seem to have found the base image from which the JVM is being based upon. I think
anapsix/alpine-java
does not support true architecture neutrality, and is always shipping x86 binaries regardless of architecture.
Copy code
elie@orangepiplus2e:~/hello-world-postgres$ docker run -it --rm anapsix/alpine-java java -version
Unable to find image 'anapsix/alpine-java:latest' locally
latest: Pulling from anapsix/alpine-java
ff3a5c916c92: Already exists
b2573fe715ab: Already exists
Digest: sha256:f4271069aa69eeb4cfed50b6a61fb7e4060297511098a3605232dbfe8f85de74
Status: Downloaded newer image for anapsix/alpine-java:latest
standard_init_linux.go:190: exec user process caused "exec format error"
I have posted an issue to the upstream Docker image project: https://github.com/anapsix/docker-alpine-java/issues/71
Hey @nilan ... how can I build the prismagraphql/prisma image myself? It seems that the image itself contains x68-64 binaries, not just the parent layers:
Copy code
elie@orangepiplus2e:~/hello-world-postgres$ docker cp prisma-browsing:/bin/bash .
elie@orangepiplus2e:~/hello-world-postgres$ ls -l
total 712
-rwxr-xr-x 1 elie elie 714912 Feb  7 19:18 bash
-rw-r--r-- 1 elie elie     48 May 19 00:25 datamodel.graphql
-rw-r--r-- 1 elie elie    752 May 19 00:25 docker-compose.yml
-rw-r--r-- 1 elie elie     60 May 19 00:25 prisma.yml
elie@orangepiplus2e:~/hello-world-postgres$ file bash
bash: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-x86_64.so.1, stripped
Here, the
prisma-browsing
container is based on
prismagraphql/prisma:1.8
image:
Copy code
elie@orangepiplus2e:~/hello-world-postgres$ docker ps -a
CONTAINER ID        IMAGE                      COMMAND                  CREATED             STATUS                     PORTS               NAMES
466c3b195507        prismagraphql/prisma:1.8   "/bin/sh -c /app/sta…"   7 minutes ago       Exited (1) 7 minutes ago                       prisma-browsing
Well 🙂 finally got it working on the Orange Pi +2E