Skip to content

Commit 168e6db

Browse files
committed
Merge branch 'release/1.3.0'
2 parents 0652cff + 99a7b31 commit 168e6db

File tree

347 files changed

+1241
-442
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

347 files changed

+1241
-442
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ applications: webdevops/typo3 webdevops/piwik
3030
misc: webdevops/mail-sandbox webdevops/sphinx webdevops/liquibase
3131

3232
requirements:
33-
pip install -r ./requirements.txt
33+
pip install -r ./bin/requirements.txt
3434
cd tests/serverspec && bundle install --path=vendor
3535

3636
test:

baselayout/usr/local/bin/service

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,19 @@ if [ "$(/usr/bin/whoami)" != "root" ]; then
1212
fi
1313

1414
function serviceHelp() {
15-
echo "Usage: $(basename "$0") <servicename> <stop|start|restart|pid|status>"
15+
echo "Usage: $(basename "$0") <servicename> <stop|start|restart|pid|status|check>"
16+
}
17+
18+
function getServicePid() {
19+
local serviceName="$1"
20+
local servicePid=$(supervisorctl pid "${serviceName}:${serviceName}d")
21+
22+
if [[ -z "$servicePid" ]] || [[ "$servicePid" == "0" ]]; then
23+
echo "not running"
24+
exit 1
25+
fi
26+
27+
echo $servicePid
1628
}
1729

1830
# Param check
@@ -42,10 +54,29 @@ esac
4254
# Action runner
4355
#############################
4456
case "$ACTION" in
45-
stop|start|restart|pid|status)
57+
stop|start|restart|status)
4658
exec supervisorctl "$ACTION" "${SERVICENAME}:${SERVICENAME}d"
4759
;;
4860

61+
pid)
62+
echo $(getServicePid "${SERVICENAME}")
63+
;;
64+
65+
check)
66+
FIRST_PID=$(getServicePid "${SERVICENAME}")
67+
sleep 5
68+
SECOND_PID=$(getServicePid "${SERVICENAME}")
69+
70+
if [[ "$FIRST_PID" == "$SECOND_PID" ]]; then
71+
echo "ok"
72+
exit 0
73+
else
74+
echo "not running"
75+
exit 1
76+
fi
77+
;;
78+
79+
4980
*)
5081
echo "[ERROR] Invalid action"
5182
serviceHelp

bin/command/generate_provision_command.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import time
2525
import Queue
2626
import shutil
27+
import grp
2728
from cleo import Output
2829
from webdevops import Provisioner
2930
from webdevops.command import BaseCommand
@@ -95,8 +96,17 @@ def __build_base_layout(self):
9596
if self.option('baselayout'):
9697
if Output.VERBOSITY_NORMAL <= self.output.get_verbosity():
9798
self.line('<info>* </info> Building localscipts')
98-
base_path = os.path.join(self.configuration.get('baselayoutPath'), 'baselayout')
99-
shutil.make_archive('baselayout', 'bztar', base_path)
99+
base_path = self.configuration.get('baselayoutPath')
100+
101+
root_group = grp.getgrgid(0)
102+
103+
shutil.make_archive(
104+
base_name='baselayout',
105+
format='bztar',
106+
root_dir=base_path,
107+
owner='root',
108+
group=root_group.gr_name
109+
)
100110
os.rename('baselayout.tar.bz2', 'baselayout.tar')
101111

102112

File renamed without changes.

docker/ansible/alpine-3/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ FROM webdevops/bootstrap:alpine-3
88
99
LABEL vendor=WebDevOps.io
1010
LABEL io.webdevops.layout=8
11-
LABEL io.webdevops.version=1.2.4
11+
LABEL io.webdevops.version=1.3.0

docker/ansible/centos-7/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ FROM webdevops/bootstrap:centos-7
88
99
LABEL vendor=WebDevOps.io
1010
LABEL io.webdevops.layout=8
11-
LABEL io.webdevops.version=1.2.4
11+
LABEL io.webdevops.version=1.3.0

docker/ansible/debian-7/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ FROM webdevops/bootstrap:debian-7
88
99
LABEL vendor=WebDevOps.io
1010
LABEL io.webdevops.layout=8
11-
LABEL io.webdevops.version=1.2.4
11+
LABEL io.webdevops.version=1.3.0

docker/ansible/debian-8/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ FROM webdevops/bootstrap:debian-8
88
99
LABEL vendor=WebDevOps.io
1010
LABEL io.webdevops.layout=8
11-
LABEL io.webdevops.version=1.2.4
11+
LABEL io.webdevops.version=1.3.0

docker/ansible/debian-9/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ FROM webdevops/bootstrap:debian-9
88
99
LABEL vendor=WebDevOps.io
1010
LABEL io.webdevops.layout=8
11-
LABEL io.webdevops.version=1.2.4
11+
LABEL io.webdevops.version=1.3.0

0 commit comments

Comments
 (0)