Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@lrutten
Created December 13, 2016 10:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lrutten/e99a8324c21bc6c288c4ae7d4222ce66 to your computer and use it in GitHub Desktop.
Save lrutten/e99a8324c21bc6c288c4ae7d4222ce66 to your computer and use it in GitHub Desktop.
Makefile for Erlang in Docker
build:
docker build -t lrutten/erlang .
network-create:
docker network create lokaal
network-ls:
docker network ls
erl1:
docker -D run --name huis1 -it --rm --dns-search=straat.org --net=lokaal -h huis1 --network-alias=huis1.straat.org lrutten/erlang erl -name huis1@huis1.straat.org -setcookie abc
erl2:
docker -D run --name huis2 -it --rm --dns-search=straat.org --net=lokaal -h huis2 --network-alias=huis2.straat.org lrutten/erlang erl -name huis2@huis2.straat.org -setcookie abc
bash1:
docker -D run --name huis1 -it --rm --dns-search=straat.org --net=lokaal -h huis1 --network-alias=huis1.straat.org lrutten/erlang /bin/bash
bash2:
docker -D run --name huis2 -it --rm --dns-search=straat.org --net=lokaal -h huis2 --network-alias=huis2.straat.org lrutten/erlang /bin/bash
stop1:
docker stop huis1
stop2:
docker stop huis2
images:
docker images
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment