Switch frontend build to kaniko to avoid ephemeral-storage eviction
plugins/docker uses Docker-in-Docker which consumes significant ephemeral storage for image layers. On nodes with disk pressure (k8s-node1), the build pod gets evicted before completing. Switch to plugins/kaniko which builds OCI images without a Docker daemon, using significantly less ephemeral storage. Enable kaniko's built-in layer caching via a dedicated cache repo.
This commit is contained in:
parent
431e276d05
commit
3acf8db7af
1 changed files with 3 additions and 9 deletions
12
.drone.yml
12
.drone.yml
|
|
@ -22,12 +22,7 @@ steps:
|
||||||
- npx vitest run
|
- npx vitest run
|
||||||
|
|
||||||
- name: Build frontend image
|
- name: Build frontend image
|
||||||
image: plugins/docker
|
image: plugins/kaniko
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
memory: 2147483648
|
|
||||||
limits:
|
|
||||||
memory: 4294967296
|
|
||||||
settings:
|
settings:
|
||||||
username: viktorbarzin
|
username: viktorbarzin
|
||||||
password:
|
password:
|
||||||
|
|
@ -35,9 +30,8 @@ steps:
|
||||||
repo: viktorbarzin/immoweb
|
repo: viktorbarzin/immoweb
|
||||||
dockerfile: frontend/Dockerfile
|
dockerfile: frontend/Dockerfile
|
||||||
context: frontend
|
context: frontend
|
||||||
cache_from:
|
enable_cache: true
|
||||||
- viktorbarzin/immoweb:builder
|
cache_repo: viktorbarzin/immoweb-cache
|
||||||
- viktorbarzin/immoweb:latest
|
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- ${DRONE_BUILD_NUMBER}
|
- ${DRONE_BUILD_NUMBER}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue