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 | ## |
Sai Gandham | 67a6d89 | 2018-10-10 04:31:59 -0500 | [diff] [blame] | 20 | |
Instrumental | a4c6043 | 2018-11-02 06:07:31 -0500 | [diff] [blame] | 21 | The CSIT functions are started by Jenkins, starting with the "setup.sh" |
| 22 | in the csit/plans/aaf/aafapi directory (where 'csit' is an ONAP Project) |
Sai Gandham | 67a6d89 | 2018-10-10 04:31:59 -0500 | [diff] [blame] | 23 | |
Instrumental | a4c6043 | 2018-11-02 06:07:31 -0500 | [diff] [blame] | 24 | You can emulate the JENKINS build locally |
Instrumental | 50a9148 | 2019-04-22 11:01:35 -0500 | [diff] [blame] | 25 | PRELIMINARY) Make sure authz/auth/docker/d.props.csit is the right version |
Sai Gandham | 67a6d89 | 2018-10-10 04:31:59 -0500 | [diff] [blame] | 26 | |
Instrumental | a4c6043 | 2018-11-02 06:07:31 -0500 | [diff] [blame] | 27 | 1) Start in the directory you put your ONAP source in |
| 28 | cd <root onap source dir> |
| 29 | 2) If not exist, create a "workspace" directory. |
| 30 | mkdir -p workspace |
Instrumental | ce76c7d | 2019-02-21 07:18:51 -0600 | [diff] [blame] | 31 | 3) cd to workspace |
| 32 | 4) export WORKSPACE="${PWD}" |
| 33 | 5) Create an empty common functions script |
| 34 | > common_functions.sh |
| 35 | 6) cd to the plans |
| 36 | cd ../csit/plans/aaf/aafapi |
| 37 | 7) Run setup with variables set to the Workspace you created |
| 38 | SCRIPTS=$WORKSPACE; export WORKSPACE SCRIPTS; bash setup.sh |
Sai Gandham | 67a6d89 | 2018-10-10 04:31:59 -0500 | [diff] [blame] | 39 | |
Instrumental | ce76c7d | 2019-02-21 07:18:51 -0600 | [diff] [blame] | 40 | 8) To practice the Shutdown, do: |
| 41 | SCRIPTS=$WORKSPACE; export WORKSPACE SCRIPTS; bash teardown.sh |
Instrumental | a4c6043 | 2018-11-02 06:07:31 -0500 | [diff] [blame] | 42 | |
Instrumental | ce76c7d | 2019-02-21 07:18:51 -0600 | [diff] [blame] | 43 | OTHER) If nexus isn't working (and you have the latest images to test with), you can |
| 44 | export SKIP_PULL=true |
Sai Gandham | 67a6d89 | 2018-10-10 04:31:59 -0500 | [diff] [blame] | 45 | |