Skip to content
This repository has been archived by the owner on Jan 15, 2023. It is now read-only.

Docker image with Erlang, Elixir, and NodeJS on CentOS for cross-building Elixir/Phoenix apps as OTP releases.

Notifications You must be signed in to change notification settings

nalaka/docker-elixir-centos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker image for cross-building Elixir/Phoenix apps to CentOS/RHEL

Docker image with Erlang, Elixir, and NodeJS on CentOS for cross-building Elixir/Phoenix apps as OTP releases.

Uses CentOS official base image and official binary builds of Erlang, Elixir, and NodeJS.

Versions:

  • CentOS: 7.6 (x86-64) - same as RHEL 7.6
  • Erlang: 22.0.4
  • Elixir: 1.9.0
  • NodeJS: 10.16.0

Warning: Do not use this image to deploy the app as the size is quite large at ~598MB

Usage

For an example build file that cross-builds a Phoenix app, refer to phoenix/build-release.sh file.

This file should be placed at the root of the Elixir/Phoenix project and:

# Run the build script inside a container running this image
# Note: On Windows replace $(pwd) with the actual path

docker run -v $(pwd):/home --rm -it akalan/elixir-centos /home/build-release.sh


# Run the generated release inside the same container

docker run -v $(pwd):/home --rm -it akalan/elixir-centos /home/_build/prod/rel/appname/bin/appname

The release is tarred and zipped to releases/appname-version-utc_time_stamp.tar.gz

Contributions

All contributions are welcome- please open an issue and send a pull request.

To build the image locally:

# Get the source
git clone https://github.com/nalaka/docker-elixir-centos.git

# Build
cd docker-elixir-centos
docker build -t elixir-centos:latest  . 

# Run
docker run --rm -it elixir-centos:latest

About

Docker image with Erlang, Elixir, and NodeJS on CentOS for cross-building Elixir/Phoenix apps as OTP releases.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published