Commit 164bbc57 by Chavee Issariyapat

add make env-snippet

parent 93c3feee
# a helper shell script # a helper shell script
MAKE_VERSION=1.1.3 MAKE_VERSION=1.1.4
define MAKEFUNCTIONCODE define MAKEFUNCTIONCODE
function hasChanges() { function hasChanges() {
...@@ -229,3 +229,11 @@ delete-docker-image: ...@@ -229,3 +229,11 @@ delete-docker-image:
# || true to force exoit code to 0 otherwise if no line matched, make will show some error # || true to force exoit code to 0 otherwise if no line matched, make will show some error
list-docker-image: list-docker-image:
@docker images | grep $(RMI_ARGS) || true @docker images | grep $(RMI_ARGS) || true
env-snippet:
@jq -r '..|select(type=="string") + "="' config/custom-environment-variables.json > _temp_file_.env
@keg -s nexpieconfig _temp_file_.env > /dev/null
@cat env-snippet-nexpieconfig.yaml
@rm _temp_file_.env
@rm nexpieconfig.yaml
@rm env-snippet-nexpieconfig.yaml
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment