commit 04498fe63dc8e61fe9f753d72f062a6ec887c7e5 Author: Joey Date: Thu Mar 9 11:29:33 2017 +0000 Initial version diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..c7688ce --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +.git +.gitignore +.dockerignore +node_modules + diff --git a/CHANGELOG b/CHANGELOG new file mode 100644 index 0000000..0b6ac06 --- /dev/null +++ b/CHANGELOG @@ -0,0 +1,2 @@ +[0.1.0] +* Initial version diff --git a/CloudronManifest.json b/CloudronManifest.json new file mode 100644 index 0000000..1ec51ae --- /dev/null +++ b/CloudronManifest.json @@ -0,0 +1,22 @@ +{ + "id": "org.cirnoq.searx", + "title": "Searx", + "author": "Searx developers", + "description": "file://DESCRIPTION.md", + "changelog": "file://CHANGELOG", + "tagline": "Privacy-respecting metasearch engine", + "version": "0.0.2", + "healthCheckPath": "/", + "httpPort": 8888, + "addons": { + "localstorage": {} + }, + "manifestVersion": 1, + "website": "https://asciimoo.github.io/searx/", + "contactEmail": "support@cloudron.io", + "icon": "file://logo.png", + "tags": [ + "search", "metasearch" + ], + "mediaLinks": [ ] +} diff --git a/DESCRIPTION.md b/DESCRIPTION.md new file mode 100644 index 0000000..ee63036 --- /dev/null +++ b/DESCRIPTION.md @@ -0,0 +1 @@ +Please add the appstore description in markdown format here. \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..50dac4b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM cloudron/base:0.10.0 +MAINTAINER Authors name + +RUN mkdir -p /app/code +WORKDIR /app/code + +RUN apt update && apt install -y python build-essential libxslt-dev python-dev python-virtualenv python-pybabel zlib1g-dev libffi-dev libssl-dev python-pip +RUN pip install --no-cache -r https://raw.githubusercontent.com/asciimoo/searx/master/requirements.txt +RUN curl -L https://github.com/asciimoo/searx/archive/master.tar.gz | tar -xz --strip-components 1 -f - +RUN mv /app/code/searx/settings.yml /app/code/searx/settings.yml.orig +RUN ln -sf /app/data/settings.yml /app/code/searx/settings.yml + +EXPOSE 8888 + +ADD start.sh /app/ + +CMD [ "/app/start.sh" ] diff --git a/logo.png b/logo.png new file mode 100644 index 0000000..e80ac3f Binary files /dev/null and b/logo.png differ diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..44e05ba --- /dev/null +++ b/start.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +set -eux + +if [[ -z "$(ls -A /app/data)" ]]; then + echo "=> Detected first run" + cp /app/code/searx/settings.yml.orig /app/data/settings.yml + sed -i "s/127.0.0.1/0.0.0.0/g" /app/data/settings.yml +fi + +exec python /app/code/searx/webapp.py