immauss / openvas

Containers for running the Greenbone Vulnerability Manager. Run as a single container with all services or separate single applications containers via docker-compose.
GNU Affero General Public License v3.0
337 stars 97 forks source link

Local docker build is not working anymore :( #238

Closed condef5 closed 5 months ago

condef5 commented 6 months ago

Hi, firstly, thank you for this incredible tool.

I've been attempting to build the Docker image locally, just as I've done in the past. However, I'm encountering some errors this time around. I would greatly appreciate it if you could guide me in the right direction. 🙏

image
immauss commented 6 months ago

OK ... So when building multi architecture, the longest part of the build is for the react code, the javascript. When building in emulation, IT IS REALLLLLLYYY SLOW.. So, i set that aside and only build it from the amd64, and then it is just copied into the other images. I'm also only rebuilding the react code when the gsa version updates. This saves me a ton of time on rebuilds.

Take a look at bin/base-rebuild.sh. It's kinda written for my system, but look at the "-g" option.

Also ... just curious, but why are you building it yourself? The image on docker hub is rebuilt with the latest NVTs weekly. Unless you are actually adding or changing something in the build, there's not a lot to be gained by building it yourself.

If you have an idea for a mod / addition, please let me know. I'm open to change.

Thanks, Scott

abnerrizzi commented 6 months ago

Hi immauss. I dont know why he is trying to compile, but would be good to be able to build in our own machine. But at lease I love build things from zero to hero hahahahahahahah

immauss commented 6 months ago

@condef5 Did that help?

condef5 commented 5 months ago

@immauss sorry for the late reply, thank you so much Immaus 🙏