(feat): add Host option
This commit is contained in:
parent
f4a3b87d4f
commit
d5976350eb
1 changed files with 6 additions and 1 deletions
7
Makefile
7
Makefile
|
|
@ -3,11 +3,16 @@ RUN_OPTION=\
|
||||||
-v ${HOME}/.ssh:/home/$(shell id -un)/.ssh \
|
-v ${HOME}/.ssh:/home/$(shell id -un)/.ssh \
|
||||||
-v ${PWD}:/workspace
|
-v ${PWD}:/workspace
|
||||||
|
|
||||||
|
ifdef HOST
|
||||||
|
RUN_OPTION += \
|
||||||
|
network host
|
||||||
|
endif
|
||||||
|
|
||||||
ENV_VARS := GROQ_API_KEY OLLAMA_API_BASE OLLAMA_API_KEY
|
ENV_VARS := GROQ_API_KEY OLLAMA_API_BASE OLLAMA_API_KEY
|
||||||
|
|
||||||
define CHECK_AND_APPEND
|
define CHECK_AND_APPEND
|
||||||
ifneq ($($(1)),)
|
ifneq ($($(1)),)
|
||||||
RUN_OPTION += -e $(1)=$($(1))
|
RUN_OPTION += -e $(1)=$($(1))
|
||||||
endif
|
endif
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue