nopaque/daemon/tasks/__init__.py

12 lines
312 B
Python
Raw Normal View History

from config import Config
2020-06-05 12:42:04 +00:00
from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
import docker
config = Config()
config.init_app()
2020-06-05 12:42:04 +00:00
docker_client = docker.from_env()
engine = create_engine(config.SQLALCHEMY_DATABASE_URI)
Session = scoped_session(sessionmaker(bind=engine))