Skip to content

Commit

Permalink
remove custom build in pref of stesse v8
Browse files Browse the repository at this point in the history
  • Loading branch information
noogen committed Jun 16, 2020
1 parent 7e53275 commit 87e4341
Show file tree
Hide file tree
Showing 33 changed files with 6 additions and 18,970 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM phusion/baseimage:0.10.2
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
ENV V8VER=7.5
COPY rootfs/. /
RUN cd /tmp \
&& chmod +x /etc/service/sshd/run \
Expand All @@ -12,14 +13,14 @@ RUN cd /tmp \
&& dpkg -i /tmp/couchbase-release-1.0-4-amd64.deb \
&& add-apt-repository -y ppa:couchdb/stable \
&& apt-add-repository -y ppa:ondrej/php \
&& add-apt-repository -y ppa:stesie/libv8 \
&& apt-get update && apt-get -yf -o Dpkg::Options::="--force-confdef" --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 pkg-config \
mcrypt pwgen language-pack-en-base libicu-dev g++ cpp libglib2.0-dev incron libcouchbase-dev libcouchbase2-libevent \
libc6 libcurl3 libgcc1 libgssapi-krb5-2 liblttng-ust0 libssl1.0.0 libstdc++6 libunwind8 libuuid1 zlib1g \
libc6 libcurl3 libgcc1 libgssapi-krb5-2 liblttng-ust0 libssl1.0.0 libstdc++6 libunwind8 libuuid1 zlib1g libasan2 libv8-$V8VER-dev \
php-pear php-xml php7.3-dev php7.3-xml php7.2-dev php7.2-xml php7.4-dev php7.4-xml \
&& rsync --update -ahp --progress /opt/libv8-7.4/ /usr/local/ \
&& systemctl disable incron \
&& echo 'root' >> /etc/incron.allow \
&& dpkg --configure -a \
Expand All @@ -34,7 +35,7 @@ RUN /usr/bin/switch-php.sh "7.4" \
&& git clone https://github.com/phpv8/v8js.git /tmp/v8js \
&& cd /tmp/v8js \
&& git checkout php7 && phpize7.4 \
&& ./configure LDFLAGS="-lstdc++" CFLAGS="-fsanitize=address -g -O0" CXXFLAGS="-fsanitize=address -g -O0" --with-v8js=/opt/libv8-7.4 \
&& ./configure CFLAGS="-fsanitize=address -g -O0" CXXFLAGS="-fsanitize=address -g -O0" --with-v8js=/opt/libv8-$V8VER \
&& make all test install \
&& mkdir -p /mytmp/20190902 && rsync -ahp /usr/lib/php/20190902/ /mytmp/20190902/ \
&& rm -rf /tmp/*
Expand All @@ -43,7 +44,7 @@ RUN /usr/bin/switch-php.sh "7.3" \
&& git clone https://github.com/phpv8/v8js.git /tmp/v8js \
&& cd /tmp/v8js \
&& git checkout php7 && phpize7.3 \
&& ./configure LDFLAGS="-lstdc++" --with-v8js=/opt/libv8-7.4 \
&& ./configure LDFLAGS="-lstdc++" --with-v8js=/opt/libv8-$V8VER \
&& make all test install \
&& mkdir -p /mytmp/20180731 && rsync -ahp /usr/lib/php/20180731/ /mytmp/20180731/ \
&& rm -rf /tmp/*
Expand All @@ -52,7 +53,7 @@ RUN /usr/bin/switch-php.sh "7.2" \
&& git clone https://github.com/phpv8/v8js.git /tmp/v8js \
&& cd /tmp/v8js \
&& git checkout php7 && phpize7.2 \
&& ./configure LDFLAGS="-lstdc++" --with-v8js=/opt/libv8-7.4 \
&& ./configure LDFLAGS="-lstdc++" --with-v8js=/opt/libv8-$V8VER \
&& make all test install \
&& rsync -ahp /mytmp/20190902/ /usr/lib/php/20190902/ \
&& rsync -ahp /mytmp/20180731/ /usr/lib/php/20180731/ \
Expand Down
72 changes: 0 additions & 72 deletions rootfs/opt/libv8-7.4/include/APIDesign.md

This file was deleted.

4 changes: 0 additions & 4 deletions rootfs/opt/libv8-7.4/include/DEPS

This file was deleted.

17 changes: 0 additions & 17 deletions rootfs/opt/libv8-7.4/include/OWNERS

This file was deleted.

Loading

0 comments on commit 87e4341

Please sign in to comment.