Saving the day for jslave on Alpine (asgard) #1

Open
pcaseiro wants to merge 4 commits from develop into master
2 changed files with 46 additions and 0 deletions
Showing only changes of commit 4e356c51fe - Show all commits

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