spinspire / pocketbase-sveltekit-starter

a starter project to build a SvelteKit frontend with PocketBase backend
MIT License
363 stars 62 forks source link

docker example doesn't work #23

Open ThaUnknown opened 1 year ago

ThaUnknown commented 1 year ago

exact command ran:

git clone https://github.com/spinspire/pocketbase-sveltekit-starter; cd pocketbase-sveltekit-starter; docker compose up -d

error:

[+] Running 2/3
 ✔ Network pocketbase-sveltekit-starter_default  Created                                                           0.7s
 - Container pocketbase-sveltekit-starter-pb-1   Starting                                                          2.1s
 ✔ Container pocketbase-sveltekit-starter-sk-1   Started                                                           1.8s
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/app/pb/entrypoint.sh": stat /app/pb/entrypoint.sh: no such file or directory: unknown

inside docker the directories are simply empty image

ThaUnknown commented 1 year ago

seems like the entrypoint contains CRLF instead of plain LF, which causes issues

jkdoshi commented 1 year ago

Hmm ... Thanks for pointing that out. Also, it's possible that it is trying to use a shell (e. g. bash) that is not installed.

jkdoshi commented 1 year ago

I'll fix the CRLF too