Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the base image to jammy-20220421 and apt-cacher-ng to 3.7.4 #32

Merged
merged 1 commit into from
Jun 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM ubuntu:focal-20220113
FROM ubuntu:jammy-20220421

LABEL maintainer="sameer@damagehead.com"

ENV APT_CACHER_NG_VERSION=3.3 \
ENV APT_CACHER_NG_VERSION=3.7.4 \
APT_CACHER_NG_CACHE_DIR=/var/cache/apt-cacher-ng \
APT_CACHER_NG_LOG_DIR=/var/log/apt-cacher-ng \
APT_CACHER_NG_USER=apt-cacher-ng
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![apt-cacher-ng](https://github.com/sameersbn/docker-apt-cacher-ng/actions/workflows/build.yml/badge.svg)](https://github.com/sameersbn/docker-apt-cacher-ng/actions/workflows/build.yml)

# sameersbn/apt-cacher-ng:3.3-20200524
# sameersbn/apt-cacher-ng:3.7.4-20220421

- [Introduction](#introduction)
- [Contributing](#contributing)
Expand Down Expand Up @@ -53,7 +53,7 @@ Automated builds of the image are available on [Dockerhub](https://hub.docker.co
> **Note**: Builds are also available on [Quay.io](https://quay.io/repository/sameersbn/apt-cacher-ng)

```bash
docker pull sameersbn/apt-cacher-ng:3.3-20200524
docker pull sameersbn/apt-cacher-ng:3.7.4-20220421
```

Alternatively you can build the image yourself.
Expand All @@ -70,7 +70,7 @@ Start Apt-Cacher NG using:
docker run --name apt-cacher-ng --init -d --restart=always \
--publish 3142:3142 \
--volume /srv/docker/apt-cacher-ng:/var/cache/apt-cacher-ng \
sameersbn/apt-cacher-ng:3.3-20200524
sameersbn/apt-cacher-ng:3.7.4-20220421
```

*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/)*
Expand All @@ -83,7 +83,7 @@ You can customize the launch command of Apt-Cacher NG server by specifying argum
docker run --name apt-cacher-ng --init -it --rm \
--publish 3142:3142 \
--volume /srv/docker/apt-cacher-ng:/var/cache/apt-cacher-ng \
sameersbn/apt-cacher-ng:3.3-20200524 -h
sameersbn/apt-cacher-ng:3.7.4-20220421 -h
```

## Persistence
Expand Down Expand Up @@ -161,7 +161,7 @@ Using the [Command-line arguments](#command-line-arguments) feature, you can spe
docker run --name apt-cacher-ng --init -it --rm \
--publish 3142:3142 \
--volume /srv/docker/apt-cacher-ng:/var/cache/apt-cacher-ng \
sameersbn/apt-cacher-ng:3.3-20200524 -e
sameersbn/apt-cacher-ng:3.7.4-20220421 -e
```

The same can also be achieved on a running instance by visiting the url http://localhost:3142/acng-report.html in the web browser and selecting the **Start Scan and/or Expiration** option.
Expand All @@ -173,7 +173,7 @@ To upgrade to newer releases:
1. Download the updated Docker image:

```bash
docker pull sameersbn/apt-cacher-ng:3.3-20200524
docker pull sameersbn/apt-cacher-ng:3.7.4-20220421
```

2. Stop the currently running image:
Expand All @@ -193,7 +193,7 @@ To upgrade to newer releases:
```bash
docker run --name apt-cacher-ng --init -d \
[OPTIONS] \
sameersbn/apt-cacher-ng:3.3-20200524
sameersbn/apt-cacher-ng:3.7.4-20220421
```

## Shell Access
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3-20200524
3.7.4-20220421
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
version: '2.2'
version: '3'

services:
apt-cacher-ng:
restart: always
image: sameersbn/apt-cacher-ng:3.3-20200524
image: sameersbn/apt-cacher-ng:3.7.4-20220421
init: true
ports:
- "3142:3142"
Expand Down