added Dockerfile.postgresql & added dockerhub build hooks
This commit is contained in:
parent
b7205461ab
commit
9821a71fe7
14
Dockerfile.postgresql
Normal file
14
Dockerfile.postgresql
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
FROM postgresql
|
||||||
|
MAINTAINER André Bauer <monotek23@gmail.com>
|
||||||
|
|
||||||
|
LABEL org.label-schema.build-date="$BUILD_DATE" \
|
||||||
|
org.label-schema.name="Zammad" \
|
||||||
|
org.label-schema.license="AGPL-3.0" \
|
||||||
|
org.label-schema.description="Docker container for Zammad - postgresql" \
|
||||||
|
org.label-schema.url="https://zammad.org" \
|
||||||
|
org.label-schema.vcs-url="https://github.com/zammad/zammad" \
|
||||||
|
org.label-schema.vcs-type="Git" \
|
||||||
|
org.label-schema.vendor="Zammad" \
|
||||||
|
org.label-schema.schema-version="1.0" \
|
||||||
|
org.label-schema.docker.cmd="sysctl -w vm.max_map_count=262144;docker-compose up --build"
|
||||||
|
|
@ -32,7 +32,9 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- data-zammad:/home/zammad
|
- data-zammad:/home/zammad
|
||||||
volumes:
|
volumes:
|
||||||
data-zammad:
|
data-postgresql:
|
||||||
driver: local
|
driver: local
|
||||||
data-ruby:
|
data-ruby:
|
||||||
driver: local
|
driver: local
|
||||||
|
data-zammad:
|
||||||
|
driver: local
|
||||||
|
14
hooks/build
Executable file
14
hooks/build
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# build hook for dockerhubs autobuild feature
|
||||||
|
# builds stable and develop images from only one branch
|
||||||
|
#
|
||||||
|
|
||||||
|
. "hooks/config"
|
||||||
|
|
||||||
|
for DOCKER_IMAGE in ${DOCKER_IMAGES}; do
|
||||||
|
|
||||||
|
echo "Build Zammad Docker image ${DOCKER_IMAGE} for DockerHubs ${DOCKER_REPO}:${DOCKER_IMAGE} repo"
|
||||||
|
docker build --build-arg PACKAGER_REPO=${PACKAGER_REPO} --build-arg BUILD_DATE=$(date -u +”%Y-%m-%dT%H:%M:%SZ”) -t ${DOCKER_REPO}:${DOCKER_IMAGE} Dockerfile.${DOCKER_IMAGE}
|
||||||
|
|
||||||
|
done
|
7
hooks/config
Normal file
7
hooks/config
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# build hooks
|
||||||
|
#
|
||||||
|
|
||||||
|
DOCKER_IMAGES="elasticsearch nginx postgresql zammad"
|
||||||
|
DOCKER_REPO="monotek/zammad-docker-compose"
|
14
hooks/push
Executable file
14
hooks/push
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# build hook for dockerhubs autobuild feature
|
||||||
|
#
|
||||||
|
|
||||||
|
. "hooks/config"
|
||||||
|
|
||||||
|
for DOCKER_IMAGE in ${DOCKER_IMAGES}; do
|
||||||
|
|
||||||
|
echo "Push Zammad Docker image ${DOCKER_IMAGE} to DockerHubs ${DOCKER_REPO}:${DOCKER_IMAGE} repo"
|
||||||
|
docker push ${DOCKER_REPO}:${DOCKER_IMAGE}
|
||||||
|
|
||||||
|
done
|
||||||
|
|
Loading…
Reference in New Issue
Block a user