-
Notifications
You must be signed in to change notification settings - Fork 3
/
.makerc
24 lines (18 loc) · 1.63 KB
/
.makerc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Different variable action are done here so they'd be easier to use later
ROOT_DIR :=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
# Project logo in ASCII
LOGO :=ICBfX19fXyAgICAgICBfX19fX19fICAgICAgIF9fX19fICBfICAgIF8gXyAgIF9fX19fX18KIC8gX19fX3wgICAvXHxfXyAgIF9ffC9cICAgfCAgX18gXHwgfCAgfCB8IHwgfF9fICAgX198CnwgfCAgICAgICAvICBcICB8IHwgIC8gIFwgIHwgfF9fKSB8IHwgIHwgfCB8ICAgIHwgfAp8IHwgICAgICAvIC9cIFwgfCB8IC8gL1wgXCB8ICBfX18vfCB8ICB8IHwgfCAgICB8IHwKfCB8X19fXyAvIF9fX18gXHwgfC8gX19fXyBcfCB8ICAgIHwgfF9ffCB8IHxfX19ffCB8CiBcX19fX18vXy8gICAgXF9cXy9fLyAgICBcX1xffCAgICAgXF9fX18vfF9fX19fX3xffAoKICAgICAgUG93ZXJlZCBieTogQ2xhcmlmaWVkIFNlY3VyaXR5CiAgICAgIGh0dHBzOi8vZ2l0aHViLmNvbS9DbGFyaWZpZWRTZWN1cml0eS9jYXRhcHVsdAoK
IMAGE_FULL :=${MAKEVAR_CONTAINER_REGISTRY}/${MAKEVAR_IMAGE_NAME}:${MAKEVAR_CATAPULT_VERSION}
CONTAINER_PROJECT_NAME :=$(shell echo $(MAKEVAR_COMPOSE_PROJECT_NAME) | tr '[:upper:]' '[:lower:]')
CONTAINER_USER_ID :=$(or ${CONTAINER_USER_ID},$(shell id -u) )
CONTAINER_GROUP_ID :=$(or ${CONTAINER_GROUP_ID},$(shell id -u) )
CONTAINER_USER_NAME :=$(or ${CONTAINER_USER_NAME},${USER} )
CONTAINER_GROUP_NAME :=$(or ${CONTAINER_GROUP_NAME},${USER} )
CONTAINER_ENTRYPOINT :=zsh
CONTAINER_NAME :=${CONTAINER_PROJECT_NAME}-${CONTAINER_USER_NAME}
CONTAINER_HOSTNAME :=${IMAGE_NAME}-${CONTAINER_USER_NAME}
# Default for MacOS that doesn't have a DISPLAY env var
DISPLAY :=$(or ${DISPLAY},0.0 )
# Default for MacOS that doesn't have a XDG_SESSION_TYPE env var
XDG_SESSION_TYPE :=$(or ${XDG_SESSION_TYPE},wayland )
BUILD_ARGS := --build-arg CONTAINER_USER_ID=${CONTAINER_USER_ID} --build-arg CONTAINER_GROUP_ID=${CONTAINER_GROUP_ID} --build-arg TZ=${MAKEVAR_TZ}