Gitlab Dependency Proxy vs Docker pull limit

Depuis le mois d’août 2020, Docker a instauré une limite de 100 pull que l’on peut faire gratuitement toutes les 6h. Comme chaque job Gitlab-CI nécessite le pull d’une image Docker, on peut vite se retrouver à dépasser cette limite, ce qui fera échouer vos jobs avec une erreur comme celle-ci : ERROR: Preparation failed: failed to pull image "node:12.19" with specified policies [always]: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit (manager.go:205:1s) Afin de remédier à ce désagrément, il est possible de mettre à profit le Dependency Proxy de Gitlab. Il fonctionne comme un proxy local, qui permet de retourner une image en cache lorsqu’il reçoit une requête ...

October 21, 2021 · Nicolas Sauvage

Easily deploy your blog with Hugo and Gitlab Pages

Hugo allow us to quickly create a blog (or any static website) and start creating content by writing markdown files. In order to deploy the website there are many solutions, such as Netlify, Google Firebase or Amazon S3… For my developer blog, I chose Gitlab Pages as it integrates easily with my project on Gitlab. Gitlab configuration Create a .gitlab-ci.yml file at the root of your project, and add the following code to automatically deploy your Hugo website at every merge to the master branch. ...

January 25, 2021 · Nicolas Sauvage