Onpremise: Reference to realpath in install script breaks macOS compatibility

Created on 30 Apr 2021  Â·  6Comments  Â·  Source: getsentry/onpremise

Version Information

Version: 2.3.1

Steps to Reproduce

  1. run ./install.sh on macOS (11.2.3)

Expected Result

Install script runs successfully.

Actual Result

Install script immediately fails.

Logs

What you saw along the way, e.g.:

  • ./install/_lib.sh: line 15: realpath: command not found
In Progress Bug

Most helpful comment

Blerp. Workaround is brew install coreutils until we get a fix in. Sorry!

All 6 comments

@misswyy I'm able to work around this issue with git checkout 2.3.1 if you are still looking for a solution.

Hi @10xjs, thanks for the report! We expect folks to use this repo on Linux machines so that's what we test this on. That said we like keeping it compatible with MacOS so I'll see what we can do here.

Blerp. Workaround is brew install coreutils until we get a fix in. Sorry!

Same issue, fixed by running brew install coreutils

but then hit another error:

â–¶ Parsing command line ...

â–¶ Setting up error handling ...

â–¶ Checking minimum requirements ...
An error occurred, caught SIGERR on line 12

Fixed this error by running Docker process first.

It's odd that parts of the build are outside Docker, isn't the point of Docker to have a cross-platform development environment?

docker-compose up can spin up multiple containers, running installation scripts inside the containers themselves?

running installation scripts inside the containers themselves

Not a bad idea, though this would be a pretty significant rewrite. Reticketed as https://github.com/getsentry/onpremise/issues/999.

Fixed this error by running Docker process first.

I guess we could add an explicit check for whether Docker is running? Or at least something to the docs to say "Make sure Docker is running"?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MaximilianKindshofer picture MaximilianKindshofer  Â·  6Comments

marbon87 picture marbon87  Â·  5Comments

rmisyurev picture rmisyurev  Â·  4Comments

kh0r picture kh0r  Â·  5Comments

eandersons picture eandersons  Â·  5Comments