Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for non-dockerized installation #234

Open
4 tasks
kevinbader opened this issue Jul 23, 2019 · 0 comments
Open
4 tasks

Allow for non-dockerized installation #234

kevinbader opened this issue Jul 23, 2019 · 0 comments

Comments

@kevinbader
Copy link
Contributor

kevinbader commented Jul 23, 2019

While Docker is a modern and popular way to deploy an application, it would still be nice to support the old-fashioned way of installing RIG into the OS' file tree. Couple of things to do here:

  • Create a makefile that by default (i.e., upon make) compiles the release.
  • Create a template for a new configuration file, with comments describing where to find the Operator's Guide, etc. A make install should install the file to /etc/rig/env.conf.
  • Have make install install the release built by make. The target path will be either /opt/ or the directories under /usr/; take a look at general packaging guidelines as well as at existing Erlang packages like ejabberd (PKGFILE). Perhaps there are already best practices around the new Elixir releases. Also, make install has to support the usual prefix parameter in order to be useful to packaging RIG into Linux Distro packages. Pretty sure there's a standard way how to do this, too.
  • Create a systemd service file that runs RIG and used /etc/rig/env.conf as the environment configuration using the EnvironmentFile directive. This service file should be installed by make install as well. Also see the related distillery guide.

Note that I assume systemd cause it's pretty much the standard nowadays.

After this is done, it should be straightforward to create tar, deb, rpm, etc. packages.

EDIT - found this, perhaps that's exactly what we need: https://github.com/18Months/distillery_packager

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant