Skip to content
Snippets Groups Projects
Commit 558bd1aa authored by Phil Höfer's avatar Phil Höfer
Browse files

Merge branch '799-metager-in-docker' into 'development'

Resolve "MetaGer in Docker"

Closes #799

See merge request !1310
parents 5375c95f d5818910
No related branches found
No related tags found
1 merge request!1310Resolve "MetaGer in Docker"
README.md
CHANGELOG.md
docker-compose.yml
Dockerfile
APP_ENV=local APP_ENV=local
APP_KEY=
APP_DEBUG=true APP_DEBUG=true
APP_LOG_LEVEL=debug APP_LOG_LEVEL=debug
APP_KEY=
APP_URL=http://localhost APP_URL=http://localhost
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
BROADCAST_DRIVER=log BROADCAST_DRIVER=log
CACHE_DRIVER=file CACHE_DRIVER=file
SESSION_DRIVER=file SESSION_DRIVER=file
......
FROM debian:buster
RUN apt-get update && apt-get install -y \
composer \
php7.2 \
php-mbstring \
php7.2-xml\
php-zip \
php-gd \
php-sqlite3 \
php-mysql \
php-curl \
redis-server \
sqlite3 \
nodejs \
libpng-dev \
unzip \
npm
RUN npm install gulp -g
COPY . /app
WORKDIR app
RUN mv config/sumas.xml.example config/sumas.xml && mv .env.example .env
RUN composer install --no-plugins --no-scripts
RUN npm install
RUN npm run dev
RUN php artisan key:generate
CMD redis-server --daemonize yes && php artisan serve --host=0.0.0.0
EXPOSE 8000
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<sumas> <sumas>
<!-- Eine ausführliche Beschreibung der verwendeten Attribute gibt es unter: https://gitlab.metager3.de/open-source/MetaGer/wikis/sumas-xml <suma name="mnogosearch" host="mg3.suma-ev.de" skript="/cgi-bin/search.cgi" formData="q=&lt;&lt;QUERY&gt;&gt;&amp;cs=utf-8&amp;ps=20" package="mnogosearch" type="web" port="80" userSelectable="1" displayName="Wikis" outputEncoding="Latin1"/>
<suma <suma name="BASE" host="baseapi.ub.uni-bielefeld.de" skript="/cgi-bin/BaseHttpSearchInterface.fcgi" formData="func=PerformSearch&amp;query=&lt;&lt;QUERY&gt;&gt;" package="BASE" port="80" formDataEn="func=PerformSearch&amp;query=&lt;&lt;QUERY&gt;&gt;" displayName="BASE" userSelectable="1" type="wissenschaft" homepage="http://www.base-search.net/"/>
name="suchmaschine" <suma name="blogsearch" host="blogsuche.suma-ev.de" skript="/blogsearch/xmlout.php" formData="search=&lt;&lt;QUERY&gt;&gt;&amp;length=400&amp;rows=50&amp;category=&lt;&lt;CATEGORY&gt;&gt;" package="blogsearch" port="80" inputEncoding="utf8" displayName="Blogsuche" userSelectable="1" type="andere" engineBoost="0.2" homepage="http://blogsuche.suma-ev.de/blogsearch/index.php"/>
host="www.suchmaschine.de" </sumas>
skript="/suche/"
formData="sprache=de&amp;sortieren=true&amp;queue=&lt;&lt;QUERY&gt;&gt;"
package="suchmaschine"
displayName="Meine Suchmaschine"
homepage="www.suchmaschine.de/welcome"
port="443"
inputEncoding="Latin1"
userSelectable="1"
type="web, nachrichten"
engineBoost="1.2"
additionalHeaders="$#!#$"
disabled="0"
hasSiteSearch="1"
cacheDuration="60"
></suma>
-->
<suma
name="BASE"
host="baseapi.ub.uni-bielefeld.de"
skript="/cgi-bin/BaseHttpSearchInterface.fcgi"
formData="func=PerformSearch&amp;query=&lt;&lt;QUERY&gt;&gt;"
package="BASE"
displayName="BASE"
homepage="http://www.base-search.net/"
port="80"
userSelectable="1"
type="web,wissenschaft"
></suma>
</sumas>
\ No newline at end of file
#!/bin/sh
docker build . -t metager && docker run -p 8000:8000/tcp metager;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment