Skip to content

Commit

Permalink
Fix clamAV
Browse files Browse the repository at this point in the history
clamAV scanning is failing to start its Docker container because the
step invoking it is running within a Docker image. The `docker.sock`
file needs to be mounted so Docker-in-Docker works.
  • Loading branch information
rustydb committed Jan 31, 2023
1 parent 24629c9 commit 55a0e0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Jenkinsfile.github
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ pipeline {

agent {
docker {
args '-u root' // Build Python RPMs as root for Python rpm macros to build with the right sitelib.
// Mount docker.sock so the clamAV container can run inside of the Docker image, we need to run in a Docker image to get the right os-release file.
args '-u root -v /var/run/docker.sock:/var/run/docker.sock -v /usr/bin/docker:/usr/bin/docker --group-add 999'
label "metal-gcp-builder"
reuseNode true
image "${pythonImage}:${PYTHON_VERSION}"
Expand Down

0 comments on commit 55a0e0e

Please sign in to comment.