The Red Hat Ecosystem Catalog is the official source for discovering and learning more about the Red Hat Ecosystem of both Red Hat and certified third-party products and services.
We’re the world’s leading provider of enterprise open source solutions—including Linux, cloud, container, and Kubernetes. We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.
Varnish available as container is a base platform for running Varnish server or building Varnish-based application. Varnish Cache stores web pages in memory so web servers don't have to create the same web page over and over again. Varnish Cache serves pages much faster than any application server, giving the website a significant speed up.
The image can be used as a base image for other applications based on Varnish Cache 7.0 using Openshift's s2i feature.
For this, the same application can also be built using the standalone S2I application on systems that have it available:
```
$ s2i build https://github.com/sclorg/varnish-container.git --context-dir=7/test/test-app/ rhel8/varnish-7 sample-server
```
Accessing the application:
$ curl 127.0.0.1:8080
No further configuration is required.
The Varnish Cache 7.0 Container image supports the S2I tool (see Usage section). Note that the default.vcl configuration file in the directory accessed by S2I needs to be in the VCL format.
No special environment variables or volumes available.
Varnish logs into standard output, so the log is available in the container log. The log can be examined by running:
podman logs <container>
Dockerfile and other sources for this container image are available on
https://github.com/sclorg/varnish-container.
In that repository you also can find another versions of Python environment Dockerfiles.
Dockerfile for RHEL8 it's Dockerfile.rhel8, for RHEL9 it's Dockerfile.rhel9,
Dockerfile for CentOS Stream 9 is called Dockerfile.c9s,
Dockerfile for CentOS Stream 10 is called Dockerfile.c10s
and the Fedora Dockerfile is called Dockerfile.fedora.
The following information was extracted from the dockerfile and other sources.
| Canonical image ID | Varnish 7 |
| Summary | Platform for running Varnish or building Varnish-based application |
| Description | Varnish available as container is a base platform for running Varnish server or building Varnish-based application. Varnish Cache stores web pages in memory so web servers don't have to create the same web page over and over again. Varnish Cache serves pages much faster than any application server; giving the website a significant speed up. |
| Provider | Red Hat |
| Maintainer | Uhliarik Lubos <luhliari@redhat.com> |
| Repository name | rhel10/varnish-7 |
| Image version | 10.1 |
| Architecture | amd64 |
| Usage | s2i build https://github.com/sclorg/varnish-container.git --context-dir=7/test/test-app/ rhel10/varnish-7 sample-server |
| Exposed ports | 8080:http,8443:https |
| Working directory | /opt/app-root/src |
Use a registry service account token to authenticate your container client. This allows you to pull images without using your personal Red Hat credentials, which is recommended for CI/CD pipelines and automated deployments.
Run the following command, then enter your registry token credentials when prompted by the terminal.
Pull the image
Use the following instructions to get images from a Red Hat container registry using your Red Hat login.
Run the following command, then enter your login credentials when prompted by the terminal.
Pull the image
Use the following instructions to get images from a Red Hat container registry without providing authentication.
Use the following command(s) from a system with podman installed.
Source code is available for all Red Hat UBI-based images in the form of downloadable containers. Here are a few things you should know about Red Hat source containers.
Use skopeo to copy the source image to a local directory
Inspect the image
Untar the contents
Begin examining and using the content.