docekr image in settings

This commit is contained in:
makram89 2022-01-30 15:36:34 +01:00
parent 5ab91ec250
commit 5243b24a5a
2 changed files with 4 additions and 1 deletions

View File

@ -1,11 +1,12 @@
import docker import docker
import hashlib import hashlib
from settings import DOCKER_IMAGE
class DockerManager: class DockerManager:
def __init__(self): def __init__(self):
self.client = docker.from_env() self.client = docker.from_env()
self.image = 'felixlohmeier/openrefine' self.image = DOCKER_IMAGE
def create_new_volume(self, username): def create_new_volume(self, username):
# Hashing username to get volume name # Hashing username to get volume name

View File

@ -139,4 +139,6 @@ AUTH_USER_MODEL = "MUOR.Profile"
AVAILABLE_PORTS_RANGE = (6000, 7000) AVAILABLE_PORTS_RANGE = (6000, 7000)
DOCKER_IMAGE = 'openrefine:latest'