1 ################################################################################
2 # Copyright (c) 2019 AT&T Intellectual Property. #
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 #
8 # http://www.apache.org/licenses/LICENSE-2.0 #
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 ################################################################################
17 FROM buildpack-deps:stretch
18 RUN apt-get update && apt-get -q -y install debhelper dpkg-dev build-essential rsync curl
24 # Verify that the it/dep and the corresponding submodules are synced up
26 RUN curl --silent --show-error --connect-timeout 10 --retry 6 -L https://raw.githubusercontent.com/helm/helm/master/scripts/get -o ${GH}
29 RUN ./bin/verify-ric-charts
31 # building RIC deployment artifacts into a package
32 RUN ./bin/package-ric-deployment-tools $(grep tag ./ci/package-tag.yaml | cut -f2 -d':')
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.
41 ENTRYPOINT [ "ci/publish.sh" ]