Skip to content

Instantly share code, notes, and snippets.

@andrius
Last active March 26, 2018 19:36
Show Gist options
  • Save andrius/0e84a5a6e2aec68cdbee1e273f3a05af to your computer and use it in GitHub Desktop.
Save andrius/0e84a5a6e2aec68cdbee1e273f3a05af to your computer and use it in GitHub Desktop.
Elixir in docker, without installation #docker #elixir
# 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