docekr image in settings
This commit is contained in:
parent
5ab91ec250
commit
5243b24a5a
@ -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
|
||||||
|
@ -139,4 +139,6 @@ AUTH_USER_MODEL = "MUOR.Profile"
|
|||||||
|
|
||||||
AVAILABLE_PORTS_RANGE = (6000, 7000)
|
AVAILABLE_PORTS_RANGE = (6000, 7000)
|
||||||
|
|
||||||
|
DOCKER_IMAGE = 'openrefine:latest'
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user