Home Explore Blog CI



kubernetes

4th chunk of `content/en/blog/_posts/2016-10-00-Kubernetes-And-Openstack-At-Yahoo-Japan.md`
0f503dbf2d667eb2d4c81d7be354e5afcbb2591d37d078c30000000100000342
![](https://1.bp.blogspot.com/-0aPKFfhF33k/WApqIabmf1I/AAAAAAAAAxQ/jR33xg1OoMolm9T2Jt3FFixZt6294zUsACLcB/s640/Untitled%2Bdrawing%2B%25281%2529.png)](https://1.bp.blogspot.com/-0aPKFfhF33k/WApqIabmf1I/AAAAAAAAAxQ/jR33xg1OoMolm9T2Jt3FFixZt6294zUsACLcB/s1600/Untitled%2Bdrawing%2B%25281%2529.png)

1. 1.push code to GitHub
2. 2.hook to Jenkins master
3. 3.Launch job at Jenkins slave 
4. 4.checkout Packer repository
5. 5.Run Service Job
6. 6.Download base bare metal image by build script
7. 7.build script execute diskimage-builder with Packer to create bare metal image
8. 8.Upload new created image to Glance
9. 9.Upload the image to Artifactory

**Container Image Creation:**



[![](https://2.bp.blogspot.com/-5su8_2KmuYw/WApqvvw0k8I/AAAAAAAAAxU/36NZG0lTQ1whl-JcCuKCb-kjuISR-PSGwCLcB/s640/Untitled%2Bdrawing%2B%25282%2529.png)

Title: Bare Metal Image Creation Workflow and Introduction to Container Image Creation
Summary
The bare metal image creation process begins with pushing code to GitHub, triggering a Jenkins job to checkout the Packer repository, and running a service job. A build script downloads a base bare metal image and uses diskimage-builder with Packer to create the new image. Finally, the created image is uploaded to both Glance and Artifactory. The next section will describe container image creation.