jampe / MultiAV-Extended

MultiAV scanner with Python and JSON REST API using Malice Docker AV Containers and Docker-Machine based Autoscaling
Other
21 stars 8 forks source link

pull of engine _pull failed for engine "AV" failed! #9

Closed najashark closed 3 years ago

najashark commented 3 years ago

I tried to build av docker directly from repo using DOCKER_BUILD_URL_OVERRIDE

[ClamAV]
#SCAN_TIMEOUT=
DOCKER_BUILD_URL_OVERRIDE=https://github.com/malice-plugins/clamav.git
#ENABLE_INTERNET_ACCESS=
DISABLED=False

the build success but i got this error that prevents the runserver.py to run

#1 [internal] load git source https://github.com/malice-plugins/clamav.git
#1 1.695 7acd43db5b28ee9f0fa961243f0a47b48e2f6203       refs/heads/master
#1 CACHED

#2 [internal] load metadata for docker.io/malice/alpine:latest
#2 DONE 2.4s

#3 [1/8] FROM docker.io/malice/alpine@sha256:55e1a7dfbdecea5baf2f075f9c0bd1...
#3 DONE 0.0s

#8 http://www.eicar.org/download/eicar.com.txt
#8 DONE 0.5s

#9 [6/8] ADD http://www.eicar.org/download/eicar.com.txt /malware/EICAR
#9 CACHED

#10 [7/8] RUN chown malice -R /malware
#10 CACHED

#4 [2/8] COPY . /go/src/github.com/malice-plugins/clamav
#4 CACHED

#5 [3/8] RUN apk --update add --no-cache clamav ca-certificates
#5 CACHED

#6 [4/8] RUN apk --update add --no-cache -t .build-deps   build-base   merc...
#6 CACHED

#7 [5/8] RUN mkdir -p /opt/malice   && chown malice /opt/malice   && freshc...
#7 CACHED

#11 [8/8] WORKDIR /malware
#11 CACHED

#12 exporting to image
#12 exporting layers done
#12 writing image sha256:f4bb6a43a985ccf0ab6657b69be5e9d16b2027cdb5ae3af99cb8884e9aabea7e done
#12 naming to docker.io/malice/clamav:latest done
#12 DONE 0.0s

Container ClamAV pull on machine localhost FAILED!
pull of engine _pull failed for engine ClamAV failed!
[ E x c e p t i o n ( ' _ p u l l   f a i l e d   f o r   e n g i n e   C l a m A V ' ) ]
jampe commented 3 years ago

this output doesn't look like a normal docker build output to me (e.g. see output of https://docs.docker.com/engine/reference/commandline/build/#build-with-url). What do you use to build the images? A quick google search yielded that for example Github actions produce similar output? The tool expects the "Successfully built" to be present in the output, that's why it won't proceed further.

You could patch line https://github.com/jampe/MultiAV-Extended/blob/master/multiav/dockerabstraction.py#L861 to match your output as a workaround.

jampe commented 3 years ago

closing issue due to inactivity and i'm not able to reproduce the issue at hand