Giter Club home page Giter Club logo

cve-search-docker-1's Introduction

CVE Search Docker

Options for running the app

As an Docker app (not yet supported)

This is an experimental feature.

To enable experimental features in the Docker CLI, edit the config.json
file and set experimental to enabled.

You need at least one Docker node operating in Swarm mode.

The containerized version of cve-search will be provided as a docker
app ( docker app docs )

In order to use the docker app commands you should install an additional plugin, check the install guide for the installation steps.

Straight from the repo source using docker-compose

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 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 mongo and redis containers are configured to persist their data to the hosts' file system; a .cve_search_data folder will be created when the containers are started.

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 .cve_search_data folder;
  • rebuild the docker images completely.

cve-search-docker-1's People

Contributors

p-t-i avatar peterdavehello avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.