Skip to content

Commit

Permalink
Merge pull request #291 from NASA-IMPACT/environments_cleanup
Browse files Browse the repository at this point in the history
Clean up environments following VIIRS migration in MCP production.
  • Loading branch information
sharkinsspatial authored Jun 7, 2024
2 parents f0ba6a6 + 0b3581b commit 830e2b6
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 261 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/dev_deployment.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: dev deployment
name: uah dev deployment

on:
push:
branches: [dev]
workflow_dispatch:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dev_viirs_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: uah dev viirs deployment

on:
push:
branches: [viirs_orchestration]
branches: [dev]
workflow_dispatch:

env:
Expand Down
82 changes: 0 additions & 82 deletions .github/workflows/mcp_dev_deployment.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/mcp_dev_viirs_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: mcp dev viirs deployment

on:
push:
branches: [viirs_orchestration]
branches: [dev]
workflow_dispatch:

env:
Expand Down
81 changes: 0 additions & 81 deletions .github/workflows/mcp_production_deployment.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .github/workflows/mcp_production_viirs_deployment.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: mcp production viirs deployment

on:
release:
types: [ published ]
workflow_dispatch:

env:
Expand Down
69 changes: 0 additions & 69 deletions .github/workflows/production_deployment.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/tox_tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tox tests
name: tox tests

on: [push]

Expand Down
28 changes: 5 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,42 +47,24 @@ Display a diff of the current deployment and any changes created.
source environment.sh && tox -e dev -r -- diff
```

## Deploy

Deploy current version of stack:

```plain
source environment.sh && tox -e dev -r -- deploy
```

The repository is configured to create automatic deployments to the
`hls-development` stack when PRs are merged into the `dev` branch. This
`hls-mcp-development-viirs` stack when PRs are merged into the `dev` branch. This
deployment uses
[Github Actions Environments](https://docs.github.com/en/actions/reference/environments)
to manage the environment configuration rather than the `environment.sh`.

Deployments to GCC have restrictions over creating VPCs and the types of AMIs
which can be utilized. To deploy to GCC your shell will require the following
Deployments to MCP have restrictions over creating VPCs and the types of AMIs
which can be utilized. To deploy to MCP you will require the following
environment settings:

```plain
export GCC=true
export AWS_DEFAULT_REGION=us-west-2
export HLS_GCC_ACCOUNT=<The GCC account id>
export HLS_GCC_VPCID=<The vpc id provided by GCC administrators>
export HLS_GCC_ACCOUNT=<The MCP account id>
export HLS_GCC_VPCID=<The vpc id provided by MCP administrators>
export HLS_GCC_BOUNDARY_ARN=<The boundary policy arn>
```

## Setup Logging Database

After `deploy` is run and the stack is created run:

```plain
source environment.sh && scripts/setupdb.sh
```

To bootstrap the logging database.

## Development

For active stack development run:
Expand Down

0 comments on commit 830e2b6

Please sign in to comment.