Skip to content

Commit

Permalink
update to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
noogen committed Mar 18, 2018
1 parent eacd9f8 commit ada90e1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 18 deletions.
29 changes: 17 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM hyperknot/baseimage16:1.0.2
FROM hyperknot/baseimage16:1.0.4

MAINTAINER [email protected]

Expand All @@ -8,7 +8,7 @@ ENV DEBIAN_FRONTEND=noninteractive \
# start
RUN cd /tmp \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C \
&& add-apt-repository -y ppa:pinepain/libv8-5.4 \
&& add-apt-repository -y ppa:pinepain/libv8 \
&& curl -s -o /tmp/couchbase-release-1.0-4-amd64.deb http://packages.couchbase.com/releases/couchbase-release/couchbase-release-1.0-4-amd64.deb \
&& dpkg -i /tmp/couchbase-release-1.0-4-amd64.deb \
&& add-apt-repository -y ppa:couchdb/stable \
Expand All @@ -17,8 +17,8 @@ RUN cd /tmp \
# install
&& apt-get update && apt-get -y --no-install-recommends upgrade \
&& apt-get -y --no-install-recommends --allow-unauthenticated install wget curl unzip nano vim rsync apt-transport-https openssh-client openssh-server \
sudo tar git apt-utils software-properties-common build-essential python-dev tcl openssl libpcre3 dnsmasq ca-certificates libpcre3-dev \
libxml2-dev libxslt1-dev zlib1g-dev libffi-dev libssl-dev libmagickwand-dev procps imagemagick netcat libv8-5.4-dev pkg-config \
sudo tar git apt-utils software-properties-common build-essential python-dev tcl openssl libpcre3 dnsmasq ca-certificates libpcre3-dev re2c \
libxml2-dev libxslt1-dev zlib1g-dev libffi-dev libssl-dev libmagickwand-dev procps imagemagick netcat libv8-6.6-dev pkg-config \
mcrypt pwgen language-pack-en-base libicu-dev g++ cpp libglib2.0-dev incron libcouchbase-dev libcouchbase2-libevent \
php7.2-dev php-pear php-xml php7.2-xml php7.0-dev php7.0-xml php7.1-dev php7.1-xml \

Expand All @@ -38,13 +38,15 @@ RUN cd /tmp \
&& pecl config-set php_bin /usr/bin/php7.2 \
&& pecl config-set php_suffix 7.2 \

&& pecl install -f -a -l v8js \
&& pecl install -f pcs \
&& pecl install -f igbinary \
&& pecl install -f couchbase \
&& pecl install -f imagick \
&& cd /tmp && curl -sL https://pecl.php.net/get/v8js > v8js.tgz && tar -xf v8js.tgz && cd v8js-* && phpize && LDFLAGS="-lstdc++" ./configure --with-v8js=/opt/libv8-6.6/ && make && make install \
&& cd /tmp && curl -sL https://pecl.php.net/get/v8 > v8.tgz && tar -xf v8.tgz && cd v8-* && phpize && ./configure --with-v8=/opt/libv8-6.6/ && make && make install \

&& rm -rf /tmp/* \

&& rm -rf /tmp/pear/ \
# install for php 7.0
&& update-alternatives --set php /usr/bin/php7.0 \
&& update-alternatives --set phar /usr/bin/phar7.0 \
Expand All @@ -54,13 +56,15 @@ RUN cd /tmp \
&& pecl config-set php_bin /usr/bin/php7.0 \
&& pecl config-set php_suffix 7.0 \

&& pecl install -f -a -l v8js \
&& pecl install -f pcs \
&& pecl install -f igbinary \
&& pecl install -f couchbase \
&& pecl install -f imagick \
&& cd /tmp && curl -sL https://pecl.php.net/get/v8js > v8js.tgz && tar -xf v8js.tgz && cd v8js-* && phpize && LDFLAGS="-lstdc++" ./configure --with-v8js=/opt/libv8-6.6/ && make && make install \
&& cd /tmp && curl -sL https://pecl.php.net/get/v8 > v8.tgz && tar -xf v8.tgz && cd v8-* && phpize && ./configure --with-v8=/opt/libv8-6.6/ && make && make install \

&& rm -rf /tmp/* \

&& rm -rf /tmp/pear/ \
# install for php 7.1
&& update-alternatives --set php /usr/bin/php7.1 \
&& update-alternatives --set phar /usr/bin/phar7.1 \
Expand All @@ -70,11 +74,12 @@ RUN cd /tmp \
&& pecl config-set php_bin /usr/bin/php7.1 \
&& pecl config-set php_suffix 7.1 \

&& pecl install -f -a -l v8js \
&& pecl install -f pcs \
&& pecl install -f igbinary \
&& pecl install -f couchbase \
&& pecl install -f imagick \
&& cd /tmp && curl -sL https://pecl.php.net/get/v8js > v8js.tgz && tar -xf v8js.tgz && cd v8js-* && phpize && LDFLAGS="-lstdc++" ./configure --with-v8js=/opt/libv8-6.6/ && make && make install \
&& cd /tmp && curl -sL https://pecl.php.net/get/v8 > v8.tgz && tar -xf v8.tgz && cd v8-* && phpize && ./configure --with-v8=/opt/libv8-6.6/ && make && make install \

&& apt-get -y autoremove \
&& apt-get clean \
Expand Down Expand Up @@ -105,9 +110,9 @@ RUN cd /tmp \
&& add-apt-repository 'deb [arch=amd64,i386] http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.2/ubuntu xenial main' \

# getting repos for mongodb, java
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 \
&& echo 'deb [arch=amd64,i386] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse' \
| sudo tee /etc/apt/sources.list.d/mongodb-3.4.list \
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5 \
&& echo 'deb [arch=amd64,i386] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse' \
| sudo tee /etc/apt/sources.list.d/mongodb-3.6.list \

&& echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections \
&& add-apt-repository -y ppa:webupd8team/java \
Expand Down
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ Based off https://github.com/phusion/baseimage-docker, this image contain latest
For convienience, sshd is enabled by default; just don't expose docker port 22 if you don't want to use sshd.

## php files
1. precompiled v8js-0.6.4 for php5.6
2. pecl install latest v8js for php7.0+
3. pecl install pcs and couchbase for couchdb
4. imagemagick lib for php-imagick support
5. composer
1. pecl install latest v8js for php7.0+
2. pecl install pcs and couchbase for couchdb
3. imagemagick lib for php-imagick support
4. composer

## other runtimes
1. oracle-java8-sdk
Expand All @@ -19,8 +18,11 @@ For convienience, sshd is enabled by default; just don't expose docker port 22 i
## add repositories
1. php
2. mariadb 10.2
3. mongodb 3.4
3. mongodb 3.6
4. couchbase and couchdb
4. java

## Note
1.0.4 - remove support of v8js for php-5.6 due to deprecation of older v8 - https://github.com/phpv8/v8js/issues/345. Upgrade from 3.4 to 3.6 for mongodb.

# MIT

0 comments on commit ada90e1

Please sign in to comment.