build mysql with fix
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2019-10-14 21:09:21 +02:00
parent 6296101fe6
commit e7159583a8

View File

@@ -38,6 +38,7 @@ apt-get update \
redis-server \
sane-utils \
sudo \
sed \
supervisor \
tesseract-ocr \
# Remove make and build dependencies
@@ -84,6 +85,8 @@ COPY --chown=mayan:mayan \
COPY --chown=mayan:mayan mayan /src/mayan
RUN sed '/st_mysql_options options;/a unsigned int reconnect;' /usr/include/mysql/mysql.h -i.bkp
# Install development packages needed to build the Python packages
RUN DEBIAN_FRONTEND=noninteractive \
apt-get install -y --no-install-recommends \
@@ -126,8 +129,11 @@ RUN python -m virtualenv "${PROJECT_INSTALL_DIR}" \
&& mayan-edms.py installjavascript \
&& MAYAN_STATIC_ROOT=${PROJECT_INSTALL_DIR}/static mayan-edms.py preparestatic --link --noinput
RUN apt install -y tesseract-ocr-deu
COPY --chown=mayan:mayan requirements/testing-base.txt "${PROJECT_INSTALL_DIR}"
####
# Final image - BASE_IMAGE + Mayan install directory from the builder image
####
@@ -147,6 +153,7 @@ ENTRYPOINT ["entrypoint.sh"]
EXPOSE 8000
CMD ["mayan"]
RUN ${PROJECT_INSTALL_DIR}/bin/mayan-edms.py platformtemplate supervisord_docker > /etc/supervisor/conf.d/mayan.conf \
&& apt-get clean autoclean \
&& apt-get autoremove --purge -y \