summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 42336a881d2e52a4a9f07436ed0c292025235eba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pkgname=docker-compose-systemd-unit
pkgver=1
pkgrel=2
pkgdesc="systemd unit file for docker-compose services"
arch=('any')
url="https://gist.github.com/mosquito/b23e1c1e5723a7fd9e6568e5cf91180f"
license=('unknown')
depends=('docker' 'docker-compose')
source=("docker-compose@.service")
sha256sums=('872ce4ef8e0cd4fc6542f15342335c50cf84acab597fa5e67f0cd645481902ac')

package() {
    mkdir -p "$pkgdir/etc/systemd/system"
    mkdir -p "$pkgdir/etc/docker/compose"
    echo "Place your services in folders here, ex. structure: /etc/docker/compose/my-test-service/docker-compose.yml" > "$pkgdir/etc/docker/compose/README"
    install -D -m755 ./docker-compose@.service "$pkgdir/etc/systemd/system/docker-compose@.service"
}