sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 1 | ######### |
| 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 Mazuruk | 3ae776d | 2021-02-17 21:36:03 +0100 | [diff] [blame] | 7 | # Modifications Copyright (C) 2021 Samsung Electronics. All rights reserved. |
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 8 | # =========================================================================== |
| 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 Mazuruk | 3ae776d | 2021-02-17 21:36:03 +0100 | [diff] [blame] | 22 | FROM nexus3.onap.org:10001/onap/integration-java11:8.0.0 |
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 23 | |
| 24 | COPY /opt /opt |
| 25 | |
efiacor | e0d6e76 | 2020-08-26 15:14:21 +0100 | [diff] [blame] | 26 | ARG user=onap |
| 27 | ARG group=onap |
| 28 | |
Alexander Mazuruk | 3ae776d | 2021-02-17 21:36:03 +0100 | [diff] [blame] | 29 | USER root |
| 30 | RUN apk add --no-cache curl |
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 31 | |
| 32 | EXPOSE 8080 8443 |
| 33 | |
| 34 | WORKDIR /opt |
| 35 | RUN chmod 0700 startup.sh |
efiacor | e0d6e76 | 2020-08-26 15:14:21 +0100 | [diff] [blame] | 36 | |
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 37 | ENTRYPOINT ["sh", "startup.sh"] |
edepaul | b4350f9 | 2019-04-01 16:41:53 +0000 | [diff] [blame] | 38 | |
Alexander Mazuruk | 3ae776d | 2021-02-17 21:36:03 +0100 | [diff] [blame] | 39 | # onap user and group already avaliable in base img |
| 40 | RUN chown -R $user:$group /opt/ /var/log |
edepaul | b4350f9 | 2019-04-01 16:41:53 +0000 | [diff] [blame] | 41 | |
Alexander Mazuruk | 3ae776d | 2021-02-17 21:36:03 +0100 | [diff] [blame] | 42 | USER $user |