This repository contains the source for building various versions of Erlang applications as a reproducible Docker image using source-to-image. The resulting image can be run using Docker.
For more information about using this image with OpenShift, please see the official OpenShift Documentation.
Erlang versions currently provided are:
1.8.1
(Tags:1
,1.8
,latest
)- OTP
21
- OTP
1.7.4
(Tags:1.7
)- OTP
20
/21
- OTP
1.6.6
(Tags:1.6
)- OTP
20
/21
- OTP
CentOS versions currently supported are:
- CentOS7
To build an Elixir image:
- Clone this repo and enter into the directory
git clone git@github.com:jshmrtn/s2i-elixir.git
cd s2i-elixir
- Install the example image stream configuration into OpenShift
oc create -f imagestream.json
- Create the application
- WebUI - Navigate to the project, click 'Add to Project' and search for the new builder image, select it and populate the fields to create your application
- Command Line -
oc new-app --image-stream=elixir --code https://your.git/repo
The image supports to be used via distillery
.
If the Environment Variable ENABLE_DISTILLERY
is present, the image
will built using distillery. The resulting release should be copied
into a clean base image and run from there.
To build the Elixir Builder image:
- This image is available on DockerHub. To download it run:
$ docker pull jshmrtn/s2i-elixir
- To build an Elixir builder image from scratch run:
$ git clone https://github.com/jshmrtn/s2i-elixir.git
$ cd s2i-elixir/[ELIXIR_VERSION]/otp-[ERLANG_VERSION]
$ docker build -t jshmrtn/s2i-elixir:[VERSION]-otp-[ERLANG_VERSION] .