2022-03-30 16:02:23 +00:00
|
|
|
# data_importer
|
|
|
|
|
|
|
|
Import common security data such as CVE, CPE, and Advisories from various CNAs into a postgresql database in a rails application.
|
|
|
|
|
|
|
|
## Getting started
|
|
|
|
|
2022-04-01 14:10:16 -05:00
|
|
|
### Build container
|
|
|
|
`docker-compose build`
|
2022-03-30 16:02:23 +00:00
|
|
|
|
2022-04-01 14:10:16 -05:00
|
|
|
### Database creation and seeding initial data
|
2022-04-01 14:14:33 -05:00
|
|
|
```
|
|
|
|
docker-compose run web rake db:create
|
|
|
|
docker-compose run web rake db:migrate
|
|
|
|
docker-compose run web rake db:setup
|
|
|
|
```
|
2022-03-30 16:02:23 +00:00
|
|
|
|
2022-04-01 14:10:16 -05:00
|
|
|
### Launch Pry console
|
|
|
|
`docker-compose run web rails console`
|