chore: initial image
the build was successful
Details
the build was successful
Details
copy github.com/wonderfall/dockerfiles/searx, modify to fit my base image, add ci and update to newest version
This commit is contained in:
parent
b52777da6a
commit
184f24145f
|
@ -0,0 +1,8 @@
|
|||
pipeline:
|
||||
docker:
|
||||
image: plugins/docker
|
||||
repo: docker.jcg.re/searx
|
||||
registry: docker.jcg.re
|
||||
secrets: [ docker_username, docker_password ]
|
||||
tags: latest
|
||||
|
|
@ -0,0 +1 @@
|
|||
.idea
|
|
@ -0,0 +1,38 @@
|
|||
FROM docker.jcg.re/base-alpine
|
||||
MAINTAINER Jan Christian Grünhage <jan.christian@gruenhage.xyz>
|
||||
|
||||
ARG SEARX_VERSION=0.13.1
|
||||
|
||||
ENV BASE_URL=False \
|
||||
IMAGE_PROXY=False \
|
||||
UID=192 \
|
||||
GID=192
|
||||
|
||||
RUN apk -U upgrade \
|
||||
&& apk add -t build-dependencies \
|
||||
build-base \
|
||||
python-dev \
|
||||
libffi-dev \
|
||||
libxslt-dev \
|
||||
libxml2-dev \
|
||||
openssl-dev \
|
||||
tar \
|
||||
ca-certificates \
|
||||
&& apk add \
|
||||
python \
|
||||
libxml2 \
|
||||
libxslt \
|
||||
openssl \
|
||||
py2-pip \
|
||||
&& mkdir /usr/local/searx && cd /usr/local/searx \
|
||||
&& wget -qO- https://github.com/asciimoo/searx/archive/v${SEARX_VERSION}.tar.gz | tar xz --strip 1 \
|
||||
&& pip install --no-cache -r requirements.txt \
|
||||
&& sed -i "s/127.0.0.1/0.0.0.0/g" searx/settings.yml \
|
||||
&& apk del build-dependencies \
|
||||
&& rm -f /var/cache/apk/*
|
||||
|
||||
COPY root /
|
||||
|
||||
EXPOSE 8888
|
||||
|
||||
VOLUME /usr/local/searx/searx/setting.yml
|
45
README.md
45
README.md
|
@ -1,2 +1,45 @@
|
|||
# docker-searx
|
||||
## docker-searx
|
||||
|
||||
#### What is searx?
|
||||
Searx is a metasearch engine, inspired by the seeks project.
|
||||
It provides basic privacy by mixing your queries with searches on other platforms without storing search data. Queries are made using a POST request on every browser (except chrom[e|ium]). Therefore they show up in neither our logs, nor your url history. In case of Chrom[e|ium] users there is an exception, Searx uses the search bar to perform GET requests. Searx can be added to your browser's search bar; moreover, it can be set as the default search engine.
|
||||
|
||||
#### Features
|
||||
- Based on Alpine Linux.
|
||||
- Latest code from [asciimoo/searx](https://github.com/asciimoo/searx)
|
||||
- A unique secret key is generated when booting the first time.
|
||||
|
||||
### Credits
|
||||
First of all, thanks to [wonderfall](https://github.com/Wonderfall) for his Dockerfile collection. A lot of this image is based on his image, and was only created because wonderfall discontinued maintainership of all his images.
|
||||
|
||||
### Get the image
|
||||
You can either build the docker image yourself:
|
||||
```bash
|
||||
docker build -t docker.jcg.re/searx https://git.jcg.re/jcgruenhage/docker-searx.git
|
||||
```
|
||||
|
||||
or pull a prebuilt image from my docker registry:
|
||||
|
||||
```bash
|
||||
docker pull docker.jcg.re/searx
|
||||
```
|
||||
### Run the container
|
||||
Insecure local instance:
|
||||
|
||||
```bash
|
||||
docker run \
|
||||
--rm \
|
||||
--publish 80:8888 \
|
||||
--env BASE_URL=http://localhost \
|
||||
docker.jcg.re/searx
|
||||
```
|
||||
|
||||
#### Build-time variables
|
||||
- **VERSION** : Searx version
|
||||
|
||||
#### Environment variables
|
||||
- **IMAGE_PROXY** : enables images proxying *(default : False)*
|
||||
- **BASE_URL** : http://domain.tld *(default : False)*
|
||||
|
||||
#### Ports
|
||||
- **8888** (non-tls, so use a reverse proxy)
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec /bin/true
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec /bin/true
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
sed -i -e "s|base_url : False|base_url : ${BASE_URL}|g" \
|
||||
-e "s/image_proxy : False/image_proxy : ${IMAGE_PROXY}/g" \
|
||||
-e "s/ultrasecretkey/$(openssl rand -hex 16)/g" \
|
||||
/usr/local/searx/searx/settings.yml
|
||||
su-exec ${UID}:${GID} python /usr/local/searx/searx/webapp.py
|
Loading…
Reference in New Issue