blob: 7bc92c837e65bd7c31d299910096d101bd648ed7 [file] [log] [blame]
sandovalfrefad4612019-03-04 09:31:59 -05001#########
2# ============LICENSE_START====================================================
3# org.onap.dmaap
4# ===========================================================================
5# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6# Modifications Copyright (C) 2018 Nokia. All rights reserved.
Alexander Mazuruk3ae776d2021-02-17 21:36:03 +01007# Modifications Copyright (C) 2021 Samsung Electronics. All rights reserved.
sandovalfrefad4612019-03-04 09:31:59 -05008# ===========================================================================
9# Licensed under the Apache License, Version 2.0 (the "License");
10# you may not use this file except in compliance with the License.
11# You may obtain a copy of the License at
12#
13# http://www.apache.org/licenses/LICENSE-2.0
14#
15# Unless required by applicable law or agreed to in writing, software
16# distributed under the License is distributed on an "AS IS" BASIS,
17# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18# See the License for the specific language governing permissions and
19# limitations under the License.
20# ============LICENSE_END====================================================
21#
Alexander Mazuruk3ae776d2021-02-17 21:36:03 +010022FROM nexus3.onap.org:10001/onap/integration-java11:8.0.0
sandovalfrefad4612019-03-04 09:31:59 -050023
24COPY /opt /opt
25
efiacore0d6e762020-08-26 15:14:21 +010026ARG user=onap
27ARG group=onap
28
Alexander Mazuruk3ae776d2021-02-17 21:36:03 +010029USER root
30RUN apk add --no-cache curl
sandovalfrefad4612019-03-04 09:31:59 -050031
32EXPOSE 8080 8443
33
34WORKDIR /opt
35RUN chmod 0700 startup.sh
efiacore0d6e762020-08-26 15:14:21 +010036
sandovalfrefad4612019-03-04 09:31:59 -050037ENTRYPOINT ["sh", "startup.sh"]
edepaulb4350f92019-04-01 16:41:53 +000038
Alexander Mazuruk3ae776d2021-02-17 21:36:03 +010039# onap user and group already avaliable in base img
40RUN chown -R $user:$group /opt/ /var/log
edepaulb4350f92019-04-01 16:41:53 +000041
Alexander Mazuruk3ae776d2021-02-17 21:36:03 +010042USER $user