Skip to content

cve-search/CVE-Search-Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CVE Search Docker

General

In the root of this repo there is a docker-compose.yml file that can be used to build and run the required containers for CVE Search.

You will need to install docker compose (V2) in order to perform this option.

Simply clone the repo, move into the root of the cloned repo and run the command:

docker compose up 

The first time the mongodb container is started the database will be populated from the mongodb dump. This might take a minute or two. During the population the webinterface might have difficulty establishing connection to the mongodb. Once done populating the connection should be restored automatically and the
webserver should function normally.

The cve_search instance should be available under https://localhost

Windows specific

open powershell as administrator:

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all
reboot

install docker for desktop windows (edge version)

install wsl_update_x64.msi

open powershell as administrator:

wsl --set-default-version 2

install git for windows.

open git bash and clone the repo:

url=https://github.com/cve-search/CVE-Search-Docker.git
dir=$USERPROFILE'\source\repos\'"$(cut -d'/' -f3 <<<$url)"'\'"$(cut -d'/' -f4 <<<$url)"

mkdir -p "$dir" && cd "$dir" && git clone $url && cd "$dir"/CVE-Search-Docker

docker-compose up

The cve_search instance should be available under https://localhost

Included in this repo

  • Mongodb database dump exported via the docker/files/mongodb/data_dump_compress.sh script;
  • Redis db dump of the Redis CPE db;

Updating

When a new update is pulled from the repo it is recommended to

  • remove the volumes (docker compose down -v);
  • rebuild the docker images completely (docker compose build).