jnswtk

jnswtk

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!

First 10 of 22 Posts Switch mode

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).

sergio

sergio

You shouldn’t compound one unknown with yet another one. Learn Elixir, don’t learn Elixir and Docker at the same time.

I’m using Windows 10 to write Elixir – but I use a Linux Mint virtual machine and actually code in there. I recommend you go that route.

https://my.vmware.com/en/web/vmware/downloads/info/slug/desktop_end_user_computing/vmware_workstation_player/16_0

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.

cmo

cmo

You can also develop on Windows without using WSL.

thiagomajesk

thiagomajesk

Went that route before and can’t quite recommend that. The “elixir experience” on pure Windows can become quite frustrating sometimes although it might have changed since the last time I used it. One of the things that ground my gears back then was that IEx autocompletion simply didn’t work (and werl is just not really a good alternative to a terminal workflow. Besides, it is ugly AF)

You are better off just using WSL2 with whatever distro you like best. It’s just easier to set up and you won’t have problems with libraries where UNIX support is first class. Just less headache overall.

cmo

cmo

IEx autocompletion, no asdf and sometimes symbols/colours in the terminal are weird are what I notice is lacking, but I figure typing everything means I commit things to memory better.

My app is designed to run on Windows only and interacts with other Windows software through a dll, so I don’t have a choice :upside_down_face:

jnswtk

jnswtk OP

Thanks for all replies!

I made a small research about Docker and it seems to work a little bit different than I thought. I just set up WSL2 with Ubuntu and installed elixir (sudo apt install erlang elixir), but I have some troubles with ElixirLS.

thomas.fortes

thomas.fortes

Install elixir and erlang with asdf or using the instructions from Installing Elixir - The Elixir programming language, the versions available on the default repos for ubuntu 20.04 (which is the most common in WSL2) aren’t that updated.

IIRC the default elixir version in the ubuntu repos is 1.9 and elixir-ls depends on 1.10.

jnswtk

jnswtk OP

Thanks, I updated elixir to 1.12, but I still get error ‘server crashed 5 times in the last 3 minutes’, no matter if I try in WSL Remote or not.

Where Next? Top

Trending in Questions Top

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
jonnycharles
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
spammy
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
dli
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app? Looking for hints regarding: Addi...
New
roeland
Kia ora, We have been using elixir-google-api to connect to Google Drive. However, with the updates to Tesla due to CVEs this is now bro...
New
bottlenecked
Hi all, I wanted to ask how the community is dealing with post-release steps. Today we have Ecto migrations, which make sure that the db...
New
rahultumpala
Hello, I have an Elixir backend that implements a custom protocol over TCP. I want to load test the backend and assess the performance o...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New

We're in Beta

About us Mission Statement