Skip to content

Instantly share code, notes, and snippets.

@sz3n
Last active January 9, 2017 18:13
Show Gist options
  • Select an option

  • Save sz3n/4f2096229a3e01b0c1e910adfab7506d to your computer and use it in GitHub Desktop.

Select an option

Save sz3n/4f2096229a3e01b0c1e910adfab7506d to your computer and use it in GitHub Desktop.

Revisions

  1. sz3n revised this gist Jan 9, 2017. 1 changed file with 6 additions and 8 deletions.
    14 changes: 6 additions & 8 deletions cve-search
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,7 @@
    mkdir cve-search
    git clone https://github.com/cve-search/cve-search.git
    cd cve-search
    #download the dockerfile
    https://github.com/znb/Docker/blob/master/CVE-Search/Dockerfile
    docker build -t cve-search .
    sudo docker run --name cve-search -i -t cve-search
    > mongod -f /etc/mongod.conf
    > service redis-server start
    > python /opt/cve-search/web/index.py
    virtualenv -p python3.4 venv
    source venv/bin/activate
    sudo apt-get install python3-lxml
    pip install -r requirements.txt

  2. sz3n revised this gist Jan 2, 2017. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion cve-search
    Original file line number Diff line number Diff line change
    @@ -3,4 +3,7 @@ cd cve-search
    #download the dockerfile
    https://github.com/znb/Docker/blob/master/CVE-Search/Dockerfile
    docker build -t cve-search .
    sudo docker run --name cve-search -i -t cve-search
    sudo docker run --name cve-search -i -t cve-search
    > mongod -f /etc/mongod.conf
    > service redis-server start
    > python /opt/cve-search/web/index.py
  3. sz3n revised this gist Jan 2, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion cve-search
    Original file line number Diff line number Diff line change
    @@ -3,4 +3,4 @@ cd cve-search
    #download the dockerfile
    https://github.com/znb/Docker/blob/master/CVE-Search/Dockerfile
    docker build -t cve-search .
    sudo docker run -name cve-search -i -t cve-search
    sudo docker run --name cve-search -i -t cve-search
  4. sz3n created this gist Jan 2, 2017.
    6 changes: 6 additions & 0 deletions cve-search
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    mkdir cve-search
    cd cve-search
    #download the dockerfile
    https://github.com/znb/Docker/blob/master/CVE-Search/Dockerfile
    docker build -t cve-search .
    sudo docker run -name cve-search -i -t cve-search