Fix configuration file permission in a1pms
[it/dep.git] / ci / Dockerfile-package
1 ################################################################################
2 #   Copyright (c) 2019 AT&T Intellectual Property.                             #
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 ################################################################################
16
17 FROM buildpack-deps:stretch
18 RUN apt-get update && apt-get -q -y install debhelper dpkg-dev build-essential rsync curl
19 RUN mkdir /tmp/it-dep
20 COPY . /tmp/it-dep
21 WORKDIR /tmp/it-dep
22
23
24 # Verify that the it/dep and the corresponding submodules are synced up
25 ARG GH=get_helm.sh
26 RUN curl --silent --show-error --connect-timeout 10 --retry 6 -L https://raw.githubusercontent.com/helm/helm/master/scripts/get -o ${GH}
27 RUN bash ${GH}
28 RUN helm init -c
29 RUN ./bin/verify-ric-charts
30
31 # building RIC deployment artifacts into a package
32 RUN ./bin/package-ric-deployment-tools $(grep tag ./ci/package-tag.yaml | cut -f2 -d':')
33
34 # Executing the container "as a binary" will cause the CI publish
35 # script to execute.  This will take the simple package list generated
36 # by the ci_build script and copy the list of packages to the target
37 # directory.  The target directory is /export by default, but can be
38 # overridden from the docker run command line. In either case, the
39 # assumption is that the target directory is mounted as a volume.
40 #
41 ENTRYPOINT [ "ci/publish.sh" ]