aboutsummaryrefslogtreecommitdiffstats
path: root/ncomp-docker-adaptor/src/main/server
diff options
context:
space:
mode:
Diffstat (limited to 'ncomp-docker-adaptor/src/main/server')
-rw-r--r--ncomp-docker-adaptor/src/main/server/config/adaptor.properties7
-rw-r--r--ncomp-docker-adaptor/src/main/server/config/console.properties3
-rw-r--r--ncomp-docker-adaptor/src/main/server/config/gui.properties0
-rw-r--r--ncomp-docker-adaptor/src/main/server/config/log4j.properties24
-rw-r--r--ncomp-docker-adaptor/src/main/server/config/makefile9
-rw-r--r--ncomp-docker-adaptor/src/main/server/config/pw.sh.sh15
-rw-r--r--ncomp-docker-adaptor/src/main/server/scripts/console.groovy27
7 files changed, 85 insertions, 0 deletions
diff --git a/ncomp-docker-adaptor/src/main/server/config/adaptor.properties b/ncomp-docker-adaptor/src/main/server/config/adaptor.properties
new file mode 100644
index 0000000..4605389
--- /dev/null
+++ b/ncomp-docker-adaptor/src/main/server/config/adaptor.properties
@@ -0,0 +1,7 @@
+server.dir = data/resources
+metrics.dir = data/metrics
+properties.dir = data/properties
+server.port = PORT
+server.user.console = CONSOLE_PW
+server.user.gui = GUI_PW
+server.user.client = CLIENT_PW
diff --git a/ncomp-docker-adaptor/src/main/server/config/console.properties b/ncomp-docker-adaptor/src/main/server/config/console.properties
new file mode 100644
index 0000000..4b63607
--- /dev/null
+++ b/ncomp-docker-adaptor/src/main/server/config/console.properties
@@ -0,0 +1,3 @@
+localhost.endpoint=http://localhost:PORT
+localhost.user=console
+localhost.password=CONSOLE_PW
diff --git a/ncomp-docker-adaptor/src/main/server/config/gui.properties b/ncomp-docker-adaptor/src/main/server/config/gui.properties
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ncomp-docker-adaptor/src/main/server/config/gui.properties
diff --git a/ncomp-docker-adaptor/src/main/server/config/log4j.properties b/ncomp-docker-adaptor/src/main/server/config/log4j.properties
new file mode 100644
index 0000000..d048817
--- /dev/null
+++ b/ncomp-docker-adaptor/src/main/server/config/log4j.properties
@@ -0,0 +1,24 @@
+log4j.debug=0
+log4j.rootLogger=warn, file
+log4j.logger.org.openecomp.ncomp=info, file
+log4j.additivity.org.openecomp.ncomp=false
+log4j.logger.org.openecomp.ncomp.datarouter=warn, file
+log4j.additivity.org.openecomp.ncomp.datarouter=false
+log4j.logger.org.apache.http.headers=debug, file
+log4j.logger.org.apache.http.wire=debug, file
+
+## uploaded logger
+log4j.logger.org.openecomp.ncomp.sirius.manager.uploaded=info, uploaded
+log4j.additivity.org.openecomp.ncomp.sirius.manager.uploaded=false
+## request logging
+log4j.logger.org.openecomp.ncomp.sirius.manager.ManagementServer.requests=info, requests
+log4j.additivity.org.openecomp.ncomp.sirius.manager.ManagementServer.requests=false
+
+
+log4j.appender.file=org.apache.log4j.RollingFileAppender
+log4j.appender.file.File=c:/Users/km1785/logs/BBBB.log
+log4j.appender.file.layout=org.apache.log4j.PatternLayout
+log4j.appender.file.layout.ConversionPattern=%d %5p [%t] %m %C:%L%n
+log4j.appender.file.MaxFileSize=50MB
+log4j.appender.file.MaxBackupIndex=5
+
diff --git a/ncomp-docker-adaptor/src/main/server/config/makefile b/ncomp-docker-adaptor/src/main/server/config/makefile
new file mode 100644
index 0000000..717823e
--- /dev/null
+++ b/ncomp-docker-adaptor/src/main/server/config/makefile
@@ -0,0 +1,9 @@
+
+restart: stop start
+
+start:
+ M2_HOME=/home/ncomp/.m2 bin/BBBB-controller start
+stop:
+ bin/BBBB-controller stop
+console:
+ bin/BBBB-controller console
diff --git a/ncomp-docker-adaptor/src/main/server/config/pw.sh.sh b/ncomp-docker-adaptor/src/main/server/config/pw.sh.sh
new file mode 100644
index 0000000..cd022ae
--- /dev/null
+++ b/ncomp-docker-adaptor/src/main/server/config/pw.sh.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+### used to generate random passwords
+
+
+echo '#!/bin/bash'
+echo ""
+
+echo 'cat \'
+
+for i in CONSOLE GUI CLIENT
+do
+ echo ' |' sed s/${i}_PW/$(echo $i:$(date +%s) | sha256sum | base64 | head -c 20 ; echo)/ \\
+done
+ \ No newline at end of file
diff --git a/ncomp-docker-adaptor/src/main/server/scripts/console.groovy b/ncomp-docker-adaptor/src/main/server/scripts/console.groovy
new file mode 100644
index 0000000..4c186de
--- /dev/null
+++ b/ncomp-docker-adaptor/src/main/server/scripts/console.groovy
@@ -0,0 +1,27 @@
+
+/*-
+ * ============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============================================
+ */
+
+import org.openecomp.ncomp.servers.docker.DockerDockerAdaptorConsole
+import org.openecomp.ncomp.sirius.manager.console.Utils
+
+adaptor = new DockerDockerAdaptorConsole("console.properties","localhost")
+
+def p(x) { Utils.object2json(x).toString(2) }