2019-08-29 13:21:20 +03:00
# Private tools
This folder should contain some of our private tools. In the following, we describe how to use them locally.
2019-09-09 14:04:44 +03:00
## Scanners
2019-08-29 13:21:20 +03:00
2019-09-09 14:04:44 +03:00
Make sure to clone:
1. the `customs` repo in `private/addons-customs-scanner`
2019-08-29 13:21:20 +03:00
Specify the [`docker-compose.private.yml` ](../docker-compose.private.yml ) file to `docker-compose` (together with the default [`docker-compose.yml` ](../docker-compose.yml ) file) to build the Docker images:
```
$ docker-compose -f docker-compose.yml -f docker-compose.private.yml build
```
Run the local environment with the private services:
```
$ docker-compose -f docker-compose.yml -f docker-compose.private.yml up -d
```
2019-09-09 14:04:44 +03:00
### customs
2019-08-29 13:21:20 +03:00
A waffle switch is used to enable/disable the `customs` Celery task:
```
$ make shell
$ [root@< docker > :/code#] ./manage.py waffle_switch enable-customs on
```
2019-08-29 14:07:36 +03:00
2019-09-09 14:04:44 +03:00
## Yara
2019-08-29 14:07:36 +03:00
If you have access to `yara` , you should first clone it in `private/addons-yara` .
A waffle switch is used to enable/disable the `yara` Celery task:
```
$ make shell
$ [root@< docker > :/code#] ./manage.py waffle_switch enable-yara on
```