lucianleustean / burrito_cli_example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BurritoCliExample

Simple CLI app, written in Elixir, to which fetches a random quote

Installation

build dependencies

brew install zig
brew install gzip
brew install p7zip

Build new production release and run locally on a macos

Build a new release

BURRITO_TARGET=macos MIX_ENV=prod mix release

Run release locally

./burrito_out/example_cli_app_macos start
  • Note: there are some permission issues when building for this platform and requires sudo to build and run

Run app in a simple docker container

Run release locally

BURRITO_TARGET=linux MIX_ENV=prod mix release

Build docker image

docker build -t "borrito_cli_example"  --no-cache .

Run docker image

docker run borrito_cli_example

About


Languages

Language:Elixir 96.2%Language:Dockerfile 3.8%