Skip to content

Instantly share code, notes, and snippets.

@mikehearn
Last active September 19, 2022 09:41
Show Gist options
  • Save mikehearn/5485a7343d9fe838d33d0b028161ae35 to your computer and use it in GitHub Desktop.
Save mikehearn/5485a7343d9fe838d33d0b028161ae35 to your computer and use it in GitHub Desktop.
// A server config for Conveyor: https://conveyor.hydraulic.dev/
// Import config from a Java build system (but you can get it from anywhere).
include required("#!gradle -q printConveyorConfig")
app {
vendor = Hydraulic
fsname = sample-server
machines = [linux.amd64.glibc] // Don't want packages for other platforms.
linux {
compression-level = low // Disk is cheap, waiting for a package build isn't.
// Define a systemd service unit.
services.server {
include "/stdlib/linux/service.conf" // Some useful defaults.
include "/stdlib/linux/lightweight-service-sandbox.conf" // DynamicUser so it's not running as root.
// Override the ExecStart key with the existing contents (i.e. path to the binary) and some extra flags.
Service.ExecStart = ${app.linux.services.server.Service.ExecStart} -v --port ${app.server.http.port}
}
// Maybe we want a local postgresql for this app.
debian.control.Depends = "postgresql (>= 12)"
}
site.base-url = "localhost:5555" // Where the apt repo will be.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment