Skip to content

Commit

Permalink
Add instructions for upgrading scubagoggles (#433)
Browse files Browse the repository at this point in the history
* Update Troubleshooting.md with upgrading instructions

* Update DownloadAndInstall.md with link to troubleshooting

* Update README.md

* Update README.md with new upgrading section

* Rework documentation for new upgrading section
  • Loading branch information
adhilto authored Oct 7, 2024
1 parent 62f2229 commit 081c129
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ The majority of the conformance checks done by ScubaGoggles rely on [GWS Admin l
- [Reviewing Output](/docs/usage/ReviewOutput.md)
- [Limitations](/docs/usage/Limitations.md)

### Upgrading and Maintenance
- [Upgrading ScubaGoggles](/docs/upgrading/Upgrading.md#upgrading-scubagoggles)
- [Upgrading OPA](/docs/upgrading/Upgrading.md#upgrading-opa)

### Troubleshooting
- [Lots of Manual Checks](/docs/troubleshooting/Troubleshooting.md#lots-of-manual-checks)
- [Not Authorized to Access This Resource](/docs/troubleshooting/Troubleshooting.md#not-authorized-to-access-this-resource)
Expand Down
2 changes: 2 additions & 0 deletions docs/installation/DownloadAndInstall.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Download and Python Install
> [!NOTE]
> Previously installed a different version of ScubaGoggles? See [Upgrading ScubaGoggles](/docs/upgrading/Upgrading.md#upgrading-scubagoggles).
## Downloading the Latest Release
To download ScubaGoggles:
Expand Down
22 changes: 22 additions & 0 deletions docs/upgrading/Upgrading.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Upgrading and Maintenance

## Upgrading ScubaGoggles
Assuming you installed ScubaGoggles as described in [Download and Install](/docs/installation/DownloadAndInstall.md), upgrading to the lastest version of ScubaGoggles should be as simple as:
- Repeating the steps described in [Download and Install](/docs/installation/DownloadAndInstall.md) with the new release.
- Making the OPA executable available, by either:
- downloading the executable again as described in [Download the OPA executable](/docs/installation/OPA.md),
- copying the executable from the old release folder to the new release folder, or
- using the `--opapath` parameter to tell ScubaGoggles where to look for the executable.
- Making your credentials available, by either:
- copying your `credentials.json` file to the new release folder or
- using the `--credentials` parameter to tell ScubaGoggles where to look for your credentials.

If instead you cloned the ScubaGoggles repo and wish to run ScubaGoggles on the latest code from main (only recommended for development purposes), be sure to run `python -m pip install .` inside the ScubaGoggles directory after pulling the latest code.

## Upgrading OPA
While new versions of OPA are periodically released, it is only necessary to upgrade OPA if the version you have locally is unsupported. Running `python download_opa.py --help` lists the supported OPA versions.

Upgrading OPA is as simple as downloading the desired executable, which can be done by running the `download_opa.py` script again. See [Download the OPA executable](/docs/installation/OPA.md) for detailed instructions.

## Navigation
- Return to [Documentation Home](/README.md)

0 comments on commit 081c129

Please sign in to comment.