update zammad version & made es reindex optional (#175)
Signed-off-by: André Bauer <monotek23@gmail.com>
This commit is contained in:
parent
297c3f8004
commit
7d15c4909a
2
.env
2
.env
@ -3,4 +3,4 @@ POSTGRES_PASS=zammad
|
|||||||
POSTGRES_USER=zammad
|
POSTGRES_USER=zammad
|
||||||
RESTART=always
|
RESTART=always
|
||||||
# don't forget to add the minus before the version
|
# don't forget to add the minus before the version
|
||||||
VERSION=-3.4.0-4
|
VERSION=-3.5.0-2
|
||||||
|
@ -9,7 +9,7 @@ LABEL org.label-schema.build-date="$BUILD_DATE" \
|
|||||||
org.label-schema.vcs-url="https://github.com/zammad/zammad" \
|
org.label-schema.vcs-url="https://github.com/zammad/zammad" \
|
||||||
org.label-schema.vcs-type="Git" \
|
org.label-schema.vcs-type="Git" \
|
||||||
org.label-schema.vendor="Zammad" \
|
org.label-schema.vendor="Zammad" \
|
||||||
org.label-schema.schema-version="3.4.0" \
|
org.label-schema.schema-version="3.5.0" \
|
||||||
org.label-schema.docker.cmd="sysctl -w vm.max_map_count=262144;docker-compose up"
|
org.label-schema.docker.cmd="sysctl -w vm.max_map_count=262144;docker-compose up"
|
||||||
|
|
||||||
SHELL ["/bin/bash", "-e", "-o", "pipefail", "-c"]
|
SHELL ["/bin/bash", "-e", "-o", "pipefail", "-c"]
|
||||||
|
@ -10,7 +10,7 @@ LABEL org.label-schema.build-date="$BUILD_DATE" \
|
|||||||
org.label-schema.vcs-url="https://github.com/zammad/zammad" \
|
org.label-schema.vcs-url="https://github.com/zammad/zammad" \
|
||||||
org.label-schema.vcs-type="Git" \
|
org.label-schema.vcs-type="Git" \
|
||||||
org.label-schema.vendor="Zammad" \
|
org.label-schema.vendor="Zammad" \
|
||||||
org.label-schema.schema-version="3.4.0" \
|
org.label-schema.schema-version="3.5.0" \
|
||||||
org.label-schema.docker.cmd="sysctl -w vm.max_map_count=262144;docker-compose up"
|
org.label-schema.docker.cmd="sysctl -w vm.max_map_count=262144;docker-compose up"
|
||||||
|
|
||||||
SHELL ["/bin/bash", "-e", "-o", "pipefail", "-c"]
|
SHELL ["/bin/bash", "-e", "-o", "pipefail", "-c"]
|
||||||
|
@ -37,7 +37,7 @@ LABEL org.label-schema.build-date="$BUILD_DATE" \
|
|||||||
org.label-schema.vcs-url="https://github.com/zammad/zammad" \
|
org.label-schema.vcs-url="https://github.com/zammad/zammad" \
|
||||||
org.label-schema.vcs-type="Git" \
|
org.label-schema.vcs-type="Git" \
|
||||||
org.label-schema.vendor="Zammad" \
|
org.label-schema.vendor="Zammad" \
|
||||||
org.label-schema.schema-version="3.4.0" \
|
org.label-schema.schema-version="3.5.0" \
|
||||||
org.label-schema.docker.cmd="sysctl -w vm.max_map_count=262144;docker-compose up"
|
org.label-schema.docker.cmd="sysctl -w vm.max_map_count=262144;docker-compose up"
|
||||||
|
|
||||||
ENV GIT_BRANCH stable
|
ENV GIT_BRANCH stable
|
||||||
|
@ -8,6 +8,7 @@ set -e
|
|||||||
: "${ELASTICSEARCH_PORT:=9200}"
|
: "${ELASTICSEARCH_PORT:=9200}"
|
||||||
: "${ELASTICSEARCH_SCHEMA:=http}"
|
: "${ELASTICSEARCH_SCHEMA:=http}"
|
||||||
: "${ELASTICSEARCH_NAMESPACE:=zammad}"
|
: "${ELASTICSEARCH_NAMESPACE:=zammad}"
|
||||||
|
: "${ELASTICSEARCH_REINDEX:=true}"
|
||||||
: "${ELASTICSEARCH_SSL_VERIFY:=true}"
|
: "${ELASTICSEARCH_SSL_VERIFY:=true}"
|
||||||
: "${MEMCACHED_HOST:=zammad-memcached}"
|
: "${MEMCACHED_HOST:=zammad-memcached}"
|
||||||
: "${MEMCACHED_PORT:=11211}"
|
: "${MEMCACHED_PORT:=11211}"
|
||||||
@ -101,9 +102,11 @@ if [ "$1" = 'zammad-init' ]; then
|
|||||||
SSL_SKIP_VERIFY=""
|
SSL_SKIP_VERIFY=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! curl -s ${SSL_SKIP_VERIFY} ${ELASTICSEARCH_SCHEMA}://${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}/_cat/indices | grep -q zammad; then
|
if [ "${ELASTICSEARCH_REINDEX}" == "true" ]; then
|
||||||
echo "rebuilding es searchindex..."
|
if ! curl -s ${SSL_SKIP_VERIFY} ${ELASTICSEARCH_SCHEMA}://${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}/_cat/indices | grep -q zammad; then
|
||||||
bundle exec rake searchindex:rebuild
|
echo "rebuilding es searchindex..."
|
||||||
|
bundle exec rake searchindex:rebuild
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user