diff options
author | Andrew Gauld <agauld@att.com> | 2020-07-28 16:41:43 +0000 |
---|---|---|
committer | Andrew Gauld <agauld@att.com> | 2020-07-28 16:43:02 +0000 |
commit | 711d4eae913f34e78aa10e8cd511f3b8e43cd54f (patch) | |
tree | e0bf966addd527a3dd9812c6ed54e2ca0a97a10a /mod/onboardingapi/start.sh | |
parent | a1a37bde3365ebf0aaa543b2f10ebdb13bd4af40 (diff) |
Pull JSON schemas at build/test not run time
Change-Id: I4f095a8a80f1c2868319c58bb0e9db916044d067
Issue-ID: DCAEGEN2-2221
Signed-off-by: Andrew Gauld <agauld@att.com>
Diffstat (limited to 'mod/onboardingapi/start.sh')
-rwxr-xr-x | mod/onboardingapi/start.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mod/onboardingapi/start.sh b/mod/onboardingapi/start.sh index a938c98..5fae389 100755 --- a/mod/onboardingapi/start.sh +++ b/mod/onboardingapi/start.sh @@ -9,8 +9,7 @@ fi mkdir -p ~/.config/dcae-cli if [ ! -f ~/.config/dcae-cli/config.json ]; then echo "Creating dcae-cli config" - # TODO: Make this into a variable that gets fed in via docker run - echo "{\"server_url\": \"https://git.onap.org/dcaegen2/platform/plain/mod\", \"user\": \"api\", \"db_url\": \"$PG_CONN\", \"cli_version\": \"2.12.0\", \"path_component_spec\": \"/component-json-schemas/component-specification/dcae-cli-v2/component-spec-schema.json\", \"path_data_format\": \"/component-json-schemas/data-format/dcae-cli-v1/data-format-schema.json\"}" > ~/.config/dcae-cli/config.json + echo "{\"server_url\": \"$SERVER_URL\", \"db_url\": \"$PG_CONN\", \"path_component_spec\": \"$PATH_COMPONENT_SPEC\", \"path_data_format\": \"$PATH_DATA_FORMAT\"}" > ~/.config/dcae-cli/config.json fi dcae_cli http --live |