summaryrefslogtreecommitdiffstats
path: root/auth/auth-cass
diff options
context:
space:
mode:
authorInstrumental <jgonap@stl.gathman.org>2020-03-19 08:10:12 -0500
committerInstrumental <jgonap@stl.gathman.org>2020-03-19 13:02:59 -0500
commit6a1ddb5e38cf8fa29f84c4b6ac4172bc1063691a (patch)
tree2928b6182f0d4c517ae13e544e6677ea49d3d74c /auth/auth-cass
parent6129846e19a51f266d61df7b71fac408e5611b76 (diff)
Fix standalone Batch Jars
Issue-ID: AAF-1114 Signed-off-by: Instrumental <jgonap@stl.gathman.org> Change-Id: I6ceb7ef714b3c7c2b33371abfca9202746151231
Diffstat (limited to 'auth/auth-cass')
-rw-r--r--auth/auth-cass/cass_init/authBatch.props23
-rw-r--r--auth/auth-cass/cass_init/cmd.sh3
-rw-r--r--auth/auth-cass/cass_init/restore.sh2
-rw-r--r--auth/auth-cass/docker/Dockerfile.cass1
4 files changed, 14 insertions, 15 deletions
diff --git a/auth/auth-cass/cass_init/authBatch.props b/auth/auth-cass/cass_init/authBatch.props
index 0505ce8b..bef1659b 100644
--- a/auth/auth-cass/cass_init/authBatch.props
+++ b/auth/auth-cass/cass_init/authBatch.props
@@ -1,24 +1,21 @@
-aaf_data_dir=/opt/app/aaf/data
+aaf_data_dir=/opt/app/aaf/cass_init/data
aaf_root_ns=org.osaaf.aaf
cadi_latitude=38.0
cadi_longitude=-72.0
+cadi_loglevel=INFO
## Supported Plugin Organizational Units
Organization.att.com=org.onap.aaf.org.DefaultOrg
DRY_RUN=false
-CASS_ENV=DOCKER
-
-UNKNOWN.LOG_DIR=logs/DOCKER
## Cassandra Configurations, when commented out, uses LocalHost (non authenticated) and default ports
-DOCKER.cassandra.clusters=127.0.0.1
-DOCKER.cassandra.clusters.port=9042
-DOCKER.cassandra.clusters.user=cassandra
-DOCKER.cassandra.clusters.password=cassandra
-DOCKER.VERSION=3.1.0
-DOCKER.GUI_URL=https://mithrilcsp.sbc.com:8095/gui
-DOCKER.MAX_EMAILS=3
-DOCKER.SPECIAL_NAMES=aaf@aaf.osaaf.org
+cassandra.clusters=127.0.0.1
+cassandra.clusters.port=9042
+cassandra.clusters.user=cassandra
+cassandra.clusters.password=cassandra
+
+GUI_URL=https://aaf-gui.onap:8095/gui
+MAX_EMAILS=3
+SPECIAL_NAMES=aaf@aaf.osaaf.org
-cadi_loglevel=AUDIT
diff --git a/auth/auth-cass/cass_init/cmd.sh b/auth/auth-cass/cass_init/cmd.sh
index dc3e7f80..d9120872 100644
--- a/auth/auth-cass/cass_init/cmd.sh
+++ b/auth/auth-cass/cass_init/cmd.sh
@@ -135,7 +135,8 @@ function install_onap {
status prep data
bash prep.sh
status push data to cassandra
- bash push.sh
+ # bash push.sh
+ echo "YES" | bash restore.sh
cd -
echo $(date) > $AAF_INIT_DATA
fi
diff --git a/auth/auth-cass/cass_init/restore.sh b/auth/auth-cass/cass_init/restore.sh
index 528978af..abc6a7cc 100644
--- a/auth/auth-cass/cass_init/restore.sh
+++ b/auth/auth-cass/cass_init/restore.sh
@@ -52,7 +52,7 @@ done
if [ ! "$UPLOAD" = "" ]; then
cd dats
- java -Dcadi_prop_files=../authBatch.props -DCASS_ENV=$ENV -jar ../aaf-auth-batch-*-full.jar Upload $UPLOAD
+ java -Dcadi_prop_files=../authBatch.props -DCASS_ENV=$ENV -jar ../aaf-auth-batch-*-full.jar Upload $UPLOAD 2>&1 logs/stdout
cd -
fi
diff --git a/auth/auth-cass/docker/Dockerfile.cass b/auth/auth-cass/docker/Dockerfile.cass
index 0db5fa57..0f12d8c8 100644
--- a/auth/auth-cass/docker/Dockerfile.cass
+++ b/auth/auth-cass/docker/Dockerfile.cass
@@ -30,6 +30,7 @@ COPY cass_init/*.sh /opt/app/aaf/cass_init/
COPY cass_init/*.props /opt/app/aaf/cass_init/
COPY aaf-auth-batch-*-full.jar /opt/app/aaf/cass_init/
COPY cass_data/*.dat /opt/app/aaf/cass_init/dats/
+COPY sample.identities.dat /opt/app/aaf/cass_init/data/identites.dat
RUN mkdir -p /opt/app/aaf/status && chmod 777 /opt/app/aaf/status && \
addgroup ${USER} && adduser --no-create-home --ingroup ${USER} --disabled-password --gecos "" --shell /bin/bash ${USER} && \