P13: build-test-image-push pipeline, cache abhi nahi (baseline naap)
course-p13-ci / pipeline (push) Failing after 54s

This commit is contained in:
p13
2026-09-17 14:10:47 +00:00
parent 7bf5240d91
commit 46cee9924d
5 changed files with 79 additions and 17 deletions
+17
View File
@@ -0,0 +1,17 @@
# Do image, ek hi file se. Farak sirf DOOSRE stage ka hai - yaani cache.
# --target tools -> course-p13-builder:nocache (thanda ~/.m2)
# (poora) -> course-p13-builder:1 (garam ~/.m2)
FROM maven:3.9-eclipse-temurin-21 AS tools
# Job ko docker ka CLIENT chahiye. Daemon runner ka apna hai aur uska socket
# job ke container me pehle se laga hota hai - yahan sirf binary aa rahi hai.
RUN curl -fsSL https://download.docker.com/linux/static/stable/aarch64/docker-29.8.1.tgz \
| tar xz -C /tmp docker/docker \
&& mv /tmp/docker/docker /usr/local/bin/docker \
&& rm -rf /tmp/docker
FROM tools AS warm
# Ek baar poora build chala do - maqsad ~/.m2 bharna hai, jar banana nahi.
# `;` isliye hai `&&` nahi: seed build fail bhi ho to jitni jar utri wo reh jaayein.
COPY . /seed
RUN cd /seed && mvn -B -q clean verify ; rm -rf /seed