mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 02:24:20 +00:00
Merge branch 'development' of gitlab.ub.uni-bielefeld.de:sfb1288inf/opaque into development
This commit is contained in:
commit
3b57211da9
18
Dockerfile
Normal file
18
Dockerfile
Normal file
@ -0,0 +1,18 @@
|
||||
# pull official base image
|
||||
FROM python:3.6.9
|
||||
|
||||
# set environment varibles
|
||||
ENV PYTHONDONTWRITEBYTECODE 1
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
|
||||
# set work directory
|
||||
WORKDIR /opaque
|
||||
|
||||
# Copy the current directory contents into the container at /daemon
|
||||
COPY . /opaque
|
||||
|
||||
# Install requirements
|
||||
RUN pip install --trusted-host pypi.python.org -r requirements.txt
|
||||
|
||||
# set permissions for entrypoint
|
||||
RUN chmod a+x flask-entrypoint.sh
|
@ -5,14 +5,6 @@ basedir = os.path.abspath(os.path.dirname(__file__))
|
||||
|
||||
|
||||
class Config:
|
||||
JOBS = [
|
||||
{
|
||||
'id': 'checkout_jobs',
|
||||
'func': 'app.scheduler_functions:checkout_jobs',
|
||||
'seconds': 3,
|
||||
'trigger': 'interval'
|
||||
}
|
||||
]
|
||||
MAIL_SERVER = os.environ.get('MAIL_SERVER')
|
||||
MAIL_PORT = int(os.environ.get('MAIL_PORT'))
|
||||
MAIL_USE_TLS = os.environ.get('MAIL_USE_TLS').lower() == 'true'
|
||||
|
14
docker-compose.yml
Normal file
14
docker-compose.yml
Normal file
@ -0,0 +1,14 @@
|
||||
version: '3.7'
|
||||
|
||||
services:
|
||||
web:
|
||||
build: .
|
||||
container_name: web_flask_opaque
|
||||
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque
|
||||
volumes:
|
||||
- .:/opaque
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- 5000:5000
|
||||
command: bash flask-entrypoint.sh
|
3
flask-entrypoint.sh
Normal file
3
flask-entrypoint.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash -x
|
||||
|
||||
python opaque.py
|
Loading…
Reference in New Issue
Block a user