Update stage_3 to use multi-stack install
Add support for multi-stack installation
Cleanup use of sudo for copying files. Apply docker specific
configuration inside user directory.
Utilize multiple juju controllers utilizing the stack name.
Create stack with no exposed host ports via '-nohostports' for creating
multiple instances of osm (useful in CI)
Add osmclient container for stack: This allows user to run osmclient
inside a container, that matches the release of osm, that has internal
access to all services.
Added options:
--nolxd for CI osm installation
--nojuju for CI osm installation
--nodockerbuild
--nohostports
--nohostclient
-s <stack name>
Change-Id: I4a2c1b09854e61ebb52d83f9f1ecebed8a17674d
Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
diff --git a/docker/osmclient/Dockerfile b/docker/osmclient/Dockerfile
new file mode 100644
index 0000000..a2cd547
--- /dev/null
+++ b/docker/osmclient/Dockerfile
@@ -0,0 +1,21 @@
+FROM ubuntu:16.04
+
+LABEL authors="Michael Marchetti"
+
+RUN apt-get update && apt-get -y install curl software-properties-common
+
+ARG REPOSITORY_BASE=http://osm-download.etsi.org/repository/osm/debian
+ARG RELEASE=ReleaseFOUR-daily
+ARG REPOSITORY_KEY=OSM%20ETSI%20Release%20Key.gpg
+ARG REPOSITORY=testing
+
+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
+
+ENV OSM_SOL005=True
+ENV OSM_HOSTNAME=nbi:9999
+ENV OSM_RO_HOSTNAME=ro:9090