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