Missing Licenses
[aaf/authz.git] / auth / docker / README.txt
1 #########
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 ##
20 #
21 # Edit the following in <your ONAP authz dir>/auth/sample/local
22
23 aaf.props
24 org.osaaf.aaf.cm.ca.props  (leave out Password)
25
26 # cd to main docker dir
27 cd ../../docker
28
29 # Start the container in bash mode, so it stays up
30 sh agent.sh bash
31
32 # in another shell, find out your Container name
33 docker container ls | grep aaf_agent
34
35 # CD to directory with CA info in it.
36 # (example)
37 cd /opt/app/osaaf/CA/intermediate_7
38
39 # copy keystore for this AAF Env 
40 docker container cp -L org.osaaf.aaf.p12 aaf_agent_<Your ID>:/opt/app/osaaf/local
41 # (in Agent Window)
42 agent 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
46 docker container cp -L org.osaaf.aaf.signer.p12 aaf_agent_<Your ID>:/opt/app/osaaf/local
47 # (in Agent Window)
48 agent encrypt cm_ca.local 
49
50 # Check to make sure all passwords are set
51 grep "enc:" *.props
52
53
54 # When good, run AAF
55 bash drun.sh
56
57 # watch logs in Agent Window
58 cd ../logs
59 sh taillog