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

Base image for releases #6

Open
fsimonis opened this issue Feb 14, 2024 · 2 comments
Open

Base image for releases #6

fsimonis opened this issue Feb 14, 2024 · 2 comments

Comments

@fsimonis
Copy link
Member

We currently repeat the dependencies of preCICE in some docker builds, requiring changes in all pipelines when base requirements change.
Assuming ubuntu:22.04 as baseline and ubuntu:24.04 as latest supported LTS.

flowchart LR

  A[ubuntu:22.04]--> ACI[ci-ubuntu-2204]
  A --> |download & install deb| RV[precice/precice:3.0.0]
  A --> |build & install deb| RN[precice/precice:nightly]
Loading

A better solution may be to install common base dependencies in a base docker image and build from there.

flowchart LR

  A[ubuntu:22.04]--> AB[base-ubuntu-2204]

  AB--> ACI[ci-ubuntu-2204]
  AB --> ICI[ci-intel]
  AB --> |build & install deb| RN[precice/precice:nightly]
  AB --> |download & install deb| RV[precice/precice:3.0.0]
  B[ubuntu:24.04] --> BCI[ci-ubuntu-2404]
  
  style AB stroke:#f00
Loading

What these parts include:

base

build-essential cmake git libboost-all-dev libeigen3-dev libxml2-dev petsc-dev python3-dev python3-numpy lsb-release wget

ci-images

ccache gfortran lcov libbenchmark-dev lintian python3-pip python3-venv curl
"clang"

bloat in release

This leads to bloat in releases: cmake git build-essential libeigen3-dev lsb_release
These should be removed.

@MakisH
Copy link
Member

MakisH commented Feb 19, 2024

Not sure if this is the right issue to ask this, but why do we need the separation between build & install deb and download & install deb? Wouldn't our lives be easier if we just always build & install deb?

@fsimonis
Copy link
Member Author

fsimonis commented Mar 7, 2024

Building preCICE takes time and makes the result less consistent than installing our official Debian images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants