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

On Friday, April 28, 2017 at 4:49:28 PM UTC+2, OvermindDL1 wrote:
>
> 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.  :-)
>
>
> On Friday, April 28, 2017 at 2:59:11 AM UTC-6, shiroyasha wrote:
>>
>> 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*
>>> www.plataformatec.com.br
>>> Skype: jv.ptec
>>> Founder and Director of R&D
>>>
>>> On Fri, Apr 28, 2017 at 12:53 AM, shiroyasha <[email protected]> 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 [email protected].
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/elixir-lang-core/f0d8b123-647a-4b10-9662-f7d6af30d054%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/elixir-lang-core/f0d8b123-647a-4b10-9662-f7d6af30d054%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/977fa77a-049c-4258-a0a6-622432713f35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to