Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

Commit

Permalink
adding sourceguardian
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin.brandt committed Jun 17, 2019
1 parent 8528f1d commit eae96e2
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM ubuntu:18.04
MAINTAINER Benjamin Brandt <benjamin.brandt@startnext.com>
MAINTAINER Benjamin Brandt <benjamin.brandt@tyclipso.net>

ENV DEBIAN_FRONTEND noninteractive

Expand Down Expand Up @@ -48,17 +48,25 @@ RUN echo "$(curl -sS https://composer.github.io/installer.sig) -" > composer-set
# Copy PHP config
COPY etc/ /etc/

# Copy Sourceguardian
COPY ext /usr/local/sourceguardian
# Install Sourceguardian
RUN mkdir /tmp/sourceguardian && \
cd /tmp/sourceguardian && \
wget https://www.sourceguardian.com/loaders/download/loaders.linux-x86_64.tar.gz && \
tar xvf loaders.linux-x86_64.tar.gz && \
cd `php -i | grep extension_dir | cut -d' ' -f 5` && \
cp /tmp/sourceguardian/ixed.7.2.lin . && \
echo zend_extension=ixed.7.2.lin > /etc/php/7.2/mods-available/sourceguardian.ini && \
rm -rf /tmp/sourceguardian/ \
&& phpenmod \
sourceguardian

RUN ln -s /etc/php/7.2/mods-available/myty_php_cli.ini /etc/php/7.2/fpm/myty_php_cli.ini \
&& ln -s /etc/php/7.2/mods-available/myty_php_fpm.ini /etc/php/7.2/fpm/myty_php_fpm.ini \
&& locale-gen \
&& phpdismod\
memcached \
&& phpenmod \
myty \
sourceguardian
myty

WORKDIR /var/www/web

Expand Down

0 comments on commit eae96e2

Please sign in to comment.