Commit Graph

29 Commits

Author SHA1 Message Date
Adam Tauber 1bb46e5e37
Merge pull request #1680 from robbyoconnor/patch-1
Add --no-cache to tell apk to not cache packages
2019-12-02 13:42:33 +00:00
mathieu.brunot 2485d41bdd
🐳 Config for instance name and autocomplete
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
2019-10-14 02:02:41 +02:00
Robert O'Connor 86d1a4931f
.. 2019-08-18 18:29:02 -04:00
Robert O'Connor dae5bcf253
some other minor tweaks to move stuff very unlikely to change to the top in efforts to delay cache invalidation 2019-08-18 18:26:40 -04:00
Robby O'Connor 906320d271
add --no-cache to package installs
Add --no-cache to apk upgrade and apk add calls.
2019-08-18 18:20:58 -04:00
Alexandre Flament 02bbbf59d6
[fix] Dockerfile: searx version stores in org.label-schema.version (#1659)
instead of org.label-schema.schema-version
2019-08-01 07:51:09 +02:00
Dalf fbe40001d3 Update Docker image
See #1561 , use uwsgi and Alpine Linux

Volume:
/var/log/uwsgi contains error log for 2 days (file uwsgi.log)
/etc/searx contains the settings.yml and uwsgi.ini files.
The docker image creates them if they don't exist.
The two files can be modified after the first run. See below.

Environement variables:
MORTY_URL : external URL of Morty
MORTY_KEY : base64 encoded key
BASE_URL : external URL of Searx
BIND_ADDRESS : internal HTTP port to listen to

Labels : org.label-schema.schema.*

Parameters:
-h : display this help
-d : will update the settings and quit immediately (settings.yml and uwsgi.ini)
-f : always update the settings (previous version saved with suffix .old).
     without this parameter, the new settings are copied with suffix .new

When the Docker image contains newer settings:
- without -f parameter: the new versions are copied to /etc/searx/settings.yml.new and /etc/searx/uwsgi.ini.new.
- with -f parameter:  the old versions are renamed with .old suffix. The new version replaces /etc/searx/settings.yml and /etc/searx/uwsgi.ini

Build using "./manage.sh docker_build", add "push" as parameter also push the Docker image.
The script requires a git repository to work (it makes sure that the last git tag matches searx/version.py)
"git describe" is used to create a meaningful version.
Example : 0.15.0-90-49c5bcb4-dirty (dirty means that the docker image was made with uncommited changes).

Use "docker inspect -f {{.Config.Labels.version}} searx" to get the version of an existing image.

.dockerignore based on .gitignore

.travis.yml: include docker stage
2019-07-13 15:49:59 +02:00
pelag0s 2061c59ca1 Define http proxy variables in Dockerfile before using them 2019-01-14 09:24:57 +01:00
pelag0s c1af891707 docker: allow configuring http proxy via env variables 2019-01-12 11:10:00 +01:00
ZEROF 81db2e07ea Update Dockerfile (#1451)
- Forget one "\" in the process!
2018-11-29 18:49:03 +01:00
ZEROF 6b462afe74
Update Dockerfile
- Fix for docker image build error "Could not find a version that satisfies the requirement cffi!=1.11.3,>=1.7 (from versions: )"
2018-11-29 10:30:59 +01:00
Noémi Ványi 8f744ddfb2
Merge branch 'master' into patch-2 2018-08-19 21:49:07 +02:00
Angristan 42d7094a87 Update Docker image to Alpine 3.8 2018-08-19 14:17:11 +02:00
Adam Tauber b75f1b6cc3
Merge branch 'master' into patch-2 2018-08-19 13:22:22 +02:00
Angristan e7f7eda18c
Use new LABEL syntax for Dockerfile
https://docs.docker.com/engine/reference/builder/#maintainer-deprecated
2018-03-10 15:58:13 +01:00
Angristan fbefc9576d
Update to Alpine 3.7
https://www.alpinelinux.org/posts/Alpine-3.7.0-released.html
2018-03-10 15:45:42 +01:00
Michael Vieira 0367c9ab48 Change the version of alpine on the dockerfile to deploy Searx on ARM architectures 2018-02-13 11:54:55 +01:00
Juan Garcia Basilio 44cb2b18b0 Fix #872. Google search works again with docker.
All the credit goes to Wonderfall. Thanks for that!
See: https://github.com/Wonderfall/dockerfiles/issues/110
2017-03-02 21:58:59 +01:00
Adam Tauber 252e97a5e5 [enh] alpine version bump in docker 2017-02-23 17:43:33 +01:00
Jannik Winkel 719d541575 fix #850 2017-02-08 23:37:52 +01:00
Wonderfall 8eb399c114 Dockerfile enhancements 2016-02-09 21:02:40 +01:00
Thomas Renard 807588ff2f Some changes in Dockerfile:
- searx/settings.yml is the right name in second sed line
 - COPY requirements.txt . does not work: "Not a directory"
2016-01-15 21:57:34 +01:00
Wonderfall 3dd41af67b Better Dockerfile 2016-01-04 12:52:59 +01:00
Wonderfall 5f05a3c585 Better Dockerfile 2016-01-04 07:38:47 +01:00
Wonderfall b0587a0227 Better Dockerfile 2016-01-03 15:45:13 +01:00
Wonderfall 414c4f4ca4 Better Dockerfile 2016-01-03 15:17:59 +01:00
Wonderfall 2dc067f026 Better Docker embedded support 2015-12-30 11:23:45 +01:00
Giorgos Logiotatidis 316c4607f2 Update Dockerfile.
- Install new packages needed to deploy search
- Optimize dockerfile for more docker deamon caching
- Pin a python2.7 base image.
2015-06-10 12:39:19 +03:00
Giorgos Logiotatidis 0265e87e43 Add Docker support. 2015-02-03 20:43:08 +02:00