Do not create `/data` folder manually, but specify it in okteto stack manifest

pull/1/head
hikari.ftg 2022-04-01 13:19:55 +00:00
parent c9e527fad7
commit d123e3275f
3 changed files with 6 additions and 11 deletions

View File

@ -71,9 +71,6 @@ DATA_DIR = (
else "/data"
)
if "OKTETO" in os.environ and not os.path.isdir("/data"):
os.mkdir("/data", mode=0o755)
LOADED_MODULES_DIR = os.path.join(DATA_DIR, "loaded_modules")
if not os.path.isdir(LOADED_MODULES_DIR):

View File

@ -67,9 +67,6 @@ else:
is_okteto = "OKTETO" in os.environ
if is_okteto and not os.path.isdir("/data"):
os.mkdir("/data", mode=0o755)
DATA_DIR = (
os.path.normpath(os.path.join(utils.get_base_dir(), ".."))
if not is_okteto

View File

@ -9,8 +9,9 @@ services:
resources:
cpu: 900m
memory: 2Gi
environment:
SESSION: $SESSION
API_ID: $API_ID
API_HASH: $API_HASH
CLOUD_PASS: $CLOUD_PASS
volumes:
- worker:/data
volumes:
worker:
size: 1Gi