link-stack/docker/zammad/Dockerfile

31 lines
1.3 KiB
Text
Raw Normal View History

2023-04-19 09:36:47 +02:00
FROM zammad/zammad-docker-compose:5.4.1 AS builder
2023-03-07 14:09:49 +00:00
COPY auto_install ${ZAMMAD_TMP_DIR}/auto_install
2023-04-19 09:36:47 +02:00
USER root
RUN set -ex; \
apt-get update; \
apt-get install -y --no-install-recommends git libclang-dev clang llvm pkg-config nettle-dev rustc cargo libmariadb-dev;
ARG SEQUOIA_PROJECT_URL=https://gitlab.com/sequoia-pgp/sequoia-ffi.git
ARG SEQUOIA_GIT_TAG=main
ENV SEQUOIA_DIR=/usr/lib/sequoia
ENV LD_LIBRARY_PATH=${SEQUOIA_DIR}/target/debug
RUN git clone -b "${SEQUOIA_GIT_TAG}" --single-branch --depth 1 "${SEQUOIA_PROJECT_URL}" "${SEQUOIA_DIR}";
WORKDIR ${SEQUOIA_DIR}
RUN cargo update
RUN cargo build -p sequoia-openpgp-ffi;
RUN ls -la "${SEQUOIA_DIR}/target/debug";
# RUN chown -R "${ZAMMAD_USER}":"${ZAMMAD_USER}" "${SEQUOIA_DIR}"
# WORKDIR ${ZAMMAD_TMP_DIR}
# RUN echo "gem 'ruby_openpgp', git: 'https://github.com/throneless-tech/ruby_openpgp', branch: 'signing-and-userids'" >> Gemfile.local ; \
# echo "gem 'rails-observers'" >> Gemfile.local ; \
# bundle update tcr; \
# bundle install --without test development mysql ;
2023-03-14 17:40:24 +00:00
# RUN sed -i "s/# create install ready file/bundle exec rake zammad:package:migrate/g" contrib/docker/docker-entrypoint.sh
2023-03-07 14:09:49 +00:00
2023-04-19 09:36:47 +02:00
# FROM zammad/zammad-docker-compose:5.4.1
# COPY --from=builder ${ZAMMAD_TMP_DIR} ${ZAMMAD_TMP_DIR}
# COPY --from=builder ${SEQUOIA_DIR} ${SEQUOIA_DIR}
# COPY --from=builder /usr/local/bundle /usr/local/bundle