feat(pkg): adding nfpm packaging

This commit is contained in:
Philippe Caseiro 2023-02-16 15:43:11 +01:00
parent 5b35d10ad8
commit 4e356c51fe
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,13 @@
# Alpine Docker compose service
## Run docker-compose services as openrc services
Copy the script init.d/dc to /etc/init.d/dc.
Each docker-compose based service $SERVICENAME must exist like so:
* /srv/docker/$SERVICENAME/docker-compose.yml.
Finally create some symbolic link :
* ln -s /etc/init.d/dockerservice.$SERVICENAME pointing to /etc/init.d/dc.
Services can now be started/stopped via e.g. /etc/init.d/dockerservice.gitea start.

33
nfpm.yaml Normal file
View File

@ -0,0 +1,33 @@
# nfpm example config file
#
# check https://nfpm.goreleaser.com/configuration for detailed usage
#
name: "dcservice"
arch: "amd64"
platform: "linux"
version: "v0.0.1"
section: "default"
priority: "extra"
maintainer: "Cadoles <contact@cadoles.com>"
description: |
Docker Compose Openrc Services
vendor: "Cadoles"
homepage: "https://www.cadoles.com"
license: "GPL-v3"
changelog: "changelog.yaml"
contents:
- src: init.d/dc
dst: /etc/init.d/dc
- src: services
dst: /srv/docker
- src: init.d/dc
dst: /etc/init.d/dc.jslave
type: symlink
overrides:
apk:
depends:
- docker-compose
- docker