Fl4m3Ph03n1x

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:

  1. what is your current setup for developing elixir?
  2. Do you use a docker image for development?
  3. Do you install things directly into your machine?
  4. Do you recommend any cloud provider or online IDE that I could try?

Showing Posts 13 to 4

Asimov

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

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

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

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

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

Fl4m3Ph03n1x OP

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

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

Fl4m3Ph03n1x OP

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

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

Fl4m3Ph03n1x OP

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?

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
Blokh
Hey guys, I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly Do you guys have any suggestions what is the best prac...
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
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
Onor.io
I have what I’ve heard referred to as a “lookup table” in my database. This is a way of assigning codes to common values. One common lo...
New
jaybe78
Hello, I’m developing a online persistent chat system (what’s app) like using elixir/dynamodb/aws for a mobile app(flutter). The diffic...
New
Trolleger
What approach to take when sending live updates to “random” users Hi! I have a question, I have a little chat app, and when I create a DM...
New

Other Trending Topics Top

garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
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
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
aseigo
ICal is a library for interacting with iCalendar data. It parses iCalendars into typed Elixir structs via ICal.from_ics, and can prepare ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews