Dockerfile.jenkins 821 B

12345678910111213141516171819202122
  1. ARG V8VER
  2. FROM stesie/libv8-${V8VER}:latest
  3. ARG PHPVER
  4. ENV DEBIAN_FRONTEND=noninteractive
  5. ENV LC_ALL=C.UTF-8
  6. ENV NO_INTERACTION=1
  7. ENV REPORT_EXIT_STATUS=1
  8. RUN apt-get update -q
  9. RUN apt-get install -y wget autoconf build-essential libreadline-dev pkg-config
  10. RUN wget https://www.php.net/distributions/php-${PHPVER}.tar.gz && \
  11. tar xzf php-${PHPVER}.tar.gz
  12. ADD . /php-${PHPVER}/ext/v8js
  13. WORKDIR /php-${PHPVER}
  14. RUN ./buildconf --force
  15. RUN ./configure --disable-all --with-readline --enable-cli --enable-json --enable-maintainer-zts --with-v8js=/opt/libv8-$V8VER/ CFLAGS="-fsanitize=address -g -O0" CXXFLAGS="-fsanitize=address -g -O0" CPPFLAGS="$([ $( echo "$V8VER" | cut -c 1-1 ) -ge 8 ] && echo "-DV8_COMPRESS_POINTERS" || echo "")"
  16. RUN sed -e "s/^EXTRA_LIBS.*/& -lv8_libplatform -ldl/" -i Makefile
  17. RUN make -j5