Code Review
/
dmaap
/
buscontroller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[DMAAP-BC] Avoid Creating duplicate DR Publisher, Subscriber
[dmaap/buscontroller.git]
/
dbc-client
/
src
/
main
/
resources
/
Dockerfile
diff --git
a/dbc-client/src/main/resources/Dockerfile
b/dbc-client/src/main/resources/Dockerfile
index
1e49e42
..
e63ce9d
100644
(file)
--- 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.
# ===========================================================================
# 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.
# ===========================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@
-26,12
+27,23
@@
COPY /opt /opt
WORKDIR /opt/app/dbc-client
WORKDIR /opt/app/dbc-client
-#RUN apk add --no-cache curl
+# Install AAF CA certificate
+RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
+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
-RUN chmod +x /opt/app/dbc-client/misc/cert-client-init.sh && \
+# Install curl & openssl
+RUN apk add --no-cache curl openssl gettext jq
+
+RUN mkdir -p /opt/app/osaaf/local && \
chmod +x /opt/app/dbc-client/bin/* && \
mkdir /opt/app/dbc-client/logs
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 onap -G onap \
+ && chown -R onap:onap /opt/
+
+USER onap
-ENTRYPOINT ["sh", "./bin/dbc-client"
, "deploy"
]
+ENTRYPOINT ["sh", "./bin/dbc-client"
]