Skip to content

Docker image not buildable due to outdated base image packages #1514

@JOOpdenhoevel

Description

@JOOpdenhoevel

Quick summary

Building the docker image from scratch on the current dev branch fails due to outdated package version requirements.

Details

The dockerfile bases the docker image on the state of Ubuntu 22.04 in January 2023. However, it only pulls the new package list (apt-get update) without actually upgrading the system state (apt-get upgrade). When it then later tries to install new packages, the dependencies of the existing packages force it to use old package versions that don't exist anymore. The package pulling thus leads to multiple 404 errors and leads to a docker build failure.

Steps to Reproduce

  1. Assure that docker containers and images are cleaned:
docker container ls # List existing containers
docker container stop <Container IDs> # Remove FINN containers "xilinx/finn:*"
docker image ls # List existing images
docker image <Image IDs> # Remove FINN containers "xilinx/finn:*"
  1. Clone the FINN repository
  2. Checkout the dev branch, with commit hash: 37f3685
  3. Start a docker container command: ./run-docker.sh quicktest

Actual behavior

At step 9 or 13 of the docker build command, where multiple APT packages are supposed to be installed, the package manager will hit multiple 404 errors where packages are apparently not available anymore. This will lead to a failed docker build and thus the inability to use FINN.

Optional

Possible fix

Two fixes possible: Either use a new base image, for example FROM ubuntu:jammy-20260109, or insert an apt-get upgrade -y in the first APT installation step.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions