scherzo icon indicating copy to clipboard operation
scherzo copied to clipboard

fix: issues running with docker

Open Alch-Emi opened this issue 3 years ago • 4 comments

howdy! i'm trying to set up scherzo with docker on my VPS, but i'm running into some issues.

using yusdacra/scherzo:latest (76e317e at writing), i'm getting the error:

standard_init_linux.go:228: exec user process caused: no such file or directory

building the docker image from source produces the same result (commit f17da7c), as does running with docker compose or the docker command provided in the README.

i'm running docker-compose version 1.25.0 with Docker version 20.10.12, build e91ed57 on Ubuntu 20.04.3 LTS. My docker compose snippet is:

version: "3"
services:
  scherzo:
    image: yusdacra/scherzo:latest
    volumes:
      - /data/scherzo/db:/srv/scherzo/db
      - /data/scherzo/media:/srv/scherzo/media
  ...

any advice is appreciated. thank you very much!

Alch-Emi avatar Jan 20 '22 18:01 Alch-Emi

I believe this is because CI does not build the binaries with musl anymore. The docker image uses Alpine, so it won't work. A simple fix would be to probably just use an Ubuntu base image instead of an Alpine one. Ideally I'd like the CI to build musl binaries again, but this is currently blocked due to a dependency.

yusdacra avatar Jan 20 '22 18:01 yusdacra

Running with Ubuntu worked great! Thank you!

Alch-Emi avatar Jan 20 '22 20:01 Alch-Emi

Running with Ubuntu worked great! Thank you!

A PR would be appreciated, if you can :slightly_smiling_face:

yusdacra avatar Jan 20 '22 20:01 yusdacra

Here ya go. #209

wjbeckett avatar Jun 03 '22 21:06 wjbeckett