简体   繁体   中英

How to create docker image from jenkins running on docker

I wanted to practice CI/CD with docker. There are many discussion going on this topic. But I'm very new these technologies I would grateful if someone can help me

I created my jenkins server on docker using AWS Ec2 instance. I want to create my web application container from a jenkin job.

How do I do it ? If it is possible how do I deploy my new container ?

How do I practice CD for each build

这个来自Katacoda的(免费)在线教程将引导您完成: 使用Jenkins构建Docker映像

I found a really nice solution in this link .

It provides a cloudformation stack for creating an ECS cluster running a jenkins master container that can run jenkins slave containers to run individual builds. I later used this image as the slave image for my builds, as it container docker in docker (dind) and can build docker images of it's own and publish them to a repository.

For a more in-depth explanation of this architecture, you can look at the great series of blogs by riot games, starting here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM