Giter VIP home page Giter VIP logo

Comments (6)

fcayre avatar fcayre commented on July 30, 2024 1

I had the same problem last week with another Ubuntu package required by my tests. I think this happens when a package has a security vulnerability: it is then removed to avoid being installed and cause a security hole on the host, just because of an outdated apt database. I think it is a good practice to always apt update before apt install.

from oca-ci.

JuanDCG avatar JuanDCG commented on July 30, 2024

I'm not an expert about deb packaging neither Runbot or the Runboat that you want build with kubernetes technologies.

From my point of view, your root mistake cause is continue using deb packages inside containers.

Your approach to build Odoo CI with k8s (CDeployment) is well raised, but I propose change all possible deb dependencies with Git dependencies.

Nowadays, in kubernetes environment, the best approach is work with GitOps workflow.

I hope give you another point of view.

from oca-ci.

zeroheure avatar zeroheure commented on July 30, 2024

One easy to run solution is to add an apt cache proxy like apt-cacher-ng. Then you will not update the proxy if packages are not available. Additionaly it will run faster and with less bandwith.

from oca-ci.

gurneyalex avatar gurneyalex commented on July 30, 2024

in a docker container, you cannot rely on an apt update happening at build time of the image: 1. typically, to have a smaller image, you will get an apt-get clean in the Dockerfile and 2. there may be a new version of the tool you want to install pushed in the repository between the building of the image and the running of the container (and these are typically secutrity updates.

So if you need to install things at container runtime, you need to apt-get update (you may want to do this lazily, i.e. try to install and if you fail, apt update and try again), but I think a better approach is to clean up the apt cache in the base docker image and systematically update in the container.

from oca-ci.

gurneyalex avatar gurneyalex commented on July 30, 2024

@zeroheure yes but no. The goal here is to test using the versions of dependencies available in stable distributions, with security patches applied.

from oca-ci.

sbidoul avatar sbidoul commented on July 30, 2024

The apt update needs to be done around here. We need to do it only if there any external dependencies to install, for performance reasons.

from oca-ci.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.