mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 01:57:03 +02:00
Create dev sandboxes scripts and first sandbox (#370)
* Add templates, scripts, and process documentation for creating and destroying developer sandboxes * Create developer sandbox 'lmm' infrastructure * fix up newlines * fix action syntax pull_request * add a line about the public.crt to developer docs * add docs about branch conventions * add new developer sandbox 'ik' infrastructure * Add new developer sandbox 'nmb' infrastructure * Add new developer sandbox 'sspj' infrastructure * Add new developer sandbox 'mr' infrastructure * make github actions dynamic by environment * trying something out with dynamic github action for dev sandbox * consolidate github actions to dynamic action * try out run name * combo run name and name * respond to comments
This commit is contained in:
parent
6a54bf1ff4
commit
508e5384cb
18 changed files with 524 additions and 67 deletions
|
@ -5,7 +5,7 @@ You can connect to a Cloud.gov database using the
|
|||
After installing it, use the command
|
||||
|
||||
```shell
|
||||
cf connect-to-service getgov-SANDBOXNAME getgov-SANDBOXNAME-databse
|
||||
cf connect-to-service getgov-ENVIRONMENT getgov-ENVIRONMENT-databse
|
||||
```
|
||||
|
||||
to get a `psql` shell on the sandbox environment's database.
|
||||
|
@ -18,13 +18,13 @@ command in the correct environment. For any developer environment, developers
|
|||
can manually run the task with
|
||||
|
||||
```shell
|
||||
cf run-task getgov-SANDBOXNAME --command 'python manage.py migrate' --name migrate
|
||||
cf run-task getgov-ENVIRONMENT --command 'python manage.py migrate' --name migrate
|
||||
```
|
||||
|
||||
Optionally, load data from fixtures as well
|
||||
|
||||
```shell
|
||||
cf run-task getgov-SANDBOXNAME --wait --command 'python manage.py load' --name loaddata
|
||||
cf run-task getgov-ENVIRONMENT --wait --command 'python manage.py load' --name loaddata
|
||||
```
|
||||
|
||||
For the `stable` environment, developers don't have credentials so we need to
|
||||
|
@ -37,7 +37,7 @@ the "Run workflow" button, making sure that `stable` is selected.
|
|||
To run the `dumpdata` command, you'll need to ssh to a running container. `cf run-task` is useless for this, as you will not be able to see the output.
|
||||
|
||||
```shell
|
||||
cf ssh getgov-SANDBOXNAME
|
||||
cf ssh getgov-ENVIRONMENT
|
||||
/tmp/lifecycle/shell # this configures your environment
|
||||
./manage.py dumpdata
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue