Skip to content

Commit b56e1c8

Browse files
committed
Docker corrections
1 parent e70824f commit b56e1c8

File tree

2 files changed

+3
-22
lines changed

2 files changed

+3
-22
lines changed

Docker/initialize.sh

+2-21
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,6 @@ export DEBIAN_FRONTEND=noninteractive
4343
if [ "${DAALLOWUPDATES:-true}" == "true" ]; then
4444
apt-get clean &> /dev/null
4545
apt-get -q -y update &> /dev/null
46-
pandoc --help &> /dev/null || apt-get -q -y install pandoc
47-
fi
48-
49-
LIBREOFFICE_VERSION=`libreoffice --version`
50-
if [[ $LIBREOFFICE_VERSION =~ ^LibreOffice\ 6 ]]; then
51-
apt-get -q -y install -t buster-backports libreoffice
52-
fi
53-
54-
PANDOC_VERSION=`pandoc --version | head -n1`
55-
56-
if [ "${PANDOC_VERSION}" != "pandoc 2.11.2" ] && [ "${DAALLOWUPDATES:-true}" == "true" ]; then
57-
cd /tmp \
58-
&& wget -q https://github.com/jgm/pandoc/releases/download/2.11.2/pandoc-2.11.2-1-amd64.deb \
59-
&& dpkg -i pandoc-2.11.2-1-amd64.deb \
60-
&& rm pandoc-2.11.2-1-amd64.deb
6146
fi
6247

6348
echo "2" >&2
@@ -824,10 +809,6 @@ if [ "$OTHERLOGSERVER" = false ] && [ -f "${LOGDIRECTORY}/docassemble.log" ]; th
824809
chown www-data.www-data "${LOGDIRECTORY}/docassemble.log"
825810
fi
826811

827-
echo "35" >&2
828-
829-
sed -i 's/<policy domain="coder" rights="none" pattern="PDF" \/>/<policy domain="coder" rights="read | write" pattern="PDF" \/>/' /etc/ImageMagick-6/policy.xml
830-
831812
echo "36" >&2
832813

833814
if [[ $CONTAINERROLE =~ .*:(all|redis):.* ]] && [ "$REDISRUNNING" = false ]; then
@@ -838,13 +819,13 @@ echo "37" >&2
838819

839820
if [ "${DAUPDATEONSTART:-true}" = "true" ] && [ "${DAALLOWUPDATES:-true}" == "true" ]; then
840821
echo "Doing upgrading of packages" >&2
841-
su -c "source \"${DA_ACTIVATE}\" && pip install --upgrade pip==20.2.4 && python -m docassemble.webapp.update \"${DA_CONFIG_FILE}\" initialize" www-data || exit 1
822+
su -c "source \"${DA_ACTIVATE}\" && python -m docassemble.webapp.update \"${DA_CONFIG_FILE}\" initialize" www-data || exit 1
842823
touch "${DA_ROOT}/webapp/initialized"
843824
fi
844825

845826
if [ "${DAUPDATEONSTART:-true}" = "initial" ] && [ ! -f "${DA_ROOT}/webapp/initialized" ] && [ "${DAALLOWUPDATES:-true}" == "true" ]; then
846827
echo "Doing initial upgrading of packages" >&2
847-
su -c "source \"${DA_ACTIVATE}\" && pip install --upgrade pip==20.2.4 && python -m docassemble.webapp.update \"${DA_CONFIG_FILE}\" initialize" www-data || exit 1
828+
su -c "source \"${DA_ACTIVATE}\" && python -m docassemble.webapp.update \"${DA_CONFIG_FILE}\" initialize" www-data || exit 1
848829
touch "${DA_ROOT}/webapp/initialized"
849830
fi
850831

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ bash -c \
8282
/tmp/docassemble/docassemble \
8383
/tmp/docassemble/docassemble_base \
8484
/tmp/docassemble/docassemble_demo \
85-
/tmp/docassemble/docassemble_webapp
85+
/tmp/docassemble/docassemble_webapp"
8686

8787
USER root
8888
RUN \

0 commit comments

Comments
 (0)