Sign inSign up

jfxs/alpine-squid

By jfxs

•Updated 2 months ago

A lightweight automatically updated squid multiarch amd64 and arm64 Docker image.

Image
Security
1

10K+

jfxs/alpine-squid repository overview

⁠Docker Alpine Squid

Software License Pipeline Status

A Squid⁠ Docker image:

  • lightweight image based on Alpine Linux only 8 MB,
  • multiarch with support of amd64 and arm64,
  • non-root container user,
  • automatically updated by comparing software bill of materials (SBOM) changes,
  • image signed with Cosign⁠,
  • a software bill of materials (SBOM) attestation added using Syft⁠,
  • available on Docker Hub and Quay.io.

GitLab The main repository.

Docker Hub The Docker Hub registry.

Quay.io The Quay.io registry.

⁠Running the Squid proxy

docker run -d --rm --name squid -p 3128:3128 jfxs/alpine-squid

or

docker run -d --rm --name squid -p 3128:3128 quay.io/ifxs/alpine-squid

The configuration of Squid is the default one, with some additions:

/etc/squid/squid.conf

# Include a folder of config files
include /etc/squid/conf.d/*.conf

/etc/squid/conf.d/squid-docker.conf

# Allow from all hosts
acl all src 0.0.0.0/0
http_access allow all
# Specific configuration for Docker usage
pid_filename none
logfile_rotate 0
access_log stdio:/dev/stdout
cache_log stdio:/dev/stderr

/!\ There is no filtering access to Squid.

⁠Built with

Docker latest tag is 7.6.0-001, 7.6, 7⁠ and has:

NameVersionType
squid7.6-r0apk

Dockerhub Overview page⁠ has the details of the last published image.

⁠Versioning

Docker tag definition:

  • the Squid version used,
  • a dash
  • an increment to differentiate build with the same version starting at 001
<squid_version>-<increment>

Example: 5.7.0-003

⁠Signature and attestation

Cosign⁠ public key:

-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEa3yV6+yd/l4zh/tfT6Tx+zn0dhy3
BhFqSad1norLeKSCN2MILv4fZ9GA6ODOlJOw+7vzUvzZVr9IXnxEdjoWJw==
-----END PUBLIC KEY-----

The public key is also available online: https://gitlab.com/op_so/docker/cosign-public-key/-/raw/main/cosign.pub⁠.

To verify an image:

cosign verify --key cosign.pub $IMAGE_URI

To verify and get the software bill of materials (SBOM) attestation:

cosign verify-attestation --key cosign.pub --type spdxjson $IMAGE_URI | jq '.payload | @base64d | fromjson | .predicate'

⁠Authors

⁠License

This program is free software: you can redistribute it and/or modify it under the terms of the MIT License (MIT). See the LICENSE⁠ for details.

Tag summary

Content type

Image

Digest

sha256:84d37a6e1…

Size

10.8 MB

Last updated

2 months ago

docker pull jfxs/alpine-squid