Menu

Post image 1
Post image 2
1 / 2
0

30-Day Cloud & DevOps Challenge: Day 10 — Docker in CI

DEV Community·Michelle·29 days ago
#OcalaS01
#docker#issue#after#build#fullscreen#jenkins
Reading 0:00
15s threshold

Yesterday, my Jenkins pipeline could install dependencies and build the frontend. But there was a missing piece: Docker. Without it, I couldn't package my applications into containers — the whole point of this challenge! Today, I fixed that. I configured Jenkins to build Docker images for both my backend and frontend, turning my CI pipeline into a complete build system. First: Why Docker in CI? Before Docker in CI The pipeline could: Pull code from GitHub Install dependencies Build the frontend Could NOT create Docker images After Docker in CI The pipeline can: Pull code from GitHub Install dependencies Build the frontend Create Docker images for backend AND frontend Why this matters: Docker images are what actually get deployed to production. Without them, you can't run your app anywhere else. Step 1: Giving Jenkins Docker Access The Problem Jenkins runs in a container. By default, containers can't access the host's Docker daemon.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More