jnswtk

jnswtk

Programming in Elixir with Docker on Windows

Hello,

few days ago I changed my GPU and I had to switch from Linux to Windows. I consider learning Docker instead of installing Elixir on my machine. Is it worth my time? I’m still learning Elixir basics and I don’t have any experience with Docker, but I thought that maybe it’s a good idea and some kind of investment for the future.

Unfortunately, virtual machines don’t work well on my machine, they are pretty slow and I have bad experience with using them.

Thanks!

Most Liked

tomkonidas

tomkonidas

If I am using windows, I use WSL2. With this i can treat it as any other Linux machine. You do not need to use docker, but If you did, it has nice integration with WSL.

In WSL, I use asdf for elixir/erlang/nodejs

thiagomajesk

thiagomajesk

This is also the best advice I can give as a Windows user.

I’ve been using WSL for the past 2 years with Elixir and the overall experience has been pretty good (especially after some WSL2 tweaks).

crispinb

crispinb

My main current machine runs Windows 10, and having come to it from Linux (Fedora) I’ll attest to WSL2 working remarkably well. I brought my Linux dotfiles along (making a few wsl-specific edits here and there), and I have an environment that feels pretty comfortable. Windows terminal is finally good enough to live in. From day to day I hardly notice that I’m effectively working in a VM. Performance is impressive - within a few percent of running Linux on bare metal. You can even use your GPU from WSL (though until the final WSLg release it involves running a Windows Insider build, so probably better to wait a few months for that).

Agree that adding the burden of learning Docker seems like an unnecessary barrier.

Last Post!

jnswtk

jnswtk

I couldn’t find solution on OpenSUSE, so I tried both Alpine and Debian. I had some issues on Alpine, but Debian seems to be the best choice. Everything works out of the box and thanks to the backports repository, Debian ships with Elixir 1.10.3 and Postgres 13.3.

Where Next?

Popular in Questions Top

jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New

Other popular topics Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 54006 488
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 49084 226
New

We're in Beta

About us Mission Statement