![]() ![]() This approach avoids repeating the download and processing for each container. I previously wrote a blog post introducing the concept of overlay mounts inside of builds. Personally, I think this is a really cool feature. I like to use it whenever I do a series of builds and am playing with Containerfiles or Dockerfiles. I had a question about the blog from Guillaume Moutier about how to populate the host's case: #SPEEDINESS OVERLAY SERIES# Hi Dan! I just read your article on speeding up container builds with local cache, so I wanted to implement the technique for one of my builds as I have to try different things, so relaunch build every 5-10 minutes. I guess I understood most of it (I'm relatively new to this part of the process), but as I am on Fedora 31 and using a CentOS 7 base image, I was wondering how to populate the case on my host. Especially as dnf is not part of CentOS7 if I am right. I searched for information on creating a cache for Centos 7 on a Fedora box, and I looked for the /etc//centos.repo file on the Internet. Would it even work?Īt that moment, I gave myself a dope slap and figured, I should just use a centos:7 container to create the cache on Fedora! It's easy I was worried about how yum inside of Centos 7 would handle metadata created by dnf on Fedora. First, I create a directory on my host to store the cache. Then I run a centos:7 container and execute the yum makecache command. # podman run -v /var/cache/centos/7:/var/cache/yum:z -ti centos:7 yum makecache Note that I did this with a locked-down Podman container and allowed it to write to the cache. ![]() Next, I create a test Containerfile, which runs a yum -y update. This represents about a 20% time savings on the build! # time podman build -v /var/cache/centos/7:/var/cache/yum:O /tmp Now I can just run a podman build with an overlay volume mount and take advantage of the local repo. That makes sense, I guess, but what about the EPEL repo (used in the second set of installs)? But what about the EPEL repo?Īfter I suggested this to Guillaume, he responded with: Obviously, you could repeat this process for all of your favorite RPM-based distributions. The answer is to configure an image based on the original Centos:7 image with the EPEL repos defined inside of it. Then use the podman command to run makeimage on that container with the volume from the host. The bottom line is, with overlay mounts in your build farm, you can use containers to speed up builds for multiple distributions at the same time.Automated welding’s unrivaled innovation leaderĪZZ Specialty Welding (originally known as Welding Services Inc.- WSI) has long been considered the gold standard for welding automation in the industrial sectors. Beginning in 1978 with the design, patent, and successful execution of the 1st weld metal overlay installation for process equipment, AZZ earned the reputation after decades of delivering industry-first solutions that extended the lives of critical pressure components. Innovation leadership has always been at the heart of AZZ’s mission to protect critical infrastructure. Whether it was an industry 1st process patent for tube weld overlay, patented & industry 1st field machine GTAW weld process for high deposition welding, or the 1st structural weld overlay application for coke drum life extension, AZZ has delivered engineered solutions that responded to market needs. Industry driversĪZZ Specialty Welding prides itself on being a tier-one partner that develops solutions in cooperation with our customers, utilizes our robust engineering resources, and executes with minimal customer guidance and oversight needed. When the market shifted in recent years, we polled our customers to understand what industry drivers they were most focused on. Using this feedback, we took the opportunity to assess our process and reimagine our product offering. ![]() ![]() With a goal of aligning our latest innovation with industry drivers, AZZ focused on reducing cost and schedule for turnaround windows, lessening the resource dependency of the customer site, and improving on its leading weld metal overlay quality. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |