Luis
Luis
Just a heads up that the latest kaniko version (v1.7.0 ) seems to be causing this problem for my team: https://github.com/GoogleContainerTools/kaniko/releases Downgrading to v1.6.0 fixed the problem.
https://sethmlarson.dev/blog/2021-10-18/tests-arent-enough-case-study-after-adding-types-to-urllib3
Also move the COPY . /code/ line to the bottom of the dockerfile, after the requirements have been installed. This will prevent unwanted cache invalidations
https://testdriven.io/blog/docker-best-practices/
It might make sense to follow a composition approach as in: https://github.com/luisgc93/chamath2cash/commit/9c9b706869e550b3caa82be97a2b33f1fa98b44c I.e. To create a Bot class that contains all the different clients plus some business logic.
WIP in branch `refactor-with-composition-approach`