Saving the day for jslave on Alpine (asgard) #1
13
README.md
13
README.md
|
@ -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.
|
|
@ -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
|
Loading…
Reference in New Issue