3eb554b1149fd6d106818d1e9f7f967cb6676880
[aaf/authz.git] / auth / docker / README.txt
1 #
2 # Edit the following in <your ONAP authz dir>/auth/sample/local
3
4 aaf.props
5 org.osaaf.aaf.cm.ca.props  (leave out Password)
6
7 # cd to main docker dir
8 cd ../../docker
9
10 # Start the container in bash mode, so it stays up
11 sh agent.sh bash
12
13 # in another shell, find out your Container name
14 docker container ls | grep aaf_agent
15
16 # CD to directory with CA info in it.
17 # (example)
18 cd /opt/app/osaaf/CA/intermediate_7
19
20 # copy keystore for this AAF Env 
21 docker container cp -L org.osaaf.aaf.p12 aaf_agent_<Your ID>:/opt/app/osaaf/local
22 # (in Agent Window)
23 agent encrypt cadi_keystore_password
24
25 # If you intend to use Certman to sign certs, it is a "local" CA
26 # copy Signing Keystore into container
27 docker container cp -L org.osaaf.aaf.signer.p12 aaf_agent_<Your ID>:/opt/app/osaaf/local
28 # (in Agent Window)
29 agent encrypt cm_ca.local 
30
31 # Check to make sure all passwords are set
32 grep "enc:" *.props
33
34
35 # When good, run AAF
36 bash drun.sh
37
38 # watch logs in Agent Window
39 cd ../logs
40 sh taillog