gtron / erlang-builder

Containerized build env for compiling an erlang application into a lightweight Docker container.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

erlang-builder

Containerized build environment for compiling an erlang application into a lightweight Docker container. Based on work of https://github.com/CenturyLinkLabs/golang-builder

Requeriments

Create a generate_release.sh in your root application directory with instructions to make a release, for example:

#!/bin/bash
rebar get-deps clean compile generate

Usage

Set up IMAGE_APP_NAME and IMAGE_TAG_NAME with your values

docker run --rm -v $(pwd):/opt/erlang_app -v /var/run/docker.sock:/var/run/docker.sock -v $DOCKER_CERT_PATH:/certs -e "DOCKER_HOST=$DOCKER_HOST" -e "DOCKER_CERT_PATH=/certs" -e "DOCKER_TLS_VERIFY=1" -e "IMAGE_APP_NAME=application_name" -e "IMAGE_TAG_NAME=tag" artefactop/erlang-builder

About

Containerized build env for compiling an erlang application into a lightweight Docker container.

License:Apache License 2.0


Languages

Language:Shell 100.0%