Skip to content

Commit 6e8c544

Browse files
committed
Merge branch 'release/0.50.3'
2 parents c2a403b + 2862834 commit 6e8c544

File tree

923 files changed

+4525
-930
lines changed

Some content is hidden

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

923 files changed

+4525
-930
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARGS = $(filter-out $@,$(MAKECMDGOALS))
22
MAKEFLAGS += --silent
3-
.PHONY: test documentation
3+
.PHONY: test documentation baselayout provision
44

55
DOCKER_REPOSITORY=`cat DOCKER_REPOSITORY`
66
DOCKER_TAG_LATEST=`cat DOCKER_TAG_LATEST`
@@ -31,9 +31,12 @@ test:
3131
test-hub-images:
3232
DOCKER_PULL=1 make test
3333

34+
baselayout:
35+
BASELAYOUT=1 PROVISION=0 bash bin/provision.sh
36+
3437
provision:
3538
python bin/buildDockerfile.py --template=template/ --dockerfile=docker/
36-
bash bin/provision.sh
39+
BASELAYOUT=0 PROVISION=1 bash bin/provision.sh
3740

3841
publish: dist-update rebuild test push
3942

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Command | Description
3535
`DEBUG=1 make all` | Show log of build process even if process is successfull
3636
`FORCE=1 make all` | Force container build (`docker build --no-cache ...`)
3737
<br> |
38+
`make baselayout` | Build and deploy baselayout.tar
3839
`make provision` | Deploy all configuration files from [_provisioning/](_provisioning/README.md)
3940
`make dist-update` | Update local distrubtion images (CentOS, Debian, Ubuntu)
4041
<br> |

bin/provision.sh

Lines changed: 58 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
if [ -n "$1" ]; then
3+
if [[ -n "$1" ]]; then
44
BUILD_TARGET="$1"
55
else
66
BUILD_TARGET="all"
@@ -11,6 +11,17 @@ if [[ "$BUILD_MODE" == "push" ]]; then
1111
exit 0
1212
fi
1313

14+
if [[ "$BASELAYOUT" -eq 1 ]]; then
15+
BASELAYOUT=1
16+
else
17+
BASELAYOUT=0
18+
fi
19+
20+
if [[ "$PROVISION" -eq 1 ]]; then
21+
PROVISION=1
22+
else
23+
PROVISION=0
24+
fi
1425

1526
set -o pipefail # trace ERR through pipes
1627
set -o errtrace # trace ERR through 'time command' and other functions
@@ -105,11 +116,13 @@ function listDirectoriesWithFilter() {
105116
#
106117
##
107118
function buildBaselayout() {
108-
echo " * Building localscripts"
119+
if [[ "$BASELAYOUT" -eq 1 ]]; then
120+
echo " * Building localscripts"
109121

110-
cd "${BASELAYOUT_DIR}"
111-
rm -f baselayout.tar
112-
$TAR -jc --owner=0 --group=0 -f baselayout.tar *
122+
cd "${BASELAYOUT_DIR}"
123+
rm -f baselayout.tar
124+
$TAR -jc --owner=0 --group=0 -f baselayout.tar *
125+
fi
113126
}
114127

115128
###
@@ -119,15 +132,17 @@ function buildBaselayout() {
119132
#
120133
##
121134
function deployBaselayout() {
122-
DOCKER_CONTAINER="$1"
123-
DOCKER_FILTER="$2"
124-
125-
listDirectoriesWithFilter "${DOCKER_DIR}/${DOCKER_CONTAINER}" "${DOCKER_FILTER}" | while read DOCKER_DIR; do
126-
if [ -f "${DOCKER_DIR}/Dockerfile" ]; then
127-
echo " - $(relativeDir $DOCKER_DIR)"
128-
cp baselayout.tar "${DOCKER_DIR}/baselayout.tar"
129-
fi
130-
done
135+
if [[ "$BASELAYOUT" -eq 1 ]]; then
136+
DOCKER_CONTAINER="$1"
137+
DOCKER_FILTER="$2"
138+
139+
listDirectoriesWithFilter "${DOCKER_DIR}/${DOCKER_CONTAINER}" "${DOCKER_FILTER}" | while read DOCKER_DIR; do
140+
if [ -f "${DOCKER_DIR}/Dockerfile" ]; then
141+
echo " - $(relativeDir $DOCKER_DIR)"
142+
cp baselayout.tar "${DOCKER_DIR}/baselayout.tar"
143+
fi
144+
done
145+
fi
131146
}
132147

133148
#######################################
@@ -144,16 +159,18 @@ function deployBaselayout() {
144159
#
145160
##
146161
function clearConfiguration() {
147-
DOCKER_CONTAINER="$1"
148-
DOCKER_FILTER="$2"
149-
150-
echo " -> Clearing configuration"
151-
listDirectoriesWithFilter "${DOCKER_DIR}/${DOCKER_CONTAINER}" "${DOCKER_FILTER}" | while read DOCKER_DIR; do
152-
if [ -f "${DOCKER_DIR}/Dockerfile" ]; then
153-
echo " - $(relativeDir $DOCKER_DIR)"
154-
rm -rf "${DOCKER_DIR}/conf/"
155-
fi
156-
done
162+
if [[ "$PROVISION" -eq 1 ]]; then
163+
DOCKER_CONTAINER="$1"
164+
DOCKER_FILTER="$2"
165+
166+
echo " -> Clearing configuration"
167+
listDirectoriesWithFilter "${DOCKER_DIR}/${DOCKER_CONTAINER}" "${DOCKER_FILTER}" | while read DOCKER_DIR; do
168+
if [ -f "${DOCKER_DIR}/Dockerfile" ]; then
169+
echo " - $(relativeDir $DOCKER_DIR)"
170+
rm -rf "${DOCKER_DIR}/conf/"
171+
fi
172+
done
173+
fi
157174
}
158175

159176
###
@@ -167,22 +184,24 @@ function clearConfiguration() {
167184
#
168185
##
169186
function deployConfiguration() {
170-
PROVISION_SUB_DIR="$1"
171-
DOCKER_CONTAINER="$2"
172-
DOCKER_FILTER="$3"
173-
174-
if [ "$DOCKER_FILTER" == "*" ]; then
175-
echo " -> Deploying configuration"
176-
else
177-
echo " -> Deploying configuration with filter '$DOCKER_FILTER'"
178-
fi
179-
180-
listDirectoriesWithFilter "${DOCKER_DIR}/${DOCKER_CONTAINER}" "${DOCKER_FILTER}" | while read DOCKER_DIR; do
181-
if [ -f "${DOCKER_DIR}/Dockerfile" ]; then
182-
echo " - $(relativeDir $DOCKER_DIR)"
183-
cp -f -r "${PROVISION_DIR}/${PROVISION_SUB_DIR}/." "${DOCKER_DIR}/conf/"
187+
if [[ "$PROVISION" -eq 1 ]]; then
188+
PROVISION_SUB_DIR="$1"
189+
DOCKER_CONTAINER="$2"
190+
DOCKER_FILTER="$3"
191+
192+
if [ "$DOCKER_FILTER" == "*" ]; then
193+
echo " -> Deploying configuration"
194+
else
195+
echo " -> Deploying configuration with filter '$DOCKER_FILTER'"
184196
fi
185-
done
197+
198+
listDirectoriesWithFilter "${DOCKER_DIR}/${DOCKER_CONTAINER}" "${DOCKER_FILTER}" | while read DOCKER_DIR; do
199+
if [ -f "${DOCKER_DIR}/Dockerfile" ]; then
200+
echo " - $(relativeDir $DOCKER_DIR)"
201+
cp -f -r "${PROVISION_DIR}/${PROVISION_SUB_DIR}/." "${DOCKER_DIR}/conf/"
202+
fi
203+
done
204+
fi
186205
}
187206

188207
###

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=7
11-
LABEL io.webdevops.version=0.50.2
11+
LABEL io.webdevops.version=0.50.3

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=7
11-
LABEL io.webdevops.version=0.50.2
11+
LABEL io.webdevops.version=0.50.3

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=7
11-
LABEL io.webdevops.version=0.50.2
11+
LABEL io.webdevops.version=0.50.3

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=7
11-
LABEL io.webdevops.version=0.50.2
11+
LABEL io.webdevops.version=0.50.3

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=7
11-
LABEL io.webdevops.version=0.50.2
11+
LABEL io.webdevops.version=0.50.3

docker/ansible/ubuntu-12.04/Dockerfile

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

docker/ansible/ubuntu-14.04/Dockerfile

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

0 commit comments

Comments
 (0)