Last active
March 26, 2018 19:36
-
-
Save andrius/0e84a5a6e2aec68cdbee1e273f3a05af to your computer and use it in GitHub Desktop.
Elixir in docker, without installation #docker #elixir
This file contains hidden or 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
# cat ~/.zsh.after/elixir.zsh | pbcopy | |
elixir(){ | |
docker run --tty --interactive --rm --user `id -u`:`id -g` \ | |
--volume "$PWD":/tmp/elixir/app --workdir /tmp/elixir/app \ | |
--name "elixir-`basename $PWD`" elixir:alpine "$@" | |
} | |
alias iex="elixir iex $@" | |
alias mix="elixir mix $@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment