Skip to content

renderedtext/alpine-release

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 

Alpine Release

Generate a distillery release for Alpine Docker with ease.

Installation

Add alpine_release to your list of dependencies in mix.exs:

def deps do
  [
    {:distillery, "~> 1.0"},
    {:alpine_release, github: "renderedtext/alpine-release"}
  ]
end

Working with distillery

Run:

mix release.init

to generate rel/config.exs configuration file. This file is used by distillery to build you release, so make sure you have it checked in your version control system if you plan to build your releases remotely.

More info about the configuration can be found on Distillery docs.

Notable differences from exrm

Distillery has some differences compared to exrm in respect to replacing OS variables in your Dockerfiles.

This will work:

REPLACE_OS_VARS=true

but this won't:

RELX_REPLACE_OS_VARS=true

For more info, check out distillery github repo.

Generate a release

mix alpine.release

When it finishes, your release can be found in rel/app.tar.gz and ready to be injected in any Alpine Based docker image.

You can also specify the environment in which you what the release to be made, for example:

MIX_ENV=test mix alpine.release

About

Generate an exrm release for Alpine Docker with ease

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages