Skip to content

Commit

Permalink
Allow Imagick to read/edit PDF files
Browse files Browse the repository at this point in the history
  • Loading branch information
Keoghan committed Sep 13, 2019
1 parent f5fbe54 commit 5e38657
Show file tree
Hide file tree
Showing 11 changed files with 50 additions and 20 deletions.
20 changes: 10 additions & 10 deletions resources/image_sets/konsulting/porter-ubuntu/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
"chromedriver": "1.0.0",
"nginx": "1.0.0",
"node": "1.1.0",
"php_cli_5-6": "1.2.1",
"php_cli_7-0": "1.2.1",
"php_cli_7-1": "1.2.1",
"php_cli_7-2": "1.2.1",
"php_cli_7-3": "1.2.1",
"php_fpm_5-6": "1.2.1",
"php_fpm_7-0": "1.2.1",
"php_fpm_7-1": "1.2.1",
"php_fpm_7-2": "1.2.1",
"php_fpm_7-3": "1.2.1"
"php_cli_5-6": "1.3.0",
"php_cli_7-0": "1.3.0",
"php_cli_7-1": "1.3.0",
"php_cli_7-2": "1.3.0",
"php_cli_7-3": "1.3.0",
"php_fpm_5-6": "1.3.0",
"php_fpm_7-0": "1.3.0",
"php_fpm_7-1": "1.3.0",
"php_fpm_7-2": "1.3.0",
"php_fpm_7-3": "1.3.0"
},
"thirdParty": {
"mysql": "mysql:5.7",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#VERSION: 1.2.1
#VERSION: 1.3.0
FROM ubuntu:18.04

RUN apt-get update \
Expand Down Expand Up @@ -59,6 +59,9 @@ RUN apt-get update \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Enable Imagick to work with PDFs
RUN sed -i -e 's/rights="none" pattern="PDF"/rights="read|write" pattern="PDF"/' /etc/ImageMagick-6/policy.xml

WORKDIR /srv/app

EXPOSE 8000
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#VERSION: 1.2.1
#VERSION: 1.3.0
FROM ubuntu:18.04

RUN apt-get update \
Expand Down Expand Up @@ -59,6 +59,9 @@ RUN apt-get update \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Enable Imagick to work with PDFs
RUN sed -i -e 's/rights="none" pattern="PDF"/rights="read|write" pattern="PDF"/' /etc/ImageMagick-6/policy.xml

WORKDIR /srv/app

EXPOSE 8000
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#VERSION: 1.2.1
#VERSION: 1.3.0
FROM ubuntu:18.04

RUN apt-get update \
Expand Down Expand Up @@ -59,6 +59,9 @@ RUN apt-get update \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Enable Imagick to work with PDFs
RUN sed -i -e 's/rights="none" pattern="PDF"/rights="read|write" pattern="PDF"/' /etc/ImageMagick-6/policy.xml

WORKDIR /srv/app

EXPOSE 8000
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#VERSION: 1.2.1
#VERSION: 1.3.0
FROM ubuntu:18.04

RUN apt-get update \
Expand Down Expand Up @@ -59,6 +59,9 @@ RUN apt-get update \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Enable Imagick to work with PDFs
RUN sed -i -e 's/rights="none" pattern="PDF"/rights="read|write" pattern="PDF"/' /etc/ImageMagick-6/policy.xml

WORKDIR /srv/app

EXPOSE 8000
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#VERSION: 1.2.1
#VERSION: 1.3.0
FROM ubuntu:18.04

RUN apt-get update \
Expand Down Expand Up @@ -59,6 +59,9 @@ RUN apt-get update \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Enable Imagick to work with PDFs
RUN sed -i -e 's/rights="none" pattern="PDF"/rights="read|write" pattern="PDF"/' /etc/ImageMagick-6/policy.xml

WORKDIR /srv/app

EXPOSE 8000
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#VERSION: 1.2.1
#VERSION: 1.3.0
FROM ubuntu:18.04

RUN apt-get update \
Expand Down Expand Up @@ -58,6 +58,9 @@ RUN apt-get update \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Enable Imagick to work with PDFs
RUN sed -i -e 's/rights="none" pattern="PDF"/rights="read|write" pattern="PDF"/' /etc/ImageMagick-6/policy.xml

EXPOSE 9000

CMD ["php-fpm5.6", "-F"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#VERSION: 1.2.1
#VERSION: 1.3.0
FROM ubuntu:18.04

RUN apt-get update \
Expand Down Expand Up @@ -58,6 +58,9 @@ RUN apt-get update \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Enable Imagick to work with PDFs
RUN sed -i -e 's/rights="none" pattern="PDF"/rights="read|write" pattern="PDF"/' /etc/ImageMagick-6/policy.xml

EXPOSE 9000

CMD ["php-fpm7.0", "-F"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#VERSION: 1.2.1
#VERSION: 1.3.0
FROM ubuntu:18.04

RUN apt-get update \
Expand Down Expand Up @@ -58,6 +58,9 @@ RUN apt-get update \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Enable Imagick to work with PDFs
RUN sed -i -e 's/rights="none" pattern="PDF"/rights="read|write" pattern="PDF"/' /etc/ImageMagick-6/policy.xml

EXPOSE 9000

CMD ["php-fpm7.1", "-F"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#VERSION: 1.2.1
#VERSION: 1.3.0
FROM ubuntu:18.04

RUN apt-get update \
Expand Down Expand Up @@ -58,6 +58,9 @@ RUN apt-get update \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Enable Imagick to work with PDFs
RUN sed -i -e 's/rights="none" pattern="PDF"/rights="read|write" pattern="PDF"/' /etc/ImageMagick-6/policy.xml

EXPOSE 9000

CMD ["php-fpm7.2", "-F"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#VERSION: 1.2.1
#VERSION: 1.3.0
FROM ubuntu:18.04

RUN apt-get update \
Expand Down Expand Up @@ -58,6 +58,9 @@ RUN apt-get update \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Enable Imagick to work with PDFs
RUN sed -i -e 's/rights="none" pattern="PDF"/rights="read|write" pattern="PDF"/' /etc/ImageMagick-6/policy.xml

EXPOSE 9000

CMD ["php-fpm7.3", "-F"]
Expand Down

0 comments on commit 5e38657

Please sign in to comment.