Recent Posts
How to set up a development environment for Phoenix Framework with Docker Compose
In my last post I showed how to create a simple Phoenix project using Docker. Now it’s time to take the next step: We’ll spawn a complete dev environment including database, using Docker Compose.
Docker Compose lets you configure and start docker containers, so the DB and webserver will start with just one command.
We’ll start again with a simple Dockerfile for using Phoenix:
FROMelixir:1.9.0ENV APP_HOME /usr/src/appRUN mkdir ${APP_HOME}WORKDIR${APP_HOME}RUN mix local.
read more
Create a Phoenix app using Docker
In this tutorial I’ll show you how to create a Phoenix Framework app running in a container. Basically the same thing as the official getting started guide does, just containerized. As usual I’m keeping it briefly, just to guet you startet, without all the fuzz.
I assume you have your environment ready with Docker running. As there isn’t an official Phoenix Docker image, our first step is to build one. Create a directory and an empty file with the name “Dockerfile”.
read more
Advent of code 2020 with Erlang
I used the Advent of Code 2020 to learn the Erlang programming language. Due to my ongoing lack of time, I didnt solve all the puzzles, but I’d like to show it to you anyway 😄
In Erlang, some things are utterly simple, the actual solving (without file parsing) of Day 1 only takes one line of code. The typespecs are not manatory in Erlang, but increase readability and give more possibilities to find mistakes.
read more