summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorsandovalfr <frank.sandoval@oamtechnologies.com>2019-03-04 09:31:59 -0500
committersandovalfr <frank.sandoval@oamtechnologies.com>2019-03-21 10:57:48 -0600
commitefad46124485f1572765fad05284d8a070fb9277 (patch)
tree39f8e035b70244daf1c943674a6158e337e85d99 /README.md
parent4f1d5968c50f43d7443d4ad7fcfb49d019fd5cde (diff)
small, multi-platform docker images
Issue-ID: INT-907 Issue-ID: INT-908 Issue-ID: INT-909 Change-Id: I2df861f0098588ec9b394b501af2de6f7559c213 Signed-off-by: sandovalfr <frank.sandoval@oamtechnologies.com>
Diffstat (limited to 'README.md')
-rw-r--r--README.md40
1 files changed, 40 insertions, 0 deletions
diff --git a/README.md b/README.md
index 97b35af8..56d29bb4 100644
--- a/README.md
+++ b/README.md
@@ -144,4 +144,44 @@ MariaDB - 10.2.14
Self Signed SSL certificates
+## This section describes how to build and test datarouter containers on a host such as
+a laptop or remote server.
+
+- Install git, maven, docker
+ - See https://wiki.onap.org/display/DW/Setting+Up+Your+Development+Environment
+ - See https://docs.docker.com/install/
+
+### Build
+- in terminal
+> git clone https://gerrit.onap.org/r/dmaap/datarouter
+> cd datarouter
+> mvn clean install -DskipTests -Pdocker
+> docker images
+REPOSITORY TAG IMAGE ID CREATED SIZE
+nexus3.onap.org:10003/onap/dmaap/datarouter-subscriber 2.0.0-SNAPSHOT 0dfc99a7612c 13 seconds ago 99.2MB
+nexus3.onap.org:10003/onap/dmaap/datarouter-subscriber latest 0dfc99a7612c 13 seconds ago 99.2MB
+nexus3.onap.org:10003/onap/dmaap/datarouter-node 2.0.0-SNAPSHOT 6573f4bdc310 27 seconds ago 116MB
+nexus3.onap.org:10003/onap/dmaap/datarouter-node latest 6573f4bdc310 27 seconds ago 116MB
+nexus3.onap.org:10003/onap/dmaap/datarouter-prov 2.0.0-SNAPSHOT 9e4148737c18 47 seconds ago 148MB
+nexus3.onap.org:10003/onap/dmaap/datarouter-prov latest 9e4148737c18 47 seconds ago 148MB
+openjdk 8-jre-alpine 1b46cc2ba839 3 weeks ago 85MB
+nexus3.onap.org:10001/openjdk 8-jre-alpine 1b46cc2ba839 3 weeks ago 85MB
+
+### Test
+> cd datarouter-docker-compose/src/main/resources
+- edit docker-compose, change nexus 0001 (remote pull repo) to 0003 (local build)
+> docker-compose up
+
+- terminal 2
+> docker container ls -a
+CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
+c193317ec860 nexus3.onap.org:10003/onap/dmaap/datarouter-node "sh startup.sh" About a minute ago Up About a minute 0.0.0.0:9090->8080/tcp, 0.0.0.0:9443->8443/tcp datarouter-node
+e8dab741550e nexus3.onap.org:10003/onap/dmaap/datarouter-prov "sh startup.sh" About a minute ago Up About a minute (healthy) 0.0.0.0:8080->8080/tcp, 0.0.0.0:8443->8443/tcp, 0.0.0.0:443->8443/tcp datarouter-prov
+cf0e996f0f31 nexus3.onap.org:10003/onap/dmaap/datarouter-subscriber "sh startup.sh" About a minute ago Up About a minute 8080/tcp, 0.0.0.0:7070->7070/tcp, 8443/tcp subscriber-node
+73affb6364f9 mariadb:10.2.14 "docker-entrypoint.s…" About a minute ago Up About a minute (healthy) 0.0.0.0:3306->3306/tcp mariadb
+
+> docker exec -it datarouter-node /bin/sh
+ # curl http://dmaap-dr-prov:8080/internal/prov
+> docker exec -it datarouter-prov /bin/sh
+ # curl -v -X POST -H "Content-Type : application/vnd.dmaap-dr.feed" -H "X-DMAAP-DR-ON-BEHALF-OF: rs873m" --data-ascii @/opt/app/datartr/addFeed3.txt --post301 --location-trusted -k https://dmaap-dr-prov:8443