Add dockerfile for MDG's
- Added option to installer to use specfic docker build tag
Change-Id: Ia6cf6316c6fb84a18ecdbaf98747a95c20ce2f0b
Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
diff --git a/docker/osmclient/Dockerfile b/docker/osmclient/Dockerfile
index a2cd547..b8e7686 100644
--- a/docker/osmclient/Dockerfile
+++ b/docker/osmclient/Dockerfile
@@ -4,6 +4,10 @@
RUN apt-get update && apt-get -y install curl software-properties-common
+RUN apt-get update && apt-get -y install python \
+ libcurl4-gnutls-dev libgnutls-dev iputils-ping python-pip
+RUN pip install python-magic pytest
+
ARG REPOSITORY_BASE=http://osm-download.etsi.org/repository/osm/debian
ARG RELEASE=ReleaseFOUR-daily
ARG REPOSITORY_KEY=OSM%20ETSI%20Release%20Key.gpg
@@ -12,9 +16,10 @@
RUN curl ${REPOSITORY_BASE}/${RELEASE}/${REPOSITORY_KEY} | apt-key add -
RUN add-apt-repository -y "deb ${REPOSITORY_BASE}/${RELEASE} ${REPOSITORY} devops osmclient" && apt update
-RUN apt-get update && apt-get -y install python \
- libcurl4-gnutls-dev libgnutls-dev osm-devops python-osmclient iputils-ping python-pip
-RUN pip install python-magic pytest
+ARG OSMCLIENT_VERSION
+ARG DEVOPS_VERSION
+
+RUN apt-get update && apt-get -y install osm-devops${DEVOPS_VERSION} python-osmclient${OSMCLIENT_VERSION}
ENV OSM_SOL005=True
ENV OSM_HOSTNAME=nbi:9999