executable-dist-plugin
release.sh
executable-dist-plugin | release.sh | |
---|---|---|
1 | 2 | |
3 | 43 | |
- | - | |
10.0 | 3.7 | |
about 9 years ago | 8 months ago | |
Java | Shell | |
BSD 2-clause "Simplified" License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
executable-dist-plugin
-
The Simplicity of Single-File Golang Deployments
I feel like i'm taking crazy pills (at a low dose) when i read this stuff.
I deploy Java applications. In a runnable condition, they aren't a single file, but they aren't many - maybe a dozen jars plus some scripts. Our build process puts all that in a tarball. Deployment comprises copying the tarball to the server, then unpacking it [1].
That is one step more than deploying a single binary, but it's a trivial step, and both steps are done by a release script, so there is a single user-visible step.
The additional pain associated with deploying a tarball rather than a single binary is negligible. It simply is not worth worrying about [2].
But Go enjoyers make such a big deal of this single binary! What am i missing?
Now, this post does talk about Docker. If you use Docker to deploy, then yes, that is more of a headache. But Docker is not the only alternative to a single binary! You can just deploy a tarball!
[1] We do deploy the JDK separately. We have a script which takes a local path to a JDK tarball and a hostname, and installs the JDK in the right place on the target machine. This is a bit caveman, and it might be better to use something like Ansible, or make custom OS packages for specific JDKs, or even use something like asdf. But we don't need to deploy JDKs very often, so the script works for us.
[2] Although if you insist, it's pretty easy to make a self-expanding-and-running zip, so you could have a single file if you really want: https://github.com/vmware-archive/executable-dist-plugin
release.sh
-
The Simplicity of Single-File Golang Deployments
I made a cool program for you Go stuff that will check all the supported OS and ARCH combos for your code and compile them all. You just do `release --name "mycoolprogram" --version "0.1.0" and it will output all of your labeled release binaries for every platform your code supports.
check it out! https://github.com/donuts-are-good/release.sh You can see it at work here for this simple markdown blog generator I made, which sports about 39 different platform combos https://github.com/donuts-are-good/bearclaw/release/latest
-
Why is building a UI in Rust so hard?
Im releasing on 39+ platforms. https://github.com/donuts-are-good/bearclaw for example releasing using https://github.com/donuts-are-good/release.sh
What are some alternatives?
bearclaw - tiny static site generator w/ rss
go-reuseport - reuse tcp/udp ports in golang
debug - Fork of pkg/debug that adds some additional functionality.
tableflip - Graceful process restarts in Go
Quarkus - Quarkus: Supersonic Subatomic Java.
jolikit - Java APIs to abstract away time (clocks, schedulers), simple 2D UIs (BWD), and a bit more, with default implementations
httpx - Provides an extended, production-ready HTTP server.
purego