Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1595: Add images for a php 7.3 pantheon appserver
- Loading branch information
Showing
2 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
plugins/lando-pantheon/recipes/pantheon/7.3-fpm/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Pantheon php 7.3 fpm appserver for Lando | ||
# | ||
# docker build -t devwithlando/pantheon-appserver:7.3-2 . | ||
|
||
FROM devwithlando/php:7.3-fpm-2 | ||
|
||
# Version information | ||
ENV WKHTMLTOPDF_VERSION 0.12.3 | ||
ENV PHANTOMJS_VERSION 2.1.1 | ||
ENV PHANTOMJS_OLD_VERSION 1.7.0 | ||
ENV TERMINUS_VERSION 1.9.0 | ||
ENV MAVEN_VERSION 3.5.4 | ||
|
||
# Install the additional things that make the pantheon | ||
RUN mkdir -p /usr/share/man/man1 \ | ||
&& apt-get update && apt-get install -y \ | ||
openjdk-8-jre-headless \ | ||
openjdk-8-jdk \ | ||
&& rm -f /usr/local/etc/php/conf.d/*-memcached.ini \ | ||
&& mkdir -p /var/www/.drush \ | ||
&& mkdir -p /var/www/.backdrush \ | ||
&& mkdir -p /var/www/.composer \ | ||
&& mkdir -p /var/www/.drupal \ | ||
&& mkdir -p /srv/bin \ | ||
&& chown -R www-data:www-data /var/www /srv/bin \ | ||
&& curl -O "https://raw.githubusercontent.com/pantheon-systems/terminus-installer/master/builds/installer.phar" \ | ||
&& php installer.phar install --install-version=$TERMINUS_VERSION \ | ||
&& cd /tmp && curl -OL "https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/${WKHTMLTOPDF_VERSION}/wkhtmltox-${WKHTMLTOPDF_VERSION}_linux-generic-amd64.tar.xz" \ | ||
&& tar xJfv "wkhtmltox-${WKHTMLTOPDF_VERSION}_linux-generic-amd64.tar.xz" && cp -rf /tmp/wkhtmltox/bin/* /srv/bin \ | ||
&& cd /srv/bin \ | ||
&& curl -fsSL "https://github.com/Medium/phantomjs/releases/download/v${PHANTOMJS_VERSION}/phantomjs-${PHANTOMJS_VERSION}-linux-x86_64.tar.bz2" | tar -xjv \ | ||
&& mv phantomjs-${PHANTOMJS_VERSION}-linux-x86_64/bin/phantomjs /srv/bin/phantomjs-${PHANTOMJS_VERSION} \ | ||
&& rm -rf phantomjs-${PHANTOMJS_VERSION}-linux-x86_64 && rm -f phantomjs-${PHANTOMJS_VERSION}-linux-x86_64.tar.bz2 \ | ||
&& chmod +x /srv/bin/phantomjs-${PHANTOMJS_VERSION} \ | ||
&& curl -fsSL "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/phantomjs/phantomjs-${PHANTOMJS_OLD_VERSION}-linux-x86_64.tar.bz2" | tar -xjv \ | ||
&& mv phantomjs-${PHANTOMJS_OLD_VERSION}-linux-x86_64/bin/phantomjs /srv/bin/phantomjs \ | ||
&& rm -rf phantomjs-${PHANTOMJS_OLD_VERSION}-linux-x86_64 && rm -f phantomjs-${PHANTOMJS_OLD_VERSION}-linux-x86_64.tar.bz2 \ | ||
&& chmod +x /srv/bin/phantomjs \ | ||
&& curl -fsSL "http://www-us.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz" | tar -xz -C /tmp \ | ||
&& cd /tmp && curl -OL "http://archive.apache.org/dist/tika/apache-tika-1.1-src.zip" \ | ||
&& unzip /tmp/apache-tika-1.1-src.zip \ | ||
&& rm /tmp/apache-tika-1.1-src.zip \ | ||
&& cd /tmp/apache-tika-1.1 && /tmp/apache-maven-${MAVEN_VERSION}/bin/mvn install \ | ||
&& cp -rf /tmp/apache-tika-1.1/tika-app/target/tika-app-1.1.jar /srv/bin/tika-app-1.1.jar \ | ||
&& apt-get -y remove openjdk-8-jdk \ | ||
&& apt-get -y clean \ | ||
&& apt-get -y autoclean \ | ||
&& apt-get -y autoremove \ | ||
&& rm -rf /var/lib/apt/lists/* && rm -rf && rm -rf /var/lib/cache/* && rm -rf /var/lib/log/* && rm -rf /tmp/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
Lando Pantheon appserver | ||
======================== | ||
|
||
A container that approximates the appserver used on Pantheon. | ||
|
||
``` | ||
# Pantheon php 7.3 fpm appserver for Lando | ||
# | ||
# docker build -t devwithlando/pantheon-appserver:7.3-2 . | ||
FROM devwithlando/php:7.3-fpm-2 | ||
# Version information | ||
ENV WKHTMLTOPDF_VERSION 0.12.3 | ||
ENV PHANTOMJS_VERSION 2.1.1 | ||
ENV PHANTOMJS_OLD_VERSION 1.7.0 | ||
ENV TERMINUS_VERSION 1.9.0 | ||
ENV MAVEN_VERSION 3.5.4 | ||
# Install the additional things that make the pantheon | ||
RUN mkdir -p /usr/share/man/man1 \ | ||
&& apt-get update && apt-get install -y \ | ||
openjdk-8-jre-headless \ | ||
openjdk-8-jdk \ | ||
&& rm -f /usr/local/etc/php/conf.d/*-memcached.ini \ | ||
&& mkdir -p /var/www/.drush \ | ||
&& mkdir -p /var/www/.backdrush \ | ||
&& mkdir -p /var/www/.composer \ | ||
&& mkdir -p /var/www/.drupal \ | ||
&& mkdir -p /srv/bin \ | ||
&& chown -R www-data:www-data /var/www /srv/bin \ | ||
&& curl -O "https://raw.githubusercontent.com/pantheon-systems/terminus-installer/master/builds/installer.phar" \ | ||
&& php installer.phar install --install-version=$TERMINUS_VERSION \ | ||
&& cd /tmp && curl -OL "https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/${WKHTMLTOPDF_VERSION}/wkhtmltox-${WKHTMLTOPDF_VERSION}_linux-generic-amd64.tar.xz" \ | ||
&& tar xJfv "wkhtmltox-${WKHTMLTOPDF_VERSION}_linux-generic-amd64.tar.xz" && cp -rf /tmp/wkhtmltox/bin/* /srv/bin \ | ||
&& cd /srv/bin \ | ||
&& curl -fsSL "https://github.com/Medium/phantomjs/releases/download/v${PHANTOMJS_VERSION}/phantomjs-${PHANTOMJS_VERSION}-linux-x86_64.tar.bz2" | tar -xjv \ | ||
&& mv phantomjs-${PHANTOMJS_VERSION}-linux-x86_64/bin/phantomjs /srv/bin/phantomjs-${PHANTOMJS_VERSION} \ | ||
&& rm -rf phantomjs-${PHANTOMJS_VERSION}-linux-x86_64 && rm -f phantomjs-${PHANTOMJS_VERSION}-linux-x86_64.tar.bz2 \ | ||
&& chmod +x /srv/bin/phantomjs-${PHANTOMJS_VERSION} \ | ||
&& curl -fsSL "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/phantomjs/phantomjs-${PHANTOMJS_OLD_VERSION}-linux-x86_64.tar.bz2" | tar -xjv \ | ||
&& mv phantomjs-${PHANTOMJS_OLD_VERSION}-linux-x86_64/bin/phantomjs /srv/bin/phantomjs \ | ||
&& rm -rf phantomjs-${PHANTOMJS_OLD_VERSION}-linux-x86_64 && rm -f phantomjs-${PHANTOMJS_OLD_VERSION}-linux-x86_64.tar.bz2 \ | ||
&& chmod +x /srv/bin/phantomjs \ | ||
&& curl -fsSL "http://www-us.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz" | tar -xz -C /tmp \ | ||
&& cd /tmp && curl -OL "http://archive.apache.org/dist/tika/apache-tika-1.1-src.zip" \ | ||
&& unzip /tmp/apache-tika-1.1-src.zip \ | ||
&& rm /tmp/apache-tika-1.1-src.zip \ | ||
&& cd /tmp/apache-tika-1.1 && /tmp/apache-maven-${MAVEN_VERSION}/bin/mvn install \ | ||
&& cp -rf /tmp/apache-tika-1.1/tika-app/target/tika-app-1.1.jar /srv/bin/tika-app-1.1.jar \ | ||
&& apt-get -y remove openjdk-8-jdk \ | ||
&& apt-get -y clean \ | ||
&& apt-get -y autoclean \ | ||
&& apt-get -y autoremove \ | ||
&& rm -rf /var/lib/apt/lists/* && rm -rf && rm -rf /var/lib/cache/* && rm -rf /var/lib/log/* && rm -rf /tmp/* | ||
``` |