docker
This commit is contained in:
2
Dockerfile.nginx
Normal file
2
Dockerfile.nginx
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
from nginx:alpine
|
||||||
|
copy ./services/nginx/default.conf /etc/nginx/conf.d/default.conf
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
from theiaide/theia-python:latest
|
from theiaide/theia-python:latest
|
||||||
|
RUN wget https://download.docker.com/linux/static/stable/x86_64/docker-20.10.2.tgz && tar -xvf docker-20.10.2.tgz docker/docker && cp docker/docker /usr/bin/
|
||||||
run apt-get update && apt-get -y install libgs-dev
|
run apt-get update && apt-get -y install libgs-dev
|
||||||
|
WORKDIR /home/project
|
||||||
COPY ./requirements.txt .
|
COPY ./requirements.txt .
|
||||||
run pip3 install --upgrade pip && pip3 install -r requirements.txt && pip3 install pytest pylint bandit flake8 black pytest-django six pytest-mock
|
run pip3 install --upgrade pip && pip3 install -r requirements.txt && pip3 install pytest pylint bandit flake8 black pytest-django six pytest-mock
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|||||||
@@ -9,4 +9,10 @@ docker push $REGISTRY/andisdev
|
|||||||
echo "Building SOLR Server Image Solrfet"
|
echo "Building SOLR Server Image Solrfet"
|
||||||
cd services/solr_server
|
cd services/solr_server
|
||||||
docker build -t $REGISTRY/solrfet:latest .
|
docker build -t $REGISTRY/solrfet:latest .
|
||||||
|
docker push $REGISTRY/solrfet
|
||||||
|
cd ../..
|
||||||
|
|
||||||
|
docker build -f Dockerfile.nginx -t $REGISTRY/andisdevnginx:latest .
|
||||||
|
docker push $REGISTRY/andisdevnginx:latest
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,21 +1,7 @@
|
|||||||
version: '3'
|
version: '2'
|
||||||
services:
|
services:
|
||||||
solr:
|
solr:
|
||||||
image: my_fet_solr
|
image: docker.triton2.fet.at/solrfet
|
||||||
build: ./services/solr_server
|
|
||||||
ports:
|
|
||||||
- "8980:8983"
|
|
||||||
volumes:
|
|
||||||
- data:/var/solr
|
|
||||||
command:
|
|
||||||
- solr-precreate
|
|
||||||
- core
|
|
||||||
- /opt/solr/server/solr/configsets/fetconfig
|
|
||||||
solrprotocol:
|
|
||||||
image: my_fet_solr
|
|
||||||
build: ./services/solr_server
|
|
||||||
ports:
|
|
||||||
- "8980:8983"
|
|
||||||
volumes:
|
volumes:
|
||||||
- data:/var/solr
|
- data:/var/solr
|
||||||
command:
|
command:
|
||||||
@@ -23,9 +9,8 @@ services:
|
|||||||
- core
|
- core
|
||||||
- /opt/solr/server/solr/configsets/fetconfig
|
- /opt/solr/server/solr/configsets/fetconfig
|
||||||
etherpadsql:
|
etherpadsql:
|
||||||
image: jbergstroem/mariadb-alpine
|
image: mariadb
|
||||||
environment:
|
environment:
|
||||||
SKIP_INNODB: "no"
|
|
||||||
MYSQL_DATABASE: etherpaddb
|
MYSQL_DATABASE: etherpaddb
|
||||||
MYSQL_USER: user
|
MYSQL_USER: user
|
||||||
MYSQL_PASSWORD: hgu
|
MYSQL_PASSWORD: hgu
|
||||||
@@ -48,28 +33,17 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- etherpadsql
|
- etherpadsql
|
||||||
volumes:
|
volumes:
|
||||||
- ./services/etherpad/APIKEY.txt:/opt/etherpad-lite/APIKEY.txt
|
- /srv/etherpad/APIKEY.txt:/opt/etherpad-lite/APIKEY.txt
|
||||||
ports:
|
|
||||||
- "9101:9001"
|
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
volumes:
|
volumes:
|
||||||
- ./services/nginx/default.conf:/etc/nginx/conf.d/default.conf
|
- ./services/nginx/default.conf:/etc/nginx/conf.d/default.conf
|
||||||
ports:
|
ports:
|
||||||
- "5000:80"
|
- "5000:80"
|
||||||
# bot:
|
|
||||||
# image: bot
|
|
||||||
# build: .
|
|
||||||
# environment:
|
|
||||||
# TARGET: https://andis.2020.fet.at
|
|
||||||
# SOLR_HOST: http://solr:8983
|
|
||||||
# ports:
|
|
||||||
# - "5000:5000"
|
|
||||||
theia:
|
theia:
|
||||||
image: theiaide/theia-python:latest
|
image: docker.triton2.fet.at/andisdev
|
||||||
volumes:
|
|
||||||
- .:/home/project
|
|
||||||
- ../packages:/home/packages
|
|
||||||
volumes:
|
volumes:
|
||||||
data:
|
data:
|
||||||
|
driver: local
|
||||||
ep-mysql-volume:
|
ep-mysql-volume:
|
||||||
|
driver: local
|
||||||
|
|||||||
Reference in New Issue
Block a user