diff options
| author | Carlos Konstanski <ckonstanski@pippiandcarlos.com> | 2017-11-13 16:50:55 -0700 |
|---|---|---|
| committer | Carlos Konstanski <ckonstanski@pippiandcarlos.com> | 2017-11-13 16:50:55 -0700 |
| commit | ffa2a169ea98fb54a29d90ca158059e79e2816ba (patch) | |
| tree | 018461d031b71178fa48b9672d8e39bac4de1270 /files/docker-registry.gentoo | |
initial commit
Diffstat (limited to 'files/docker-registry.gentoo')
| -rw-r--r-- | files/docker-registry.gentoo | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/files/docker-registry.gentoo b/files/docker-registry.gentoo new file mode 100644 index 0000000..02883f6 --- /dev/null +++ b/files/docker-registry.gentoo @@ -0,0 +1,30 @@ +#!/sbin/openrc-run +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +depend() { + docker +} + +start() { + ebegin "openbook: start" + docker-compose -f /root/docker-registry/docker-compose.yaml up -d + eend $? +} + +stop() { + ebegin "openstack: stop" + docker-compose -f /root/docker-registry/docker-compose.yaml stop + docker-compose -f /root/docker-registry/docker-compose.yaml rm -f + eend $? +} + +restart() { + stop + start +} + +status() { + docker-compose -f /root/docker-registry/docker-compose.yaml ps +} |
