Maintenance: Changes for Zammad 5.2. (#274)
* Maintenance: Changes for Zammad 5.2. * Maintenance: Switch to Ruby 3.0.4. * Update Zammad version label. * Maintenance: Use the renamed zammad:searchindex:* commands of Zammad 5.2.
This commit is contained in:
parent
4799b327d2
commit
cc6207c354
@ -1,6 +1,6 @@
|
||||
# note: zammad is currently incompatible to alpine because of:
|
||||
# https://github.com/docker-library/ruby/issues/113
|
||||
FROM ruby:2.7.4-slim AS builder
|
||||
FROM ruby:3.0.4-slim AS builder
|
||||
|
||||
ARG BUILD_DATE
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
@ -24,7 +24,7 @@ RUN chmod +x /tmp/setup.sh; \
|
||||
/tmp/setup.sh builder
|
||||
|
||||
|
||||
FROM ruby:2.7.4-slim
|
||||
FROM ruby:3.0.4-slim
|
||||
|
||||
ARG BUILD_DATE
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
@ -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-type="Git" \
|
||||
org.label-schema.vendor="Zammad" \
|
||||
org.label-schema.schema-version="5.1.0" \
|
||||
org.label-schema.schema-version="5.2.0" \
|
||||
org.label-schema.docker.cmd="sysctl -w vm.max_map_count=262144;docker-compose up"
|
||||
|
||||
ENV GIT_BRANCH stable
|
||||
|
@ -106,7 +106,7 @@ if [ "$1" = 'zammad-init' ]; then
|
||||
if [ "${ELASTICSEARCH_REINDEX}" == "true" ]; then
|
||||
if ! curl -s "${SSL_SKIP_VERIFY}" "${ELASTICSEARCH_SCHEMA}://${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}/_cat/indices" | grep -q zammad; then
|
||||
echo "rebuilding es searchindex..."
|
||||
bundle exec rake searchindex:rebuild
|
||||
bundle exec rake zammad:searchindex:rebuild
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user