Compare commits

...

4 Commits

Author SHA1 Message Date
Jarno Rankinen 0c0d9efc0f
Update build.yaml 2024-06-10 15:50:16 +03:00
Jarno Rankinen ca04fdd5f4
Create build.yaml 2024-06-10 15:45:39 +03:00
Jarno Rankinen f204d03f9e
Create Dockerfile 2024-06-10 15:42:35 +03:00
Jarno Rankinen 566484ea8f
Update README.md 2024-06-10 15:41:55 +03:00
3 changed files with 45 additions and 2 deletions

38
.github/workflows/build.yaml vendored Normal file
View File

@ -0,0 +1,38 @@
name: Daily build
# Controls when the workflow will run
on:
schedule:
- cron: "39 19 * * *"
push:
branches:
- master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v5
name: Daily build
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/0ranki/clamav-docker:latest

3
Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM docker.io/clamav/clamav:latest
RUN sed -i s/localhost/127.0.0.1/g /usr/local/bin/clamdcheck.sh

View File

@ -1,4 +1,6 @@
# clamav-docker-arm64
Arm64 container images of ClamAV
Arm64 and amd64 container images of ClamAV
Built manually according to instructions at https://github.com/Cisco-Talos/clamav/blob/main/README.Docker.md#building-the-clamav-image on top of Alpine Linux
The images have a modified clamdcheck.sh script, changing "localhost" to "127.0.0.1", as the healtcheck failed when running the container using `podman kube play`
Built manually according to instructions at https://github.com/Cisco-Talos/clamav/blob/main/README.Docker.md#building-the-clamav-image from the docker.io/clamav/clamav image.