Unverified Commit de554e97 authored by Volodymyr SAVCHENKO's avatar Volodymyr SAVCHENKO
Browse files

better setup configure

parent 8edb426d
......@@ -6,12 +6,15 @@ mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
current_dir := $(notdir $(patsubst %/,%,$(dir $(mkfile_path))))
#current_version := $(shell cd $(current_dir); git describe --tags)
install:
install: autocomplete.bash
install -D -m 0755 -v make-functions.sh ${HOME}/.local/bin/cc-cli
install -D -m 0755 -v autocomplete.bash ${HOME}/.bash_completion.d/cc-cli.bash
install -D -m 0400 -v README.md ${HOME}/.local/share/doc/cc-cli.md
< $(HOME)/.bash_completion grep cc-cli.bash || echo 'source $$HOME/.bash_completion.d/cc-cli.bash' >> $(HOME)/.bash_completion
autocomplete.bash:
< autocomplete.bash.template sed 's/%CLI_SCRIPT_NAME%/cc-cli/g' > autocomplete.bash
test:
./actions.sh test-all
......
......@@ -71,7 +71,8 @@ fi
PORT=8998
DOCKER_REGISTRY=admin.reproducible.online
DOCKER_REGISTRY=volodymyrsavchenko
#DOCKER_REGISTRY=admin.reproducible.online
#mkfile_path = $(abspath $(lastword $(MAKEFILE_LIST)))
......@@ -410,6 +411,22 @@ function submit-all-cases() {
done
}
function configure-reana() {
reana-client secrets-add --env MINIO_KEY=${MINIO_KEY:?this should be set}
reana-client secrets-add --env MINIO_URL=${MINIO_URL:?this should be set}
reana-client secrets-list
}
function run-reana() {
inputs=${1:?}
cp -v $inputs inputs.yaml
name=$( oda-cc get metadata.source_short_name unnamed )
reana-client create -f reana.yaml --name $name
reana-client start --workflow $name
}
$@
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