Fl4m3Ph03n1x
Background
Recently I took upon a personal project to help someone very close to me. This project will be done in Elixir, but there is an issue - the machines I have access to are not strong enough to have a Linux VM (via VirtualBox or VMWare) on top of their installation and run Elixir.
I mention a VM, because I don’t want to install Elixir on the host, which most likely won’t even be my machine.
Options
The first thing that jumped to my mind was to use a cloud provider. However I have to pay them a monthly fee and I don’t feel comfortable with that idea.
The other option I can think of is using Docker. I have read some articles where people mention developer images for Elixir programmers. Ideally, I would be able to have all my code and environment in a docker image and then use an online editor to code and do the work.
Questions
But I have no experience with docker images for development. So naturally I have some questions:
- what is your current setup for developing elixir?
- Do you use a docker image for development?
- Do you install things directly into your machine?
- Do you recommend any cloud provider or online IDE that I could try?
Trending in Questions
Other Trending Topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #blog-post
- #ai
- #phoenix_html
- #elixirconf-us
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 13 to 4- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
Asimov
You can use the smallest instance at vultr {dot} com. it gives you 512MB Memory and one CPU. At USD 2.50 a month, it is hard to beat. You have your environmente ready in no more than 10 min. I think Digital Ocean has simmilar offers.
NobbZ
I in person have absolutely no reason to boot into windows, except to host my development VM at work…
Sadly this is how it is at work. But a VM works better for me than WSL.
muelthe
Docker is not a VM, absolutely! Have you looked at Windows Subsystem for Linux if you want to stay on Windows? It’s still a VM as such, but lightweight etc. You can read more about it here: Announcing WSL 2 - Windows Command Line
WSL2 would be the version you would want to aim for and there’s a blog about it’s use combined with Docker here: https://www.docker.com/blog/developing-docker-windows-app-wsl2/
muelthe
I don’t use an online IDE, but I do run vscode directly in the container, so perhaps with built-in support for ssh (sorry, not ssl d’uh) it might be possible.
I played with https://codenvy.io/ a while back which was promising, but I got no further than a few simple tests - I was however able to build a complete elixir/phoenix environment quite easily.
egze
I knew a guy who developed on a remote machine on an iPad. Don’t know his setup, but probably something like this Using the iPad Pro as my development machine
Fl4m3Ph03n1x
My old machines are really heavy and bulky. My idea is to dedicate time to this project at night before going to sleep, like reading a book. I would probably invest in a decent keyboard and stream the monitor to a TV or something. But yes, I don’t plan on programming with an iPad, only to use it as a machine I can connect to do work.
NobbZ
Who wants to work on such a thing anyway? Laptop is hard enough… Without my second monitor I’m only half as productive as usualy…
Take whatever linux you are confident with.
Fl4m3Ph03n1x
This will work fine in a laptop, but I don’t see how it can work with an iPad.
Still, do you have any Linux images in mind you would recommend?
NobbZ
Docker is not a VM!
But it runs in a linux VM if your host system is windows.
If you use docker4windows then the MS hypervisor is used, it will allocate the necessary memory for the VM on creation, and even if enough is available in the system, chance is that creation of the machine will fail. I had a lot of trouble using it. It never properly worked for me.
Docker Toolbox though uses VirtualBox and memory for the VM is allocated in a more host friendly way, and in general my experience using it was much better than with docker4windows.
So, your best bet is probably USB-boot into a Linux2Go.
This also solves your “I don’t want to install anything” problem.
Fl4m3Ph03n1x
I only have an available Windows machine, but I would prefer to stay away from installing anything on it. The other tool I can use is an iPad, a really old one.
I am aware that Docker is a VM, but it is at least an order of magnitude faster than VirtualBox or VMWare iirc.
Do you use VSCode online? Do you use any online IDEs?