blob: afb8a7416533858e2ffbd3ac519c530ab8fa5376 [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
18RUN apt-get update && apt-get -q -y install debhelper dpkg-dev build-essential rsync
19RUN mkdir /tmp/it-dep
20COPY . /tmp/it-dep
21WORKDIR /tmp/it-dep
22
23# building RIC deployment artifacts into a package
24RUN ./bin/package-ric-deployment-tools $(grep tag ./ci/package-tag.yaml | cut -f2 -d':')
25
26# Executing the container "as a binary" will cause the CI publish
27# script to execute. This will take the simple package list generated
28# by the ci_build script and copy the list of packages to the target
29# directory. The target directory is /export by default, but can be
30# overridden from the docker run command line. In either case, the
31# assumption is that the target directory is mounted as a volume.
32#
33ENTRYPOINT [ "ci/publish.sh" ]
34