Commit Graph

51 Commits (87c8c5fd1bc7bf855d74ae37af947b292c262873)

Author SHA1 Message Date
Alexandre Flament 4bd78a7ef0 [mod] Dockerfile: use binary from pypi
lxml doesn't raise any exception
2 years ago
Alexandre Flament f9c9284f48
Dockerfile: use alpine 3.15
Use Python 3.9.7-r4 (previously 3.9.5-r2)
2 years ago
Alexandre Flament dc39f9c960 [fix] Dockerfile image
ignore existing wheels, rebuild all of them
fix an issue the lxml wheel for the muslc
3 years ago
Alexandre Flament 9e03823b98 SearXNG: docker 3 years ago
Alexandre Flament 253b850376 SearXNG: SEARXNG_SETTINGS_PATH 3 years ago
Alexandre Flament 499c7b3cce SearXNG: .github, searxng-docker 3 years ago
Alexandre Flament 4b43775c91 version based on the git repository
This commit remove the need to update the brand for GIT_URL and GIT_BRANCH:
there are read from the git repository.

It is possible to call python -m searx.version freeze to freeze the current version.
Useful when the code is installed outside git (distro package, docker, etc...)
3 years ago
Alexandre Flament ef12c41206
Docker: upgrade to alpine 3.14
Uses Python version 3.9 instead of 3.8
3 years ago
Markus Heiser 130e58f982 [brand] Dockerfile default INSTANCE_NAME=searxng
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Alexandre Flament 8c5cb5039e [mod] Dockerfile: upgrade to Alpine 3.13
See:
* https://alpinelinux.org/posts/Alpine-3.13.0-released.html
* musl>=1.2.1 have a new malloc implementation (mallocng) :
3 years ago
Alexandre Flament 20580bcbd4 [docker] multiarch support: linux/amd64,linux/arm64,linux/arm/v7
make docker.buildx : build and push multiarch build.
(it can't be only build)

use buildx with the --cache-from and --cache-to options to cache the layers
(only the last built is cached)
3 years ago
3nprob 0fb423ea59 Allow overriding env vars SEARX_SETTINGS_PATH,UWSGI_SETTINGS_PATH 3 years ago
3nprob 3c6c827330 Reduce redundant docker build steps 3 years ago
Alexandre Flament ae0b621ec8
[mod] Dockerfile: remove protobuff dependency
See https://github.com/searx/searx/pull/2481
3 years ago
Alexandre Flament 8cbc9f2d58 [enh] add checker 3 years ago
Alexandre Flament 4cc8644ec9
Merge pull request #1865 from dalf/uwsgi_static
[enh] Docker image: uwsgi serves the static files directly.
4 years ago
Wonderfall 7b19e6c5f4
Dockerfile: upgrade base to alpine 3.12 (#1983)
Author: Wonderfall <wonderfall@targaryen.house>
4 years ago
Jason Kaltsikis 5ed4d72cfa Remove cache of pip upgrade 4 years ago
Markus Heiser 0f4dbc4eca
Merge branch 'master' into uwsgi_static 4 years ago
Markus Heiser 3dbade0aed [fix] brands: add GIT_URL variable to the docker build
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
4 years ago
Dalf 678d41d75b [enh] Docker image: uwsgi serves the static files directly.
When the image is built, the static files are compressed with gzip and brotli.
The expires header is set to one day (same as Flask)
There is not etag header (Flask does add an etag header)
4 years ago
mathieu.brunot 088752959e
📝 Opencontainers labels in docker image #1772
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
5 years ago
Adam Tauber 1bb46e5e37
Merge pull request #1680 from robbyoconnor/patch-1
Add --no-cache to tell apk to not cache packages
5 years ago
mathieu.brunot 2485d41bdd
🐳 Config for instance name and autocomplete
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
5 years ago
Robert O'Connor 86d1a4931f
.. 5 years ago
Robert O'Connor dae5bcf253
some other minor tweaks to move stuff very unlikely to change to the top in efforts to delay cache invalidation 5 years ago
Robby O'Connor 906320d271
add --no-cache to package installs
Add --no-cache to apk upgrade and apk add calls.
5 years ago
Alexandre Flament 02bbbf59d6
[fix] Dockerfile: searx version stores in org.label-schema.version (#1659)
instead of org.label-schema.schema-version
5 years ago
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
5 years ago
pelag0s 2061c59ca1 Define http proxy variables in Dockerfile before using them 5 years ago
pelag0s c1af891707 docker: allow configuring http proxy via env variables 5 years ago
ZEROF 81db2e07ea Update Dockerfile (#1451)
- Forget one "\" in the process!
6 years ago
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: )"
6 years ago
Noémi Ványi 8f744ddfb2
Merge branch 'master' into patch-2 6 years ago
Angristan 42d7094a87 Update Docker image to Alpine 3.8 6 years ago
Adam Tauber b75f1b6cc3
Merge branch 'master' into patch-2 6 years ago
Angristan e7f7eda18c
Use new LABEL syntax for Dockerfile
https://docs.docker.com/engine/reference/builder/#maintainer-deprecated
6 years ago
Angristan fbefc9576d
Update to Alpine 3.7
https://www.alpinelinux.org/posts/Alpine-3.7.0-released.html
6 years ago
Michael Vieira 0367c9ab48 Change the version of alpine on the dockerfile to deploy Searx on ARM architectures 6 years ago
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
7 years ago
Adam Tauber 252e97a5e5 [enh] alpine version bump in docker 7 years ago
Jannik Winkel 719d541575 fix #850 7 years ago
Wonderfall 8eb399c114 Dockerfile enhancements 8 years ago
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"
8 years ago
Wonderfall 3dd41af67b Better Dockerfile 9 years ago
Wonderfall 5f05a3c585 Better Dockerfile 9 years ago
Wonderfall b0587a0227 Better Dockerfile 9 years ago
Wonderfall 414c4f4ca4 Better Dockerfile 9 years ago
Wonderfall 2dc067f026 Better Docker embedded support 9 years ago
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.
9 years ago