blob: d81fec8496acb01320902472f30a84bdda17e463 [file] [log] [blame]
Instrumental7a1817b2018-11-05 11:11:15 -06001#########
2## ============LICENSE_START====================================================
3## org.onap.aaf
4## ===========================================================================
5## Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
6## ===========================================================================
7## Licensed under the Apache License, Version 2.0 (the "License");
8## you may not use this file except in compliance with the License.
9## You may obtain a copy of the License at
10##
11## http://www.apache.org/licenses/LICENSE-2.0
12##
13## Unless required by applicable law or agreed to in writing, software
14## distributed under the License is distributed on an "AS IS" BASIS,
15## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16## See the License for the specific language governing permissions and
17## limitations under the License.
18## ============LICENSE_END====================================================
19##
Instrumental9c8a8b02018-07-16 18:41:10 -050020#
21# Edit the following in <your ONAP authz dir>/auth/sample/local
22#
23aaf.props
24org.osaaf.aaf.cm.ca.props (leave out Password)
25
26# cd to main docker dir
27cd ../../docker
28
Instrumental4ad47632018-07-13 15:49:26 -050029# Start the container in bash mode, so it stays up
30sh agent.sh bash
31
Instrumental4ad47632018-07-13 15:49:26 -050032# in another shell, find out your Container name
33docker container ls | grep aaf_agent
34
Instrumental9c8a8b02018-07-16 18:41:10 -050035# CD to directory with CA info in it.
36# (example)
37cd /opt/app/osaaf/CA/intermediate_7
38
Instrumental4ad47632018-07-13 15:49:26 -050039# copy keystore for this AAF Env
Instrumental9c8a8b02018-07-16 18:41:10 -050040docker container cp -L org.osaaf.aaf.p12 aaf_agent_<Your ID>:/opt/app/osaaf/local
Instrumental4ad47632018-07-13 15:49:26 -050041# (in Agent Window)
42agent encrypt cadi_keystore_password
43
44# If you intend to use Certman to sign certs, it is a "local" CA
45# copy Signing Keystore into container
Instrumental9c8a8b02018-07-16 18:41:10 -050046docker container cp -L org.osaaf.aaf.signer.p12 aaf_agent_<Your ID>:/opt/app/osaaf/local
Instrumental4ad47632018-07-13 15:49:26 -050047# (in Agent Window)
48agent encrypt cm_ca.local
49
Instrumental4ad47632018-07-13 15:49:26 -050050# Check to make sure all passwords are set
51grep "enc:" *.props
52
53
54# When good, run AAF
55bash drun.sh
56
57# watch logs in Agent Window
58cd ../logs
59sh taillog
Instrumentale2fa0e62019-02-07 11:09:32 -060060
61
62#Running as ROOT
63# docker gets the non-root user in its config during kubernetes
64# install
https://git.onap.org/logging-analytics/tree/deploy/rancher/oom_rancher_setup.sh#n90

65# sudo usermod -aG docker $USERNAME
where $USERNAME can be ubuntu