Skip to content
Paperwork Storages Service
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
hooks
lib
rel
.dockerignore
.editorconfig
.gitignore
Dockerfile
LICENSE
Makefile
README.md
mix.exs
mix.lock
service.sublime-project

README.md

service-storages

Paperwork Storages Service

Prerequisites

Docker

Get Docker Desktop.

Elixir/Erlang

On MacOS using brew:

% brew install elixir

Building

Fetching all dependencies:

% mix deps.get

Compiling:

% mix compile

Running

In order to run this service, we need to install the dependencies it has:

$ # on macOS
$ brew install imagemagick
$ # on Ubuntu Linux
$ apt-get install imagemagick

For all other operating systems, check the ImageMagick site.

Atfer that, we can initialize the service this service depends on.

First, we need a database and an object store. Let's run MongoDB and Minio on Docker:

% docker run -it --rm --name mongodb -p 27017:27017 mongo:latest
% docker run -it --rm --name minio -e 'MINIO_ACCESS_KEY=root' -e 'MINIO_SECRET_KEY=roooooot' -p 9000:9000 minio/minio:latest server /data

Second, we need to run service-gatekeeper. Please refer to its documentation.

Then we can run this service from within this cloned repository:

% iex -S mix
You can’t perform that action at this time.