Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding-first-use-commands-in-docker-build #492

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,21 @@ Revert to old branding (defined _in_ the management command):
Tests (including BDD testing) should be invoked from the
[orchestration project repo](https://github.com/uktrade/trade-remedies-docker).


## Need to know tips during local development

this will disable the celery worker to be called during local setup & develop
```
RUN_ASYNC = False
```

### IMPORTANT ###

For local development you most run these mangment commands below to make sure the public and caseworker services run locally with authenication error:

```
python manage.py adminuser
python manage.py s3credentials
```
## Fitness Functions
![Current fitness metrics for TRSV2](fitness/fitness_metrics_graph.png)
11 changes: 10 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,16 @@ services:
- ./requirements:/app/requirements/
env_file:
- local.env
command: python manage.py runserver 0.0.0.0:8000
command: >
/bin/sh -c "
python manage.py migrate &&
python manage.py load_sysparams &&
python manage.py notify_env &&
python manage.py adminuser &&
python manage.py s3credentials &&
python manage.py collectstatic --noinput &&
python manage.py runserver 0.0.0.0:8000
"
environment:
- DJANGO_SETTINGS_MODULE=config.settings.local
celery:
Expand Down
Loading