Skip to content

Commit

Permalink
- Updated README and script
Browse files Browse the repository at this point in the history
  • Loading branch information
elipe17 committed Jun 5, 2023
1 parent 0c04495 commit 92697b3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .circleci/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,17 @@ You want to set the branch to be the branch you want this scan to be run on.
You want to add a Pipeline Parameter with `run_nightly_owasp_scan`to be a boolean and set to `true`.

You want Attribution set to Scheduled Actor (Scheduling System)

## Updating Cloud Foundry App OS
Cloud Foundry (CF) occasionally releases OS updates. In doing so they deprecate the previous OS and after a short time
do not allow any apps to run/deploy on anything but the latest OS. The steps below describe how the main TDP apps are
updated along with the secondary apps running in CF.

### Frontend/Backend
- Before updating, make sure the current buildpacks that these apps use are supported by the latest OS. If they aren't you can update the manifest to point them to the correct buildpacks.
- To update the apps you can either deploy each of the environments (sandbox, raft, qasp, etc) from CirCi or you can use the `tdrs-deploy <ENVIRONMENT>` command from `commands.sh`. Assuming the buildpacks are up to date, that is all you need to do.

### Secondary apps
- Before you can make the update, you need to ensure you have the CF plugin that allows you to do so. Download the binary for your respective OS [HERE](https://github.com/cloudfoundry/stack-auditor/releases) and follow the installation instructions [HERE](https://docs.cloudfoundry.org/adminguide/stack-auditor.html#install).
- Verify the installation succeeded by running `cf audit-stack`. Note you need to be logged in and have targeted a space via `cf target -o hhs-acf-ofa -s <SPACE>.
- To update the remaining apps you need to run the `cf-upgrade-os.sh` script. The script takes two arguments: the name of the new CF OS image, and the space to make the update respectively.
1 change: 0 additions & 1 deletion scripts/cf-upgrade-os.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
CF_FS=${1}
CF_SPACE=${2}

cf install-plugin -f stack-auditor-linux-64
cf target -o hhs-acf-ofa -s $CF_SPACE

ALL_APP_NAMES=$(cf curl "v3/apps" | jq '.resources' | jq '.[].name')
Expand Down

0 comments on commit 92697b3

Please sign in to comment.