Skip to content

Commit 78915a3

Browse files
authored
Merge pull request #145 from jens-mp/remove-obsolete-images
Remove obsolete images for Debian Buster, Ubuntu 16 and Ubuntu 18
2 parents ace5828 + 878a572 commit 78915a3

File tree

11 files changed

+18
-231
lines changed

11 files changed

+18
-231
lines changed

.github/workflows/build-all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
pull-requests: read
1818
outputs:
1919
repo_owner: ${{ steps.repo_owner.outputs.lowercase }}
20-
os_matrix: "{\"os_version\":[\"debian10\",\"debian11\",\"ubuntu16\",\"ubuntu18\",\"ubuntu20\"]}"
20+
os_matrix: "{\"os_version\":[\"debian11\",\"ubuntu20\"]}"
2121
steps:
2222
- name: Check out the repo
2323
uses: actions/checkout@v4

.github/workflows/trivy-all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
needs: workflow_setup
2626
strategy:
2727
matrix:
28-
os_version: [ debian10, debian11, ubuntu16, ubuntu18, ubuntu20 ]
28+
os_version: [ debian11, ubuntu20 ]
2929
steps:
3030
- name: Checkout code
3131
uses: actions/checkout@v4

Makefile

Lines changed: 5 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,13 @@
1313
# limitations under the License.
1414

1515

16-
# The default make goal is ubuntu18
17-
.DEFAULT_GOAL := ubuntu18
16+
# The default make goal is ubuntu20
17+
.DEFAULT_GOAL := ubuntu20
1818

19-
all: bullseye buster ubuntu16 ubuntu18 ubuntu20 controller
19+
all: bullseye ubuntu20 controller
2020

2121
bullseye:
22-
docker build -f "build/Dockerfile.bullseye" -t indy-node-container/indy_node:bullseye ./build
23-
24-
buster:
25-
docker build -f "build/Dockerfile.buster" -t indy-node-container/indy_node:buster ./build
26-
27-
ubuntu16:
28-
docker build -f "build/Dockerfile.ubuntu16" -t indy-node-container/indy_node:ubuntu16 ./build
29-
30-
ubuntu18:
31-
docker build -f "build/Dockerfile.ubuntu18" -t indy-node-container/indy_node:ubuntu18 ./build
22+
docker build -f "build/Dockerfile.debian11" -t indy-node-container/indy_node:bullseye ./build
3223

3324
ubuntu20:
3425
docker build -f "build/Dockerfile.ubuntu20" -t indy-node-container/indy_node:ubuntu20 ./build
@@ -40,22 +31,13 @@ controller:
4031
clean_bullseye:
4132
-docker image rm indy-node-container/indy_node:bullseye
4233

43-
clean_buster:
44-
-docker image rm indy-node-container/indy_node:buster
45-
46-
clean_ubuntu16:
47-
-docker image rm indy-node-container/indy_node:ubuntu16
48-
49-
clean_ubuntu18:
50-
-docker image rm indy-node-container/indy_node:ubuntu18
51-
5234
clean_ubuntu20:
5335
-docker image rm indy-node-container/indy_node:ubuntu20
5436

5537
clean_controller:
5638
-docker image rm indy-node-container/indy_node_controller
5739

58-
clean: clean_bullseye clean_buster clean_ubuntu16 clean_ubuntu18 clean_ubuntu20 clean_controller
40+
clean: clean_bullseye clean_ubuntu20 clean_controller
5941

6042

6143
# all check targets require a local trivy installation - see https://aquasecurity.github.io/trivy/
@@ -66,24 +48,6 @@ check_bullseye:
6648
# -xdg-open trivy-reports/bullseye.html
6749
-trivy image --ignore-unfixed --severity HIGH,CRITICAL indy-node-container/indy_node:bullseye
6850

69-
check_buster:
70-
mkdir -p trivy-reports
71-
-trivy image --ignore-unfixed --severity HIGH,CRITICAL --format template --template "@trivy/html.tpl" -o trivy-reports/buster.html indy-node-container/indy_node:buster
72-
# -xdg-open trivy-reports/buster.html
73-
-trivy image --ignore-unfixed --severity HIGH,CRITICAL indy-node-container/indy_node:buster
74-
75-
check_ubuntu16:
76-
mkdir -p trivy-reports
77-
-trivy image --ignore-unfixed --severity HIGH,CRITICAL --format template --template "@trivy/html.tpl" -o trivy-reports/ubuntu16.html indy-node-container/indy_node:ubuntu16
78-
# -xdg-open trivy-reports/ubuntu16.html
79-
-trivy image --ignore-unfixed --severity HIGH,CRITICAL indy-node-container/indy_node:ubuntu16
80-
81-
check_ubuntu18:
82-
mkdir -p trivy-reports
83-
-trivy image --ignore-unfixed --severity HIGH,CRITICAL --format template --template "@trivy/html.tpl" -o trivy-reports/ubuntu18.html indy-node-container/indy_node:ubuntu18
84-
# -xdg-open trivy-reports/ubuntu18.html
85-
-trivy image --ignore-unfixed --severity HIGH,CRITICAL indy-node-container/indy_node:ubuntu18
86-
8751
check_ubuntu20:
8852
mkdir -p trivy-reports
8953
-trivy image --ignore-unfixed --severity HIGH,CRITICAL --format template --template "@trivy/html.tpl" -o trivy-reports/ubuntu20.html indy-node-container/indy_node:ubuntu20

README.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ See [here](run/) for instructions how to setup and run the indy node images from
1717

1818
Currently we are providing the following stable indy node images. All those images use the latest Indy Node 1.12 version. The images differ by base image and are tagged accordingly:
1919

20-
- [Ubuntu 16](https://github.com/hyperledger/indy-node-container/pkgs/container/indy-node-container%2Findy_node/39147763?tag=latest-ubuntu16) :warning:
21-
- This image is **deprecated**. We will soon remove the image build from the CD pipeline. Please change to one of the other stable images.
22-
- [Ubuntu 18](https://github.com/hyperledger/indy-node-container/pkgs/container/indy-node-container%2Findy_node/39147763?tag=latest-ubuntu18)
23-
- [Debian Buster 10](https://github.com/hyperledger/indy-node-container/pkgs/container/indy-node-container%2Findy_node/37273284?tag=latest-buster) :warning:
24-
- :warning: This image is **deprecated.** We will soon remove the image build from the CD pipeline. Please change to one of the other stable images.
2520
- [Debian Bullseye 11](https://github.com/hyperledger/indy-node-container/pkgs/container/indy-node-container%2Findy_node/37273284?tag=latest-bullseye)
2621

2722
Additionally, we build an experimental image for Indy node 1.13 RC testing:
@@ -35,17 +30,17 @@ See [here](run/) for instructions how to setup and run the images.
3530
To build the node image you can use `docker` from the project root like
3631

3732
```bash
38-
docker build -f "build/Dockerfile.ubuntu18" -t indy-node-container/indy_node:ubuntu18 ./build
33+
docker build -f "build/Dockerfile.ubuntu20" -t indy-node-container/indy_node:ubuntu20 ./build
3934
```
4035

4136
or you can use `make` which provides some shortcuts
4237

4338
```bash
44-
# make [bullseye|buster|ubuntu16|ubuntu18|ubuntu20|all|controller] (default is ubuntu18), e.g.
45-
make ubuntu18
39+
# make [bullseye|ubuntu20|all|controller] (default is ubuntu20), e.g.
40+
make ubuntu20
4641

4742
# make clean removes images
48-
# make [clean|clean_bullseye|clean_buster|clean_ubuntu16|clean_ubuntu18|clean_ubuntu20|clean_controller], e.g. this removes all images
43+
# make [clean|clean_bullseye|clean_ubuntu20|clean_controller], e.g. this removes all images
4944
make clean
5045
```
5146

@@ -54,8 +49,8 @@ Please note that `make` generates different tags than the Github action (see [pa
5449
If you have [trivy](https://aquasecurity.github.io/trivy) installed, you can use the make check_* targets to run a trivy check against the local images:
5550

5651
```bash
57-
#make [check_bullseye|check_buster|check_ubuntu16|check_ubuntu18|check_ubuntu20|check_controller], e.g.
58-
make check_ubuntu18
52+
#make [check_bullseye|check_ubuntu20|check_controller], e.g.
53+
make check_ubuntu20
5954
```
6055

6156
Trivy HTML reports are created in `./trivy-reports`.

build/Dockerfile.debian10

Lines changed: 0 additions & 76 deletions
This file was deleted.

build/Dockerfile.ubuntu16

Lines changed: 0 additions & 25 deletions
This file was deleted.

build/Dockerfile.ubuntu18

Lines changed: 0 additions & 71 deletions
This file was deleted.

run/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ INDY_NETWORK_NAME=ssi4de
33
INDY_NODE_NAME=GS1Germany
44

55
# Choose one of the avaiable images
6-
IMAGE=ghcr.io/hyperledger/indy-node-container/indy_node:latest-ubuntu18
6+
IMAGE=ghcr.io/hyperledger/indy-node-container/indy_node:latest-ubuntu20
77

88
# You likely want to keep these default values:
99
SOCK=/var/run/docker.sock

run/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,6 @@ Our current approach to handle pool restarts is to have the node controller runn
172172

173173
If wou want to use the node controller, the variables `SOCK`, `NODE_CONTAINER_NAME`, `CONTROLLER_CONTAINER`, and `IMAGE_NAME_CONTROLLER` need to be set in the `.env` file. Appropriate default values are set in [the default file](/.env).
174174

175-
If the node controller container is running and has access to the docker socket of the host, the node will be restarted upon pool restart commands and will participate in a network upgrade. The decision mechanism for whether to accept or reject an upgrade based on available deb package versions is part of indy node server and hence unchanged. However, if an upgrade is accepted, the container will be stopped, pulled, and restarted. Use a tag like `latest-ubuntu18` and make sure that a new `latest` image is available before the network upgrade commences.
175+
If the node controller container is running and has access to the docker socket of the host, the node will be restarted upon pool restart commands and will participate in a network upgrade. The decision mechanism for whether to accept or reject an upgrade based on available deb package versions is part of indy node server and hence unchanged. However, if an upgrade is accepted, the container will be stopped, pulled, and restarted. Use a tag like `latest-ubuntu20` and make sure that a new `latest` image is available before the network upgrade commences.
176176

177177

test/.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
INDY_NETWORK_NAME=idunion_local_test
2-
IMAGE_NAME_NODE=ghcr.io/hyperledger/indy-node-container/indy_node:latest-buster
2+
IMAGE_NAME_NODE=ghcr.io/hyperledger/indy-node-container/indy_node:latest-bookworm
33
IMAGE_NAME_CONTROLLER=ghcr.io/hyperledger/indy-node-container/indy_node_controller
4-
REFERENCE_IMAGE_NAME_NODE=ghcr.io/hyperledger/indy-node-container/indy_node:latest-ubuntu16
4+
REFERENCE_IMAGE_NAME_NODE=ghcr.io/hyperledger/indy-node-container/indy_node:latest-ubuntu20
55

66
INDY_NODE_IP_1=0.0.0.0
77
INDY_NODE_PORT_1=9701

0 commit comments

Comments
 (0)