blob: 9b12cf95044d05ed6dbfbac14de5cc17320a1c06 [file] [log] [blame]
wrider3280e622019-11-05 12:13:28 -05001################################################################################
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
17FROM buildpack-deps:stretch
Zhe Huang493bf0c2020-04-10 11:58:11 -040018RUN apt-get update && apt-get -q -y install debhelper dpkg-dev build-essential rsync curl
wrider3280e622019-11-05 12:13:28 -050019RUN mkdir /tmp/it-dep
20COPY . /tmp/it-dep
21WORKDIR /tmp/it-dep
22
Zhe Huang493bf0c2020-04-10 11:58:11 -040023
24# Verify that the it/dep and the corresponding submodules are synced up
25ARG GH=get_helm.sh
26RUN curl --silent --show-error --connect-timeout 10 --retry 6 -L https://raw.githubusercontent.com/helm/helm/master/scripts/get -o ${GH}
27RUN bash ${GH}
28RUN helm init -c
29RUN ./bin/verify-ric-charts
30
wrider3280e622019-11-05 12:13:28 -050031# building RIC deployment artifacts into a package
32RUN ./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#
41ENTRYPOINT [ "ci/publish.sh" ]