ministryofjustice / staff-device-dhcp-server

The ISC KEA server for serving DHCP requests (via a Docker image)
https://github.com/ministryofjustice/cloud-operations#dhcp--dns
MIT License
2 stars 3 forks source link

:wrench: Upgrade Ruby / Alpine / KEA #241

Closed Gary-H9 closed 1 year ago

Gary-H9 commented 1 year ago

This PR updates the following:

Such a substantial number of upgrades are required since we do not build from source i.e. we are reliant on the images available online, and associated repositories which are available for each version of Alpine. More detail below.

Why are you upgrading KEA?

The upgrade to KEA is required as when building with ruby:3.1.2-alpine3.14 and KEA 2.0 the following errors occur during build:

...
#5 18.31     required by: world[isc-kea-admin]
#5 18.31   isc-kea-ctrl-agent (no such package):
#5 18.31     required by: world[isc-kea-ctrl-agent]
#5 18.31   isc-kea-dhcp4 (no such package):
#5 18.31     required by: world[isc-kea-dhcp4]
#5 18.31   isc-kea-hook-ha (no such package):
#5 18.31     required by: world[isc-kea-hook-ha]
#5 18.31   isc-kea-hook-lease-cmds (no such package):
#5 18.31     required by: world[isc-kea-hook-lease-cmds]
#5 18.31   isc-kea-hook-stat-cmds (no such package):
#5 18.31     required by: world[isc-kea-hook-stat-cmds]
#5 18.31   isc-kea-perfdhcp (no such package):
#5 18.31     required by: world[isc-kea-perfdhcp]
...

This is because KEA 2.0 is not available in the Alpine 3.14 image.
KEA 2.2 is however available in the Alpine 3.14 image.

The changes above encapsulate the minimum number of changes we can make to upgrade the Alpine image.

Prior to merging we need to:

Gary-H9 commented 1 year ago

Tested in Dev and Pre-Prod, containers load fine and there are no errors of note in the startup. We have also tested loading new config by editing a site in Pre-Prod and watching the container reload it.