My holy grail would be to (somehow) create a release on Windows (my dev system) and deploy on Linux (our prod servers). However, I have little hope because of the Erlang binaries requirement. Still, you can always hope :)
Bakeware: Compile any Elixir application into a single binary
11–20 of 32 posts
Re: Bakeware: Compile any Elixir application into a single binary
#12I don't know much about elixir but I'm interested. Are there disadvantages to this process?
I'd assume it's incompatible with LGPL code/libraries (unless it's open source), then again I have no idea how widespread said license is in the Elixir world.
Re: Bakeware: Compile any Elixir application into a single binary
#13I'm glad Bakeware is applying brainpower to the entry point problem for simple scripts. I'm currently learning Elixir and the biggest initial hurdle was how to actually create an application. Most tutorials teach you through iex but rarely how to actually write a running program or library. Things like "mix run" wouldn't work until I created an app with mix new, then I had to visit the rabbit hole of genservers and s…
My feedback was "hum, that's kind of a turn off for someone trying to learn the language/tech no?"
I think the community has been looking for something for a while now and is iterating (too?) quickly. There was erlang releases, there was distillery, now it's elixir releases. There are different ways of configuring in production. It goes a little too fast to keep up with to be honest.
Re: Bakeware: Compile any Elixir application into a single binary
#14I'm glad Bakeware is applying brainpower to the entry point problem for simple scripts. I'm currently learning Elixir and the biggest initial hurdle was how to actually create an application. Most tutorials teach you through iex but rarely how to actually write a running program or library. Things like "mix run" wouldn't work until I created an app with mix new, then I had to visit the rabbit hole of genservers and s…
I remember being a reviewer for an Elixir book where the first chapter was listing the pros and cons of Elixir, and one of the cons was: it's kind of hard to manage deployment of Elixir applications. My feedback was "hum, that's kind of a turn off for someone trying to learn the language/tech no?" I think the community has been looking for something for a while now and is iterating (too?) quickly. There was erlang re…
Re: Bakeware: Compile any Elixir application into a single binary
#15Earlier quoted context omitted.
I'd assume it's incompatible with LGPL code/libraries (unless it's open source), then again I have no idea how widespread said license is in the Elixir world.
IIRC LGPL says you have to "convey" the code, not "you must bundle the code with your binary", it could be anything from "email this address to request the code" or "send a SASE to this address and I'll send you a CD-ROM". I believe GPL even lets you charge for the code, I could be wrong about that.
Re: Bakeware: Compile any Elixir application into a single binary
#16I don't know much about elixir but I'm interested. Are there disadvantages to this process?
With static linking you become responsible for:
- tracking down the dependencies used during a build
- track where the binary is deployed
- follow publishing of vulnerabilities affecting the libraries you used
- either backport security fixes, rebuild and deploy the binary or deploy a newer version hoping it does not break anything
Re: Bakeware: Compile any Elixir application into a single binary
#17I don't know much about elixir but I'm interested. Are there disadvantages to this process?
I'd assume it's incompatible with LGPL code/libraries (unless it's open source), then again I have no idea how widespread said license is in the Elixir world.
You can do that by shipping the object files with the binary, or on request, or providing the sources of your application under a closed license, or under any FOSS license.
Re: Bakeware: Compile any Elixir application into a single binary
#18I'm glad Bakeware is applying brainpower to the entry point problem for simple scripts. I'm currently learning Elixir and the biggest initial hurdle was how to actually create an application. Most tutorials teach you through iex but rarely how to actually write a running program or library. Things like "mix run" wouldn't work until I created an app with mix new, then I had to visit the rabbit hole of genservers and s…
I remember being a reviewer for an Elixir book where the first chapter was listing the pros and cons of Elixir, and one of the cons was: it's kind of hard to manage deployment of Elixir applications. My feedback was "hum, that's kind of a turn off for someone trying to learn the language/tech no?" I think the community has been looking for something for a while now and is iterating (too?) quickly. There was erlang re…
In fact, releases and post-deploy ops are pretty well documented: https://hexdocs.pm/mix/Mix.Tasks.Release.html
Phoenix also has an example multi-stage Dockerfile which is fine for 99% use cases: https://hexdocs.pm/phoenix/releases.html
Re: Bakeware: Compile any Elixir application into a single binary
#19I'm glad Bakeware is applying brainpower to the entry point problem for simple scripts. I'm currently learning Elixir and the biggest initial hurdle was how to actually create an application. Most tutorials teach you through iex but rarely how to actually write a running program or library. Things like "mix run" wouldn't work until I created an app with mix new, then I had to visit the rabbit hole of genservers and s…
I remember being a reviewer for an Elixir book where the first chapter was listing the pros and cons of Elixir, and one of the cons was: it's kind of hard to manage deployment of Elixir applications. My feedback was "hum, that's kind of a turn off for someone trying to learn the language/tech no?" I think the community has been looking for something for a while now and is iterating (too?) quickly. There was erlang re…