Skip to content

Commit

Permalink
remove deprecated stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
noogen committed Mar 30, 2018
1 parent b71730d commit c2a15a6
Showing 1 changed file with 1 addition and 41 deletions.
42 changes: 1 addition & 41 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,140 +1,100 @@
FROM hyperknot/baseimage16:1.0.4

MAINTAINER [email protected]
LABEL maintainer="noogen <[email protected]>"

ENV DEBIAN_FRONTEND=noninteractive \
LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 TERM=xterm container=docker

# start
RUN cd /tmp \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C \
&& 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 \
&& apt-add-repository -y ppa:ondrej/php \

# 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 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 \

# dotnet deps
libc6 libcurl3 libgcc1 libgssapi-krb5-2 liblttng-ust0 libssl1.0.0 libstdc++6 libunwind8 libuuid1 zlib1g \

&& systemctl disable incron \
&& echo 'root' >> /etc/incron.allow \
&& dpkg --configure -a \

# install for php 7.2
&& update-alternatives --set php /usr/bin/php7.2 \
&& update-alternatives --set phar /usr/bin/phar7.2 \
&& update-alternatives --set phar.phar /usr/bin/phar.phar7.2 \
&& pecl config-set php_ini /etc/php/7.2/cli/php.ini \
&& pecl config-set ext_dir /usr/lib/php/20170718 \
&& pecl config-set php_bin /usr/bin/php7.2 \
&& pecl config-set php_suffix 7.2 \

&& 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/* \

# install for php 7.0
&& update-alternatives --set php /usr/bin/php7.0 \
&& update-alternatives --set phar /usr/bin/phar7.0 \
&& update-alternatives --set phar.phar /usr/bin/phar.phar7.0 \
&& pecl config-set php_ini /etc/php/7.0/cli/php.ini \
&& pecl config-set ext_dir /usr/lib/php/20151012 \
&& pecl config-set php_bin /usr/bin/php7.0 \
&& pecl config-set php_suffix 7.0 \

&& 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/* \

# install for php 7.1
&& update-alternatives --set php /usr/bin/php7.1 \
&& update-alternatives --set phar /usr/bin/phar7.1 \
&& update-alternatives --set phar.phar /usr/bin/phar.phar7.1 \
&& pecl config-set php_ini /etc/php/7.1/cli/php.ini \
&& pecl config-set ext_dir /usr/lib/php/20160303 \
&& pecl config-set php_bin /usr/bin/php7.1 \
&& pecl config-set php_suffix 7.1 \

&& 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 \
&& rm -rf /var/lib/apt/lists/* \
&& rm -f /core \
&& rm -rf /tmp/* \

# re-enable all default services
&& find /etc/service/ -name "down" -exec rm -f {} \; \
|| true

COPY rootfs/. /

# setup imagick is required early to support php package later
# setup mariadb, fix python, add php repo
RUN cd /tmp \
&& chmod +x /etc/service/sshd/run \
&& chmod +x /usr/bin/backup-creds.sh \

# incrond is disabled by default, user should delete the down file after init
&& chmod +x /etc/service/incrond/run \

# fixes for python
&& curl -s -o /tmp/python-support_1.0.15_all.deb https://launchpadlibrarian.net/109052632/python-support_1.0.15_all.deb \
&& dpkg -i /tmp/python-support_1.0.15_all.deb \

# add mariadb 10.2 repo
&& apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 \
&& 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 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 \

&& apt-get update && apt-get -y --no-install-recommends upgrade \

# add repo for dotnet
&& curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg \
&& mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg \
&& echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list \

# setting up java, mongodb tools, and nodejs
&& apt-get -y --no-install-recommends --allow-unauthenticated install oracle-java8-installer oracle-java8-set-default \
&& dpkg --configure -a \

# setup other things
&& echo "\n\nJAVA_HOME=/usr/lib/jvm/java-8-oracle\nexport JAVA_HOME\n" >> /root/.profile \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - \

# cleanup
&& rm -rf /tmp/* \
&& apt-get -y autoremove \
&& apt-get clean \
Expand Down

0 comments on commit c2a15a6

Please sign in to comment.