wrider | b1cc45a | 2019-11-19 10:44:52 -0500 | [diff] [blame] | 1 | ####################################################################### |
dave kormann | aa7f725 | 2019-04-20 04:58:17 -0400 | [diff] [blame] | 2 | # Copyright (c) 2019 AT&T Intellectual Property. |
| 3 | # Copyright (c) 2019 Nokia. |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
wrider | b1cc45a | 2019-11-19 10:44:52 -0500 | [diff] [blame] | 16 | ######################################################################### |
dave kormann | aa7f725 | 2019-04-20 04:58:17 -0400 | [diff] [blame] | 17 | FROM alpine |
| 18 | |
| 19 | MAINTAINER "RIC" |
| 20 | |
| 21 | LABEL name="Generic initcontainer image for RIC Platform components" |
| 22 | |
| 23 | RUN apk update |
| 24 | |
| 25 | # iproute2: required for e2 termination |
| 26 | RUN apk add iproute2 |
| 27 | # kubectl: required for xapp/ricplt helm installers |
| 28 | RUN apk add openssl |
| 29 | # kubectl: required for xapp/ricplt helm installers |
| 30 | ADD https://storage.googleapis.com/kubernetes-release/release/v1.14.1/bin/linux/amd64/kubectl /bin/kubectl |
| 31 | RUN chmod +x /bin/kubectl |
| 32 | |
| 33 | COPY bin/ricplt-init.sh /ricplt-init.sh |
| 34 | |
| 35 | # |
| 36 | CMD /ricplt-init.sh |