axelson
Scenic Core Team
So from watching all the elixirconf2017 videos I’ve gotten very interested in playing with Nerves but haven’t had an opportunity yet. But a user on reddit mentioned that Nerves supports x86_64 machines now and was wondering if it would be possible to use Nerves to deploy to a cloud-based server: https://www.reddit.com/r/elixir/comments/79x71y/how_do_you_deploy_your_elixir_phoenix_applications/dp66uuv/
I think the idea is really tantalizing, does anyone have an idea as to the feasibility? I’m sure it would work on a co-located server but something like AWS probably wouldn’t support it.
Trending in Questions
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
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
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
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
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
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
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
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixirconf-us
- #elixir-ls
- #ai
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
fhunleth
I played around with deploying Nerves “firmware” to the cloud a while back. My notes are here: GitHub - fhunleth/vultr_example: Experiment in using Nerves to deploy to the clouds · GitHub. I originally looked at deploying to AWS, and it seemed feasible but I got a little lost in Amazon terminology. Getting something to work on Vultr was easy so I went there instead.
Some takeaways from doing this were:
nerves_firmware_sshwhich is easier.Anyway, Nerves in the cloud hasn’t been a focus for me, but if others want to pursue it, I certainly would help on low level details.
Frank
BigTom
Could you deploy it on top of a FROM scratch docker container?
Asking for a friend.
fhunleth
A friend told me that it’s possible with enough hackery. The main issue had something to do with getting
erlinitto play nicely with Docker. Unfortunately, they did this a while ago and didn’t remember any more details.If you’re looking into this,
erlinitis a minimal init process for Nerves devices. A few minimal init projects exist for Docker likedumb-initandtini, so there may be a hint in one of them. If you or anyone finds out what’s needed, please file an issue on theerlinitGithub.BarelyFunctional
Any update on this topic?
Anyone successfully adapted Nerves to run on bare metal or VPSes?
I’m not sure about the local dev option, but the possibility of provisioning a production server this way would save so much work on so many levels.
fhunleth
I’ve pretty much abandoned this due to lack of interest. My notes for deploying to a Vultr VPS are still around, but I haven’t kept the Nerves system up with the latest Nerves 1.0-rc updates so there might be some small breakages. Don’t let me dissuade you from exploring this route, though. Many aspects of deploying small self-contained “firmware” bundles to servers appeals to me too, but there’s quite a bit of work left to make this usable in a real environment.
BarelyFunctional
@fhunleth If updated and done right, could this be a replacement for using Docker?
fhunleth
I doubt it. Nerves has a very self-contained and static view of the world: the root filesystem is read-only, adding some OS packages can be non-trivial (no apt-get), and Elixir or Erlang control pretty much everything rather than more standard things like systemd and other Linux tooling. If your server doesn’t have many non-Elixir dependencies and you feel that existing tooling is heavy weight, I can see a Nerves approach appealing to you.
Fwiw, I’d also explore modifying Nerves to output a Docker image. Since the image wouldn’t need a Linux kernel or bootloader, it would even be more minimal - containing only the C runtime libraries, ERTS, your beams, and cross-compiled ports&NIFs. However, it would hook into existing infrastructure built around Docker and that seems useful.
BarelyFunctional
Thanks, I had to ask because I’m trying to find a way to avoid using Docker and in some aspects the OTP appears superior for networking.
AndyL
I’m also interested in hearing from anyone working on containerized-nerves. Seems like it could simplify operations and be portable between devices and data center.
Exadra37
This is one of the main disadvantages of Elixir when compared with ready to use binaries from Rust or Golang…
I would love also to be able to use Elixir apps from a standalone binary without any external dependencies