diff options
author | efiacor <fiachra.corcoran@est.tech> | 2021-04-08 16:40:06 +0100 |
---|---|---|
committer | efiacor <fiachra.corcoran@est.tech> | 2021-04-21 13:49:22 +0100 |
commit | 71d3d0925874247de5e657821638b1c08360f571 (patch) | |
tree | 91bcca2c8bd53c3ee54269c3101538cba70fa588 /dbc-client/src/main/resources/Dockerfile | |
parent | 20221353bdb213a1f143a132d819d4e0810e3794 (diff) |
[DMAAP-BC] Consolidate bus controller repos
Migrate BC CSITs to the repo
Fix documentation
Signed-off-by: efiacor <fiachra.corcoran@est.tech>
Change-Id: I874ed61be1b61187e233e9fd0937f6658f0ec0f0
Issue-ID: DMAAP-1544
Diffstat (limited to 'dbc-client/src/main/resources/Dockerfile')
-rw-r--r-- | dbc-client/src/main/resources/Dockerfile | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/dbc-client/src/main/resources/Dockerfile b/dbc-client/src/main/resources/Dockerfile index 85f9426..9263e80 100644 --- a/dbc-client/src/main/resources/Dockerfile +++ b/dbc-client/src/main/resources/Dockerfile @@ -4,6 +4,7 @@ # =========================================================================== # Copyright © 2017 AT&T Intellectual Property. All rights reserved. # Modifications Copyright (C) 2018 Nokia. All rights reserved. +# Modifications copyright (C) 2021 Nordix Foundation.. # =========================================================================== # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -32,24 +33,17 @@ RUN mkdir -p /usr/local/share/ca-certificates && \ mv misc/aaf-ca.crt /usr/local/share/ca-certificates/aaf-ca.crt RUN update-ca-certificates -# Install curl -RUN apk add --no-cache curl +# Install curl & openssl +RUN apk add --no-cache curl openssl -# Install client certs for curl and openssl -RUN apk add --no-cache openssl -RUN mkdir -p /opt/app/osaaf/local && \ - mv etc/org.onap.dmaap-bc.p12 /opt/app/osaaf/local && \ - mv etc/*.pem /opt/app/osaaf/local - -RUN chmod +x /opt/app/dbc-client/bin/* && \ +RUN mkdir -p /opt/app/osaaf/local && \ + chmod +x /opt/app/dbc-client/bin/* && \ mkdir /opt/app/dbc-client/logs -VOLUME /opt/app/dbc-client/log - RUN addgroup -S -g 1001 onap \ - && adduser -S -u 1000 dbc -G onap \ - && chown -R dbc:onap /opt/ + && adduser -S -u 1000 onap -G onap \ + && chown -R onap:onap /opt/ -USER dbc +USER onap ENTRYPOINT ["sh", "./bin/dbc-client" ] |