changed build hook
This commit is contained in:
parent
3495e9e0d1
commit
b6db0f7d80
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
MAINTAINER André Bauer <monotek23@gmail.com>
|
||||||
|
ARG BUILD_DATE
|
||||||
|
|
||||||
|
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 - dummy Dockerfile for DockerHub autobuilds" \
|
||||||
|
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"
|
@ -1,5 +1,6 @@
|
|||||||
FROM elasticsearch
|
FROM elasticsearch
|
||||||
MAINTAINER André Bauer <monotek23@gmail.com>
|
MAINTAINER André Bauer <monotek23@gmail.com>
|
||||||
|
ARG BUILD_DATE
|
||||||
|
|
||||||
LABEL org.label-schema.build-date="$BUILD_DATE" \
|
LABEL org.label-schema.build-date="$BUILD_DATE" \
|
||||||
org.label-schema.name="Zammad" \
|
org.label-schema.name="Zammad" \
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
FROM nginx
|
FROM nginx
|
||||||
MAINTAINER André Bauer <monotek23@gmail.com>
|
MAINTAINER André Bauer <monotek23@gmail.com>
|
||||||
|
ARG BUILD_DATE
|
||||||
|
|
||||||
LABEL org.label-schema.build-date="$BUILD_DATE" \
|
LABEL org.label-schema.build-date="$BUILD_DATE" \
|
||||||
org.label-schema.name="Zammad" \
|
org.label-schema.name="Zammad" \
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
FROM postgres
|
FROM postgres
|
||||||
MAINTAINER André Bauer <monotek23@gmail.com>
|
MAINTAINER André Bauer <monotek23@gmail.com>
|
||||||
|
ARG BUILD_DATE
|
||||||
|
|
||||||
LABEL org.label-schema.build-date="$BUILD_DATE" \
|
LABEL org.label-schema.build-date="$BUILD_DATE" \
|
||||||
org.label-schema.name="Zammad" \
|
org.label-schema.name="Zammad" \
|
||||||
|
@ -8,6 +8,6 @@
|
|||||||
for DOCKER_IMAGE in ${DOCKER_IMAGES}; do
|
for DOCKER_IMAGE in ${DOCKER_IMAGES}; do
|
||||||
|
|
||||||
echo "Build Zammad Docker image ${DOCKER_IMAGE} for DockerHubs ${DOCKER_REPO}:${DOCKER_IMAGE} repo"
|
echo "Build Zammad Docker image ${DOCKER_IMAGE} for DockerHubs ${DOCKER_REPO}:${DOCKER_IMAGE} repo"
|
||||||
docker build --build-arg BUILD_DATE=$(date -u +”%Y-%m-%dT%H:%M:%SZ”) -t ${DOCKER_REPO}:${DOCKER_IMAGE} - < Dockerfile.${DOCKER_IMAGE}
|
docker build --build-arg BUILD_DATE=$(date -u +”%Y-%m-%dT%H:%M:%SZ”) -t ${DOCKER_REPO}:${DOCKER_IMAGE} -f Dockerfile.${DOCKER_IMAGE} .
|
||||||
|
|
||||||
done
|
done
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
|
|
||||||
. "hooks/config"
|
. "hooks/config"
|
||||||
|
|
||||||
|
#exit 0
|
||||||
|
|
||||||
for DOCKER_IMAGE in ${DOCKER_IMAGES}; do
|
for DOCKER_IMAGE in ${DOCKER_IMAGES}; do
|
||||||
|
|
||||||
echo "Push Zammad Docker image ${DOCKER_IMAGE} to DockerHubs ${DOCKER_REPO}:${DOCKER_IMAGE} repo"
|
echo "Push Zammad Docker image ${DOCKER_IMAGE} to DockerHubs ${DOCKER_REPO}:${DOCKER_IMAGE} repo"
|
||||||
|
Loading…
Reference in New Issue
Block a user