Instrumental | 7a1817b | 2018-11-05 11:11:15 -0600 | [diff] [blame] | 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 | ## |
Instrumental | 9c8a8b0 | 2018-07-16 18:41:10 -0500 | [diff] [blame] | 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 | |
Instrumental | 4ad4763 | 2018-07-13 15:49:26 -0500 | [diff] [blame] | 29 | # Start the container in bash mode, so it stays up |
| 30 | sh agent.sh bash |
| 31 | |
Instrumental | 4ad4763 | 2018-07-13 15:49:26 -0500 | [diff] [blame] | 32 | # in another shell, find out your Container name |
| 33 | docker container ls | grep aaf_agent |
| 34 | |
Instrumental | 9c8a8b0 | 2018-07-16 18:41:10 -0500 | [diff] [blame] | 35 | # CD to directory with CA info in it. |
| 36 | # (example) |
| 37 | cd /opt/app/osaaf/CA/intermediate_7 |
| 38 | |
Instrumental | 4ad4763 | 2018-07-13 15:49:26 -0500 | [diff] [blame] | 39 | # copy keystore for this AAF Env |
Instrumental | 9c8a8b0 | 2018-07-16 18:41:10 -0500 | [diff] [blame] | 40 | docker container cp -L org.osaaf.aaf.p12 aaf_agent_<Your ID>:/opt/app/osaaf/local |
Instrumental | 4ad4763 | 2018-07-13 15:49:26 -0500 | [diff] [blame] | 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 |
Instrumental | 9c8a8b0 | 2018-07-16 18:41:10 -0500 | [diff] [blame] | 46 | docker container cp -L org.osaaf.aaf.signer.p12 aaf_agent_<Your ID>:/opt/app/osaaf/local |
Instrumental | 4ad4763 | 2018-07-13 15:49:26 -0500 | [diff] [blame] | 47 | # (in Agent Window) |
| 48 | agent encrypt cm_ca.local |
| 49 | |
Instrumental | 4ad4763 | 2018-07-13 15:49:26 -0500 | [diff] [blame] | 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 |
Instrumental | e2fa0e6 | 2019-02-07 11:09:32 -0600 | [diff] [blame] | 60 | |
| 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 |