Other Deploying a Go service

What is the preferred/standard way of deploying an application to FreeBSD? I have a Go app, and on my local dev machine I run it and test it with Docker. I have also deployed it in the past using Docker to a VPS when doing a real world stress test. But AFAIK docker does not run on FreeBSD or recommended at all. However it is really convenient and ideal for quickly (and cleanly) setting up a server.
 
Hi


For Golang I usually build my apps with cross compiling on Linux and deployed it to a VPS. If you have the same linux version locally and in the VPS you don't need anything else, even with CGO enabled. This is usually faster to build a binary than using Docker.

There is podman support with using the linux binary compatiblity.
Podman is a drop in replacement for Docker for containerization. It's actually nicer in some ways as it has a rootless option (have not tested it on freebsd yet). THere's a official video of this
View: https://www.youtube.com/watch?v=HV-wUUzRCMo&t=51s


I'm also experimenting with it and need to setup a proper way to do such builds in a fast way as I can't seem to get deboostrap working properly with freebsd and the "official" golang docker containers seem to have some issues. I'd also recommend maybe using something like vagrant (don't know if it works on freebsd) to have a virtual machine for the build step.

Hope this helps others searching for this specific answer.
 
Yeah I thought what OP meant was cross compiling from FreeBSD to Linux or some other type of VPS. As most providers don't offer... support for freebsd unfortunately:(
 
Back
Top