Comments (6)
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.
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.
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.
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.
@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.
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)
- No licence specified HOT 2
- Question : how to install non-oca modules present in other repo ? HOT 15
- lxml issue in recent python 3.6 images HOT 2
- Searchpanel multi with style Hierarchy like default searchpanel (many2one) HOT 1
- Deb external dependencies chicken and egg issue HOT 4
- Use Odoo Enterprise modules in test with OCA tools
- Question : how to use odoo Enterprise modules in test with OCA tools HOT 1
- Running the tests hangs indefinitely HOT 1
- Allow to configure deb build dependencies by repository HOT 1
- Create a docker-compose to run tests
- Is there a proper way to set server_wide_modules option before running tests? HOT 1
- need to re-enable workflow? HOT 1
- Windows CI
- Circular dependencies between repo
- Circular dependency feature not compatible with template's rebel modules HOT 4
- issue with same repo dependencies HOT 2
- Mismatch in test passing/failure vs. Odoo.sh and local Odoo dev installed from sources HOT 5
- Issue when installing existing addon from same repo from a PR
- Odoo 17 now requires pg_trgm HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oca-ci.