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
|
|
|
|
|
2020-08-13 08:48:01 +00:00
|
|
|
# location of "src" directory to use
|
2020-08-11 12:03:00 +00:00
|
|
|
KIWI_ROOT = os.getenv('KIWI_ROOT', ".")
|
2020-08-13 08:48:01 +00:00
|
|
|
# default name of kiwi-config 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
|
|
|
|
|
|
|
|
# text files inside kiwi-config "src" directory
|
2020-08-18 10:34:09 +00:00
|
|
|
HEADER_KIWI_CONF_NAME = f"{KIWI_ROOT}/etc/kiwi_header.yml"
|
|
|
|
DEFAULT_KIWI_CONF_NAME = f"{KIWI_ROOT}/etc/kiwi_default.yml"
|
|
|
|
VERSION_TAG_NAME = f"{KIWI_ROOT}/etc/version_tag"
|
2020-08-18 13:56:58 +00:00
|
|
|
DEFAULT_DOCKER_COMPOSE_NAME = f"{KIWI_ROOT}/etc/docker-compose_default.yml"
|
2020-08-18 15:50:13 +00:00
|
|
|
COMMAND_HELP_TEXT_NAME = f"{KIWI_ROOT}/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
|
|
|
|
IMAGES_DIRECTORY_NAME = f"{KIWI_ROOT}/images"
|
|
|
|
|
|
|
|
|
|
|
|
####################
|
|
|
|
# DOCKER IMAGE NAMES
|
|
|
|
|
|
|
|
# name for auxiliary docker images
|
|
|
|
LOCAL_IMAGES_NAME = 'localhost/kiwi-config/auxiliary'
|
|
|
|
DEFAULT_IMAGE_NAME = 'alpine:latest'
|