How to combine Elixir with Docker?

A step-by-step tutorial with code examples on how to combine Elixir with Docker 
07 August 2017   737

Dynamic, functional language designed for building scalable and maintainable applications.

Elixir is a functional, distributed general-purpose programming language that runs on the Erlang virtual machine. It is built on top of Erlang, which provides distribution, fault tolerance, soft real-time execution, metaprogramming with macros and polymorphism implemented via protocols.

Docker - software for deployment automate and apps management in a virtualization environment at the operating system level. Allows you to "package" an application with all its environment and dependencies into a container that can be transferred to any Linux system with support for cgroups in the kernel, and also provides a container management environment. Initially used the capabilities of LXC, since 2015 used its own library, abstracting the virtualization capabilities of the Linux kernel - libcontainer. With the advent of the Open Container Initiative, the transition from monolithic to modular architecture began.

Docker is widely used in modern software development. So to use both Docker and Elixir together?

The plan of configuration:

  1. Dockerfile definition
  2. Auxiliary bash script
  3. mix.exs description
  4. your_application.ex main module

You can learn how to "unite" Elixir and Docker from this tutorial

ElixirLangMoscow Meetup #7

Meetup will be held on February 15th, Thursday, in Moscow, Pyatnitsky Lane 2
22 January 2018   244

Club ElixirLangMoscow invites all lovers of Elixir, Erlang and functional programming languages to the next meeting of our club. This time the event was decided to be held in the "Dear, I will call back" bar. Because, what could be better than listening to interesting reports for a glass of beer. And even in the company of friends!


We are waiting for two cool reports and a free microphone for those who have something to say.

Dmitry Rubinstein

Topic: “Introduction to Agala

Dmitry Rubinstein
Dmitry Rubinstein

The report will highlight the Agala framework - a platform for real-time interaction with third-party services. Currently, this platform has implemented bots for Telegram and Vk, which are used in the combat environment in our company. Let's analyze the main differences from the known solutions for creating bots on Elixir, consider the internal structure of the platform and learn how to support any necessary third-party service.

Dmitry Rubinstein

Alexandr Shorin 

Topic: “Apache CouchDB: more than a database with HTTP API

Alexandr Shorin
Alexandr Shorin

This will be an introductory report with Apache CouchDB and its ecosystem. Main features and capabilities. Details of the implementation of the replication protocol and why this is important. Forks: Couchbase, Cloudant - what are the differences and why should not they be confused with the original project. The history of clustering, what happened in the end in 2.0 and how it works. What is interesting about the new release and where the project is heading.

Alexandr Shorin 

As a pleasant chip, the bar will prepare an "Elixir" cocktail especially for us. Admission is free, everyone pays their bill.

The event has an age limit of 18+. Register for free.