Created
December 13, 2016 10:43
-
-
Save lrutten/e99a8324c21bc6c288c4ae7d4222ce66 to your computer and use it in GitHub Desktop.
Makefile for Erlang in Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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