Skip to content

Commit 38d73f3

Browse files
authored
Merge pull request #3 from stackhpc/rocky8
Use Rocky8 with Squid 4.15
2 parents 5da1c3b + 97c5a9a commit 38d73f3

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM centos:centos8
1+
FROM rockylinux:8.6
22
LABEL maintainer=StackHPC
33

4-
ENV SQUID_VERSION=4.4 \
4+
ENV SQUID_VERSION=4.15 \
55
SQUID_CACHE_DIR=/var/spool/squid \
66
SQUID_LOG_DIR=/var/log/squid \
77
SQUID_USER=squid

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# stackhpc/squid:4.4-8
1+
# stackhpc/squid:4.15
22

33
- [Introduction](#introduction)
44
- [Contributing](#contributing)
@@ -27,7 +27,7 @@ Based on the Squid container by [sameersbn](https://github.com/sameersbn/docker-
2727
- Uses a disk cache (4 GB) in `/var/spool/squid`
2828
- Configures for logging to files under `/var/log/squid`
2929
- Raises the RAM cache to 768 MB (default is 256 MB)
30-
- Raises the maximum object size to 16 MB (default is 512 KB)
30+
- Raises the maximum object size to 64 MB (default is 512 KB)
3131

3232
## Contributing
3333

@@ -53,13 +53,13 @@ If the above recommendations do not help then [report your issue](../../issues/n
5353
## Installation
5454

5555
```bash
56-
docker pull stackhpc/squid:4.4-8
56+
docker pull stackhpc/squid:4.15
5757
```
5858

5959
Alternatively you can build the image yourself.
6060

6161
```bash
62-
docker build -t stackhpc/squid:4.4-8 github.com/stackhpc/docker-squid
62+
docker build -t stackhpc/squid:4.15 github.com/stackhpc/docker-squid
6363
```
6464

6565
## Quickstart
@@ -71,7 +71,7 @@ docker run --name squid -d --restart=always \
7171
--publish 3128:3128 \
7272
--volume /srv/docker/squid/log:/var/log/squid \
7373
--volume /srv/docker/squid/cache:/var/spool/squid \
74-
stackhpc/squid:4.4-8
74+
stackhpc/squid:4.15
7575
```
7676

7777
*Alternatively, you can use the sample [docker-compose.yml](docker-compose.yml) file to start the container using [Docker Compose](https://docs.docker.com/compose/)*
@@ -85,7 +85,7 @@ docker run --name squid -it --rm \
8585
--publish 3128:3128 \
8686
--volume /srv/docker/squid/log:/var/log/squid \
8787
--volume /srv/docker/squid/cache:/var/spool/squid \
88-
stackhpc/squid:4.4-8 -h
88+
stackhpc/squid:4.15 -h
8989
```
9090

9191
## Persistence
@@ -110,7 +110,7 @@ docker run --name squid -d --restart=always \
110110
--publish 3128:3128 \
111111
--volume /path/to/squid.conf:/etc/squid/squid.conf \
112112
--volume /srv/docker/squid/cache:/var/spool/squid \
113-
stackhpc/squid:4.4-8
113+
stackhpc/squid:4.15
114114
```
115115

116116
To reload the Squid configuration on a running instance you can send the `HUP` signal to the container.
@@ -158,7 +158,7 @@ To upgrade to newer releases:
158158
1. Download the updated Docker image:
159159

160160
```bash
161-
docker pull stackhpc/squid:4.4-8
161+
docker pull stackhpc/squid:4.15
162162
```
163163

164164
2. Stop the currently running image:
@@ -178,7 +178,7 @@ To upgrade to newer releases:
178178
```bash
179179
docker run -name squid -d \
180180
[OPTIONS] \
181-
stackhpc/squid:4.4-8
181+
stackhpc/squid:4.15
182182
```
183183

184184
## Shell Access

squid.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ http_port 3128
6161
# Uncomment and adjust the following to add a disk cache directory.
6262
cache_dir ufs /var/spool/squid 4096 16 256
6363
cache_mem 768 MB
64-
maximum_object_size_in_memory 32 MB
64+
maximum_object_size_in_memory 64 MB
6565

6666
# Leave coredumps in the first cache dir
6767
coredump_dir /var/spool/squid

0 commit comments

Comments
 (0)