2020-08-12 15:46:50 +00:00
|
|
|
# system
|
2020-08-11 12:03:00 +00:00
|
|
|
import os
|
|
|
|
|
2020-08-18 10:24:55 +00:00
|
|
|
#############
|
|
|
|
# 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")
|
2020-08-18 10:24:55 +00:00
|
|
|
|
|
|
|
############
|
|
|
|
# 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"
|
2020-08-18 10:24:55 +00:00
|
|
|
|
|
|
|
# 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"
|
2020-08-18 10:24:55 +00:00
|
|
|
|
|
|
|
####################
|
|
|
|
# DOCKER IMAGE NAMES
|
|
|
|
|
|
|
|
# name for auxiliary docker images
|
2020-08-26 11:56:51 +00:00
|
|
|
LOCAL_IMAGES_NAME = 'localhost/kiwi-scp/auxiliary'
|
2020-08-18 10:24:55 +00:00
|
|
|
DEFAULT_IMAGE_NAME = 'alpine:latest'
|