•  
      request #31542 Stop building a "fat" Docker image to prepare the sources
    Infos
    #31542
    Thomas Gerbet (tgerbet)
    2023-04-28 11:19
    2023-04-03 16:21
    33129
    Details
    Stop building a "fat" Docker image to prepare the sources

    Currently our strategy to get an environment with all the tools we need is to install them into a Docker image and launch the nix-daemon as root when needing to use nix-build in the build process. While this work this as multiple disadvantages:

    • the docker build phase is slow because the layer with all the tools we need is big and so it take time to export
    • running the resulting container can also be slow, starting the container takes about 20 seconds in my env when using --read-only since the content needs to be copied
    • we have to run some things as root (so we do some setuid tricks to do it)
    • it does not allow to share the /nix folder between multiple agent (see also request #30400)
    Dev tools
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2023-04-17
    Attachments
    Empty
    References
    Referencing request #31542

    Git commit

    tuleap/tools/jenkinsfile-library

    Adapt the build of the RPMs 41175337ea
    Fix Tuleap Enterprise 14.7 build master 1c2126e89e
    Environment variables are not set when building the RPMs master a42ce7f730

    tuleap/tools/release-manifest

    Adapt sources preparation master 3a009e1e7e

    tuleap/tuleap/stable

    Closes request #31542 Stop building a "fat" Docker image to prepare the sources 6542327007
    Merge commit 'refs/changes/66/28266/59' of ssh://gerrit.tuleap.net:29418/tuleap e0f4cfc452
    Fix the nightly and "security scan deps" pipelines b058460b64
    Fix the daily scan for vulnerabilities pipeline d709ffc5ed
    Allow to exec bin when building packages 88da85968a
    Fix pipeline publishing JS libraries 91233cf4a3

    tuleap/u/tgerbet/tools/clamav-scanner

    Adapt the build of the RPMs 41175337ea
    Fix Tuleap Enterprise 14.7 build 1c2126e89e
    Environment variables are not set when building the RPMs a42ce7f730

    tuleap/u/tgerbet/tools/jenkinsfile-library

    Adapt the build of the RPMs update-nix-image 41175337ea
    Fix Tuleap Enterprise 14.7 build fix-te-147-build 1c2126e89e
    Environment variables are not set when building the RPMs variable-build-rpm a42ce7f730

    tuleap/u/tgerbet/tools/release-manifest

    Adapt sources preparation update-source-preparation 3a009e1e7e

    Follow-ups