aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlj1412 <lji@research.att.com>2017-02-14 14:53:16 +0000
committerlj1412 <lji@research.att.com>2017-02-14 14:53:18 +0000
commite9b229cb624583656ebb2d684d2ad22090e864e4 (patch)
treecd48fac2a9cb0921ea42aa99a6c9747ac8c93459
parentf44aca93026671e33cac8ff73ebf4e989a9b48a9 (diff)
Init dcae.demo.startup.controller
Change-Id: Id530323e70e469672b5efc4fd72778e941384b16 Signed-off-by: lj1412 <lji@research.att.com>
-rw-r--r--.gitreview4
-rw-r--r--.project11
-rw-r--r--LICENSE.txt22
-rw-r--r--Makefile11
-rw-r--r--README.md92
-rw-r--r--bash.setup.sh8
-rw-r--r--docker-compose.yml9
-rw-r--r--init.sh16
8 files changed, 173 insertions, 0 deletions
diff --git a/.gitreview b/.gitreview
new file mode 100644
index 0000000..0d96d1d
--- /dev/null
+++ b/.gitreview
@@ -0,0 +1,4 @@
+[gerrit]
+host=gerrit.openecomp.org
+port=29418
+project=dcae/demo/startup/controller.git
diff --git a/.project b/.project
new file mode 100644
index 0000000..5693add
--- /dev/null
+++ b/.project
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>dcae-startup-vm-controller</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ </buildSpec>
+ <natures>
+ </natures>
+</projectDescription>
diff --git a/LICENSE.txt b/LICENSE.txt
new file mode 100644
index 0000000..30471b5
--- /dev/null
+++ b/LICENSE.txt
@@ -0,0 +1,22 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+ECOMP and OpenECOMP are trademarks and service marks of AT&T Intellectual Property.
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..fd07609
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,11 @@
+
+
+up:
+ docker login -u NEXUS-USER -p NEXUS-PASSWORD DOCKER-REGISTRY
+ docker pull DOCKER-REGISTRY/dcae-controller:DCAE-VERSION
+ /opt/docker/docker-compose up -d
+down:
+ docker exec `docker ps | grep dcae-controller: | cut -c1-12` /opt/app/dcae-controller-platform-server/bin/controller-shutdown.sh
+ /opt/docker/docker-compose down
+enter:
+ docker exec -it `docker ps | grep dcae-controller: | cut -c1-12` bash
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..3cd0973
--- /dev/null
+++ b/README.md
@@ -0,0 +1,92 @@
+This project hosts the configurations and start-up scripts for instantiating the Open eCOMP DCAE Controller
+
+To deploy an Open eCOMP DCAE Controller to a host:
+
+Prepare the docker host VM, by installing: git, docker, docker-compose. Then run the following commands with variables substituted as require.
+
+
+ apt-get install -y make
+ cd /opt
+ git clone https://__gitlab_username__:__gitlab_password__@gitlab/dcae-startup/dcae-startup-vm-controller.git
+ cd /opt/dcae-startup-vm-controller
+ mkdir -p /opt/app/dcae-controller
+ cat > /opt/app/dcae-controller/config.yaml << EOF_CONFIG
+ DCAE-VERSION: __dcae_version__
+ ZONE: __dcae_zone__
+ STATE: __dcae_state__
+ HORIZON-URL: https://mycloud.rackspace.com/cloud/__tenant_id__
+ KEYSONE-URL: https://identity.api.rackspacecloud.com/v2.0
+ OPENSTACK-TENANT-ID: __tenant_id__
+ OPENSTACK-TENANT-NAME: OPEN-ECOMP
+ OPENSTACK-REGION: __openstack_region__
+ OPENSTACK-PRIVATE-NETWORK: __openstack_private_network_name__
+ OPENSTACK-USER: __openstack_user__
+ OPENSTACK-PASSWORD: __openstack_password__
+ OPENSTACK-KEYNAME: __key_name__
+ OPENSTACK-PUBKEY: __pub_key__
+
+ NEXUS-URL-ROOT: __nexus_repo_root__
+ NEXUS-USER: __nexus_username__
+ NEXUS-PASSWORD: __nexus_password__
+
+ MR-REPO: __mr_repo___
+ EOF_CONFIG
+ bash init.sh
+ make up
+
+# Dependencies
+
+## DCAE Controller Docker Image
+
+ ecomp-nexus:51212/dcae-controller:1.0.0
+
+## CDAP VMs
+
+### Maven artifacts
+
+ org.openecomp.dcae.controller:dcae-controller-service-cdap-cluster-manager:1.0.0:zip:runtime
+ org.openecomp.dcae.controller:dcae-controller-service-dmaap-drsub:1.0.0:zip:runtime
+ org.openecomp.dcae.controller:dcae-controller-service-dmaap-drsub-manager:1.0.0:zip:runtime
+
+### Maven RAW files
+
+ raw/org.openecomp.dcae/zip-snapshots/dcae-controller-core-utils-1.0.0-runtime.zip
+ raw/org.openecomp.dcae/deb-snapshots/org.openecomp.dcae.controller/dcae-cdap-small-hadoop_1.0.0-LATEST.deb
+ raw/org.openecomp.dcae/deb-snapshots/org.openecomp.dcae.controller/dcae-analytics-tca_1.0.0-LATEST.deb
+ raw/org.openecomp.dcae/deb-snapshots/org.openecomp.dcae.controller/dcae-analytics-cdap-helloworld_1.0.0-LATEST.deb
+
+## DOCKER HOST VM
+
+### Maven artifacts
+
+ org.openecomp.dcae.controller:dcae-controller-service-docker-host-manager:1.0.0:zip:runtime
+ org.openecomp.dcae.controller:dcae-controller-service-docker-model:1.0.0:jar
+ org.openecomp.dcae.controller:dcae-controller-service-docker-adaptor:1.0.0:jar
+ org.openecomp.dcae.controller:dcae-controller-service-standardeventcollector-model:1.0.0:jar
+ org.openecomp.dcae.controller:dcae-controller-service-standardeventcollector-manager:1.0.0:jar
+
+### Maven RAW files
+
+ raw/org.openecomp.dcae/zip-snapshots/dcae-controller-core-utils-1.0.0-runtime.zip
+
+### Docker Images
+
+ ecomp-nexus:51212/dcae_dmaapbc:1.0.0
+ ecomp-nexus:51212/dcae-controller-common-event:1.0.0
+
+## POSTGRES VM
+
+### Maven artifacts
+
+ org.openecomp.dcae.controller:dcae-controller-service-common-vm-manager:1.0.0:zip:runtime
+ org.openecomp.dcae.controller:dcae-controller-service-storage-postgres-model:1.0.0:jar
+
+### Maven RAW files
+
+ raw/org.openecomp.dcae/zip-snapshots/dcae-controller-core-utils-1.0.0-runtime.zip
+ raw/org.openecomp.dcae/deb-snapshots/org.openecomp.dcae.storage.pgaas/cdf_1.0.0-LATEST.deb
+ raw/org.openecomp.dcae/deb-snapshots/org.openecomp.dcae.storage.pgaas/postgresql-prep_1.0.0-LATEST.deb
+ raw/org.openecomp.dcae/deb-snapshots/org.openecomp.dcae.storage.pgaas/postgresql-config_1.0.0-LATEST.deb
+ raw/org.openecomp.dcae/deb-snapshots/org.openecomp.dcae.storage.pgaas/pgaas_1.0.0-LATEST.deb
+ raw/org.openecomp.dcae/deb-snapshots/org.openecomp.dcae.storage.pgaas/pgaas-post_1.0.0-LATEST.deb
+
diff --git a/bash.setup.sh b/bash.setup.sh
new file mode 100644
index 0000000..22aca50
--- /dev/null
+++ b/bash.setup.sh
@@ -0,0 +1,8 @@
+: ${USER:=$LOGNAME}
+PS1="${USER}@`hostname` \!:: "
+alias ll='ls -lrt'
+alias hi='history 100'
+alias rm='rm -i'
+bind '"\C-p": history-search-backward' '"\C-n": history-search-forward'
+
+cd /opt/dcae-startup-vm-controller
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..95667c5
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,9 @@
+version: '2'
+services:
+ dcae-controller:
+ image: DOCKER-REGISTRY/dcae-controller:DCAE-VERSION
+ ports:
+ - "9998:9998"
+ volumes:
+ - /opt/app/dcae-controller:/opt/app/dcae-controller
+
diff --git a/init.sh b/init.sh
new file mode 100644
index 0000000..5ea0696
--- /dev/null
+++ b/init.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+U=$(grep NEXUS-USER /opt/app/dcae-controller/config.yaml | sed s/NEXUS-USER:.//)
+P=$(grep NEXUS-PASSWORD /opt/app/dcae-controller/config.yaml | sed s/NEXUS-PASSWORD:.//)
+D=$(grep DOCKER-REGISTRY /opt/app/dcae-controller/config.yaml | sed s/DOCKER-REGISTRY:.//)
+V=$(grep DCAE-VERSION /opt/app/dcae-controller/config.yaml | sed s/DCAE-VERSION:.//)
+
+if [ "$V" == "" ]; then V=1.0.0; fi
+
+sed -i s/NEXUS-USER/$U/ Makefile
+sed -i s/NEXUS-PASSWORD/$P/ Makefile
+sed -i s/DOCKER-REGISTRY/$D/ Makefile
+sed -i s/DCAE-VERSION/$V/ Makefile
+
+sed -i s/DOCKER-REGISTRY/$D/ docker-compose.yml
+sed -i s/DCAE-VERSION/$V/ docker-compose.yml