Sign inSign up

sansarip/phoenix-builder

By sansarip

Updated almost 7 years ago

S2I builder image for Phoenix applications

Image
1

344

sansarip/phoenix-builder repository overview

phoenix logo

About

At this point in time - Aug. 8, 2019 - the majority of the Phoenix s2i builder images I've seen around on Dockerhub are either really out-dated OR (inclusive or btw) just plain don't work. So, I decided to make my own.

This image is pretty simple, and uses the official Elixir Alpine docker image as its base rather than the openshift/base-centos7 image. As a result, it's actually much smaller than the aforementioned OpenShift base image.

Source:

https://github.com/sansarip/phoenix-builder

Usage

  1. Pull the image docker pull sansarip/phoenix-builder

  2. Given you have the s2i executable available to you which you can find here, then you can simply run s2i build <your phoenix app dir> sansarip/phoenix-builder <app name>

  3. All set! You've now generated a new Docker image with your src code embedded in it, and you can run it with docker run -it -p 4000:4000 <app name>

Your application should be listening on port 4000 now. Go get 'em, champ!

Runtime Env Vars

If you expect your final application to accept runtime env vars, then you should pull the image with theruntime-env tag; this version of the builder image will recompile your app on each run, thereby accepting Docker runtime env vars.

Tag summary

Content type

Image

Digest

Size

64.3 MB

Last updated

about 7 years ago

docker pull sansarip/phoenix-builder