greenbone / openvas-scanner

This repository contains the scanner component for Greenbone Community Edition.
https://greenbone.github.io/docs/
GNU General Public License v2.0
3.25k stars 605 forks source link

How to use `docker build` with openvas-scanner? #1015

Closed drAliRahnema closed 2 years ago

drAliRahnema commented 2 years ago

cd ./.docker docker build -t openvas prod.dockerfile ==================res================== CMake Error: The source directory "/source" does not appear to contain CMakeLists.txt.

y0urself commented 2 years ago

You need to build the docker file from the source/root directory, not from the .docker directory. The context than needs to be the root directory, not the .docker directory. E.g.:
docker build -t test-openvas .docker/prod.Dockerfile .

y0urself commented 2 years ago

You can also just pull the docker image from docker hub instead of building it by yourself. e.g.: docker pull greenbone/openvas-scanner