diff options
author | Jack Lucas <jflos@sonoris.net> | 2021-02-05 12:10:28 -0500 |
---|---|---|
committer | Jack Lucas <jflos@sonoris.net> | 2021-02-05 12:17:08 -0500 |
commit | b65d4c1fc374af0f4b3bb5ea55641efd88f65ab3 (patch) | |
tree | 12870005f11e84889427732d3e2e36d282326c37 /consul-loader-container/Dockerfile | |
parent | 7b6c642e4c7bb77d6029a2c06ef3e66e0e19c7e1 (diff) |
Add yaml load and key delete to consul-loader-container
Enhance Consul loader to:
-- Convert YAML configuration files to JSON before storing the configuration into Consul
-- Provide an option to delete a Consul key so that a component's configuration can be
removed from Consul when the component is undeployed.
Use the ONAP integration team's Python image (integration-python:8.0.0) as base image.
Issue-ID: DCAEGEN2-2616
Issue-ID: DCAEGEN2-2488
Signed-off-by: Jack Lucas <jflos@sonoris.net>
Change-Id: Iaa45a03e805f64e12881f142de2fa206fb816175
Diffstat (limited to 'consul-loader-container/Dockerfile')
-rw-r--r-- | consul-loader-container/Dockerfile | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/consul-loader-container/Dockerfile b/consul-loader-container/Dockerfile index 868b41f..741d5f3 100644 --- a/consul-loader-container/Dockerfile +++ b/consul-loader-container/Dockerfile @@ -2,6 +2,7 @@ # org.onap.dcae # ================================================================================ # Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. +# Copyright (c) 2021 J. F. Lucas. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -16,8 +17,14 @@ # limitations under the License. # ============LICENSE_END========================================================= # -FROM ubuntu:16.04 -RUN apt-get update && apt-get install -y curl && mkdir -p /opt/app -COPY *.sh /opt/app/ +FROM nexus3.onap.org:10001/onap/integration-python:8.0.0 +USER root +RUN apk update \ + && apk add bash \ + && apk add curl \ + && pip install --upgrade pip \ + && pip install pyyaml +COPY *.sh *.py /opt/app/ WORKDIR /opt/app ENTRYPOINT ["/opt/app/consul_store.sh"] +USER $user
\ No newline at end of file |