From 0265e87e437e726b818f7c1c2370e330a318f553 Mon Sep 17 00:00:00 2001 From: Giorgos Logiotatidis Date: Wed, 28 Jan 2015 00:14:05 +0200 Subject: [PATCH 1/2] Add Docker support. --- Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..831a429e2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM debian:stable + +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + python-dev python2.7-minimal python-virtualenv \ + python-pybabel python-pip zlib1g-dev \ + libxml2-dev libxslt1-dev build-essential \ + openssl + +RUN useradd searx + +WORKDIR /app +RUN pip install uwsgi +COPY requirements.txt /app/requirements.txt +RUN pip install -r requirements.txt + +COPY . /app +RUN sed -i -e "s/ultrasecretkey/`openssl rand -hex 16`/g" searx/settings.yml + +EXPOSE 5000 +CMD ["/usr/local/bin/uwsgi", "--uid", "searx", "--gid", "searx", "--http", ":5000", "-w", "searx.webapp"] From ccf3d80107929a575c9958b8beb311405ce0461b Mon Sep 17 00:00:00 2001 From: Cqoicebordel Date: Tue, 3 Feb 2015 20:16:24 +0100 Subject: [PATCH 2/2] Stop running twice the tests on Travis --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 751a0ca68..44340600d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,7 @@ install: - "make" - pip install coveralls script: - - "make tests" + - "make flake8" - "make robot" - "make styles" - "make grunt"