Produce static morley binary for linux
Clarification and motivation
In order to make morley
tool usable we have to provide it in compiled form. Currently we do it using Docker images and GitLab's container registry: https://gitlab.com/morley-framework/morley/container_registry. It forces us to write custom scripts to deal with filepaths and other stuff that needs special handling in case of Docker. According to @zhenyavinogradov:
People usually use docker images either for constantly-running services (like a database), or for language-specific/distribution-specific environments (like python or ubuntu) used to build/run other services. Using docker for distributing cli tools is actually not common, for that people usually either make a static binary or put the tool into a package manager
So we are doing something uncommon and a bit inconvenient. Inconvenient not only for us (we have to write scripts and care about Docker specifics) but also for users (at least because they have to install and run Docker which is not present on all systems by default).
This Docker-based approach was implemented more than a year ago and we needed some way to deliver our tool in compiled form. Back then we were in hurry and picked it because we knew how to do it. But now we are not in hurry anymore and can implement whatever is more proper. Apparently static binaries and putting the tool into package managers' stuff is more proper. We can spend some time on that now.
That being said, Docker-based approach kinda makes some sense and I think we can still support it. At least in this issue we want to support only linux while Docker-based approach is more crossplatform. Maybe one day we will discard the Docker way completely, but not in this issue.
Acceptance criteria
Let's start with building a fully static morley
executable for Linux. It should be produced by CI and put into artifacts.
Optional part: build morley-debugger
as well.