1
0
Fork 0
mirror of https://github.com/yavook/kiwi-scp.git synced 2024-11-25 05:53:00 +00:00
kiwi-scp/kiwi_scp/_constants.py

34 lines
997 B
Python
Raw Normal View History

2020-08-12 15:46:50 +00:00
# system
2020-08-11 12:03:00 +00:00
import os
#############
# ENVIRONMENT
2021-09-28 17:43:12 +00:00
# location of "kiwi_scp" module
KIWI_ROOT = os.path.dirname(__file__)
2020-08-26 11:56:51 +00:00
# default name of kiwi-scp file
2020-08-11 12:03:00 +00:00
KIWI_CONF_NAME = os.getenv('KIWI_CONF_NAME', "kiwi.yml")
############
# FILE NAMES
2020-08-26 11:56:51 +00:00
# text files inside kiwi-scp "src" directory
2021-09-28 17:43:12 +00:00
HEADER_KIWI_CONF_NAME = f"{KIWI_ROOT}/data/etc/kiwi_header.yml"
DEFAULT_KIWI_CONF_NAME = f"{KIWI_ROOT}/data/etc/kiwi_default.yml"
VERSION_TAG_NAME = f"{KIWI_ROOT}/data/etc/version_tag"
DEFAULT_DOCKER_COMPOSE_NAME = f"{KIWI_ROOT}/data/etc/docker-compose_default.yml"
KIWI_HELP_TEXT_NAME = f"{KIWI_ROOT}/data/etc/kiwi_help.txt"
COMMAND_HELP_TEXT_NAME = f"{KIWI_ROOT}/data/etc/command_help.txt"
# special config directory in projects
CONF_DIRECTORY_NAME = 'conf'
# location for auxiliary Dockerfiles
2021-09-28 17:43:12 +00:00
IMAGES_DIRECTORY_NAME = f"{KIWI_ROOT}/data/images"
####################
# DOCKER IMAGE NAMES
# name for auxiliary docker images
2020-08-26 11:56:51 +00:00
LOCAL_IMAGES_NAME = 'localhost/kiwi-scp/auxiliary'
DEFAULT_IMAGE_NAME = 'alpine:latest'