Development Machines

81 views
Skip to first unread message

shiroyasha

unread,
Apr 27, 2017, 6:53:35 PM4/27/17
to elixir-lang-core
Hi guys,

I would like give it a shot and try to help with issues/development/etc. What is your preferred development environment while working on elixir? Do you have a recommended vagrant machine, or a docker image that you use for development?

Thanks,
Igor

José Valim

unread,
Apr 28, 2017, 3:24:50 AM4/28/17
to elixir-l...@googlegroups.com
Welcome! We don't have an official vagrant machine but maybe someone has made one available. Developers should be just fine on Mac or Linux. It may be not as straight-forward on Windows, but they are guides on the wiki to get the C compilers working.



José Valim
Skype: jv.ptec
Founder and Director of R&D

--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-core+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/f0d8b123-647a-4b10-9662-f7d6af30d054%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

shiroyasha

unread,
Apr 28, 2017, 4:59:11 AM4/28/17
to elixir-lang-core, jose....@plataformatec.com.br
Thanks for the fast reply. I'll try to look into what is available.


On Friday, April 28, 2017 at 9:24:50 AM UTC+2, José Valim wrote:
Welcome! We don't have an official vagrant machine but maybe someone has made one available. Developers should be just fine on Mac or Linux. It may be not as straight-forward on Windows, but they are guides on the wiki to get the C compilers working.



José Valim
Skype: jv.ptec
Founder and Director of R&D

On Fri, Apr 28, 2017 at 12:53 AM, shiroyasha <igi...@gmail.com> wrote:
Hi guys,

I would like give it a shot and try to help with issues/development/etc. What is your preferred development environment while working on elixir? Do you have a recommended vagrant machine, or a docker image that you use for development?

Thanks,
Igor

--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.

OvermindDL1

unread,
Apr 28, 2017, 10:49:28 AM4/28/17
to elixir-lang-core, jose....@plataformatec.com.br
I have no issue with it on Windows but I have a heavily modified bash shell (not Windows 10's bash shell) with mingw that works fine.  :-)

shiroyasha

unread,
Apr 28, 2017, 11:31:01 AM4/28/17
to elixir-lang-core, jose....@plataformatec.com.br

I have played around with the idea of using docker as a development environment for developing elixir. It works very nice, and it would allow us quickly compile on more than one OTP platform without dirtying our host machines (e.g installing kerl and compiling various erlang versions).


The development flow would be the following:

  1. First, you open a terminal, navigate to the root of the project, and start a development machine. For example, you would type docker-compose run erl192 to compile/test your code based on Erlang 19.2. This starts a bash shell, and shares(mounts) the projects into the docker image.

  2. You edit the code, either on your host machine with Atom for example, or from inside of the docker image with Vim and when you are happy with the changes you can type make test in the bash shell from the running docker image.

This could be also used as the base for testing in the CI environment, but I am not sure of the performance penalty.

I got a successful (green) build for every docker image (erl_18.1, erl_18.2, erl_18.3, erl_19.0, erl_19.1, erl_19.2, erl_19.3)


Let me know if you like this idea.

Link to the pull request: https://github.com/elixir-lang/elixir/pull/6045


Best,

Igor

Allen Madsen

unread,
Apr 28, 2017, 11:49:59 AM4/28/17
to elixir-l...@googlegroups.com, José Valim
I developed an Elixir app in docker for a couple months. If you're doing it on linux where it can natively run it'll probably work great. I noticed a significant boost in speed when compiling outside of a container on mac. The disk access for docker on mac is slower because it has to go through a couple layers on mac.

Allen Madsen

To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-core+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/977fa77a-049c-4258-a0a6-622432713f35%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages