Creates a Debian package and a systemd configuration
- You must have a sane instance of
go - You must be in a debian environment (needs
dpkg)
The program needs a configuration file to work. This configuration file describes how to build the package
Type: string
Name of the debian package
Type: string
Architecture of the system. For instance armhf, all
Type: string
local path to the binary file to execute
Type: string
Command
Type: string[]
List of configuration files
Type: string[]
List of files to copy. Syntax: path[:dest]
For instance:
./foo/*.txt copy all files that match the pattern
./foo/*.txt:data copy all files that match the pattern in /var/lib/{package name}/data
./foo/*.conf:/etc/foo copy all files that match the pattern in /etc/foo
Type: string[]
List of folders to create
For instance:
foo/mickey creates the folder /var/lib/{package name}/foo/mickey
/etc/foo creates the folder /etc/foo
Type: string
Package version
Type: string
Package description
Type: string
Email of the maintener
Type: string[]
List of dependencies
Configure service
Type: string
After
Type: string
User that launch the binary
Type: string[]
Arguments to pass to the binary
Type: string
Stop command
Type: string
Restart policy. For instance always
Type: string
Wanted by
Type: dictionary
Environment variables
Type: string
Directory in which the binary is launched
Type: string
Post install command
Type: boolean
If true, start the service during package installation
package-name: "my-executable"
architecture: "all"
binary-file: "./my-exec"
copy-files:
- "./data/*.txt:data"
version: "0.0.1"
description: "Executable example"
maintainer: "[email protected]"
systemd-configuration:
user: "root"
after: network.target
stop-command: /bin/kill $MAINPID
restart: always
wanted-by: multi-user.target
working-directory: "/var/lib/foo"package-name: "my-website"
architecture: "all"
binary-file: "./my-exec"
copy-files:
- "./data/*:/var/www"
version: "0.0.1"
description: "Executable example"
maintainer: "[email protected]"
systemd-configuration:
user: "root"
after: network.target
wanted-by: multi-user.target
post-install-cmd: "systemctl restart nginx"