From df7ccdb90284546e0119528dca359f60346c4881 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Tue, 19 Dec 2017 11:52:17 +0800 Subject: [PATCH] Remove phantomjs and install google-chrome-stable into test base image. --- image/auto_build.rb | 3 +-- image/base/.gitignore | 1 - image/base/Dockerfile | 7 ------- image/base/download_phantomjs | 3 --- image/build.rb | 1 - image/discourse_dev/Dockerfile | 2 +- 6 files changed, 2 insertions(+), 15 deletions(-) delete mode 100644 image/base/.gitignore delete mode 100755 image/base/download_phantomjs diff --git a/image/auto_build.rb b/image/auto_build.rb index 40ce7b0..bcb88e2 100644 --- a/image/auto_build.rb +++ b/image/auto_build.rb @@ -41,6 +41,5 @@ raise 'Image not found' unless images.include?(image) puts "Building #{images[image]}" dev_deps() if image == :discourse_dev -run "(cd base && ./download_phantomjs)" if image == :base -build(images[image]) \ No newline at end of file +build(images[image]) diff --git a/image/base/.gitignore b/image/base/.gitignore deleted file mode 100644 index 1dd5bce..0000000 --- a/image/base/.gitignore +++ /dev/null @@ -1 +0,0 @@ -phantomjs diff --git a/image/base/Dockerfile b/image/base/Dockerfile index a170b40..ecd0aff 100644 --- a/image/base/Dockerfile +++ b/image/base/Dockerfile @@ -53,7 +53,6 @@ RUN /tmp/install-nginx RUN apt-get -y install advancecomp jhead jpegoptim libjpeg-turbo-progs optipng - RUN mkdir /jemalloc-stable && cd /jemalloc-stable &&\ wget https://github.com/jemalloc/jemalloc/releases/download/3.6.0/jemalloc-3.6.0.tar.bz2 &&\ tar -xjf jemalloc-3.6.0.tar.bz2 && cd jemalloc-3.6.0 && ./configure --prefix=/usr && make && make install &&\ @@ -98,12 +97,6 @@ RUN /tmp/install-gifsicle ADD install-pngquant /tmp/install-pngquant RUN /tmp/install-pngquant -ADD phantomjs /usr/local/bin/phantomjs - -# Not using the official repo until they compile against a recent openssl -# RUN cd tmp && wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 -# RUN cd tmp && tar jxf phantomjs-2.1.1-linux-x86_64.tar.bz2 && mv /tmp/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin - # clean up for docker squash RUN rm -fr /usr/share/man &&\ rm -fr /usr/share/doc &&\ diff --git a/image/base/download_phantomjs b/image/base/download_phantomjs deleted file mode 100755 index 84dc2f0..0000000 --- a/image/base/download_phantomjs +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -docker run --rm -it -v `pwd`:/tmp samsaffron/phantomjs cp /usr/bin/phantomjs /tmp diff --git a/image/build.rb b/image/build.rb index a5ea380..8568375 100644 --- a/image/build.rb +++ b/image/build.rb @@ -95,7 +95,6 @@ todo.each do |image| bump(images[image][:name], options[:version]) if options[:version] dev_deps() if image == :discourse_dev - run "(cd base && ./download_phantomjs)" if image == :base build(images[image]) end diff --git a/image/discourse_dev/Dockerfile b/image/discourse_dev/Dockerfile index 8b1886e..0ef8d3d 100644 --- a/image/discourse_dev/Dockerfile +++ b/image/discourse_dev/Dockerfile @@ -1,6 +1,6 @@ # NAME: discourse/discourse_dev # VERSION: release -FROM discourse/base:release +FROM discourse/test:release #LABEL maintainer="Sam Saffron \"https://twitter.com/samsaffron\"" -- 2.25.1