TT#17642 docker: follow policy to include NGCP repository

Change-Id: I974ed71b380aa85ef8a1008acaa34493d255ed29
changes/53/14153/1
Victor Seva 8 years ago
parent 4723e57a96
commit a5cd687e68

@ -5,10 +5,11 @@ FROM docker.mgm.sipwise.com/sipwise-jessie:latest
# is updated with the current date. It will force refresh of all
# of the base images and things like `apt-get update` won't be using
# old cached versions when the Dockerfile is built.
ENV REFRESHED_AT 2016-12-2
ENV REFRESHED_AT 2017-06-30
# TODO - the release-trunk-jessie is too dynamic yet, though required for lua-unit backport
RUN echo "deb https://deb.sipwise.com/autobuild/ release-trunk-jessie main" >>/etc/apt/sources.list
# files that get-code generates
COPY t/sources.list.d/builddeps.list /etc/apt/sources.list.d/
COPY t/sources.list.d/preferences /etc/apt/preferences.d/
RUN apt-get update && apt-get install --assume-yes \
lua5.1 lua-unit lua-lemock lua-logging lua-argparse python-xmlrunner
@ -20,13 +21,21 @@ WORKDIR /code/
################################################################################
# Instructions for usage
# ----------------------
# When you want to build the base image from scratch (jump to the next section if you don't want to build yourself!):
# % docker build --tag="lua-ngcp-kamailio-jessie" .
# % docker run --rm -i -t -v $(pwd)/..:/code:rw lua-ngcp-kamailio-jessie:latest bash
# When you want to build the base image from scratch
# jump to the next section if you don't want to build yourself!:
#
# you need to put the proper NGCP sources at t/sources.list.d/builddeps.list
# for instance, trunk:
# echo "deb https://deb.sipwise.com/autobuild/ release-trunk-jessie main" > /
# t/sources.list.d/builddeps.list
#
# % docker build --tag="lua-ngcp-kamailio-jessie" -f t/Dockerfile .
# % docker run --rm -i -t -v $(pwd):/code:rw lua-ngcp-kamailio-jessie:latest bash
#
# Use the existing docker image:
# % docker pull docker.mgm.sipwise.com/lua-ngcp-kamailio-jessie
# % docker run --rm -i -t -v $(pwd)/..:/code:rw docker.mgm.sipwise.com/lua-ngcp-kamailio-jessie:latest bash
# NOTE: run the following command from root folder of git repository:
# % docker run --rm -i -t -v $(pwd):/code:rw docker.mgm.sipwise.com/lua-ngcp-kamailio-jessie:latest bash
#
# Inside docker (the command is in history, just press UP button):
# ./t/testrunner

Loading…
Cancel
Save