# S5 Bonus: AtomicJar and Testcontainers Integration Testing with Sergei Egorov

Published: 2021-10-13
Duration: 2800s
Audio: https://pdst.fm/e/pscrb.fm/rss/p/audio4.redcircle.com/episodes/8f082681-48ca-41d5-8945-c305c27f0b77/stream.mp3

## Key Takeaways
- Stay Inside Integration Testing: Sergei calls it the project's best decision to never leave integration testing. Test Containers was not meant to be a general-purpose way to start and stop containers, or to expand into end-to-end or system testing.
- Cleanup Matters Most: Shutdown hooks failed when Jenkins sent SIGKILL, leaving containers dangling. The fix, Ryuk, is an extra container per test session that records what you start and destroys it if it loses connection to the main process.
- Random Ports by Design: Test Containers enforced random ports from day one and advised against hard-coding localhost. That avoids conflicts on CI machines and keeps tests working when Docker runs somewhere other than localhost.
- Community as a Hiring Pool: After about five years of spare-time open source work, AtomicJar hired six people from the Test Containers community. At recording, it was a team of eight, counting two who were joining in October.
- Pick Investors for Experience: Sergei urges founders to go the extra mile for investors who bring knowledge, not just money. Ideas will change many times, he says, and the right investor helps you change them and find the right direction.

Sergei Egorov grew up in a small city of only 100,000 citizens (which is huge compared to some cities). He grew up in Siberia, in the cold part of the country. His personal record for how cold it was during his time there was -53 Degrees Celsius. And a funny story, on that same day, he had to go to the post office to pay his internet bill.. so he could play video games at 16 years old. His favorite game at the time was Might and Magic, which was also 50% of Russia's favorite game as well. The cold weather was partially the reason he got into tech... cause he could do it at home indoors. Other than that, he was a regular kid, who liked to skateboard, and play guitar in his band.

Through a chance discovery in Docker's eco-system, Sergei discovered an open source test container library, and realized that they approach he was taking to test containers was out there in the wild. He was invited to be a co-maintainer to the open source library, which would eventually become their current Company today.

This is the creation story of [AtomicJar](https://www.atomicjar.com/).

Sponsors

- [Courier](http://courier.com/codestory)
- [Img.ly](https://img.ly/)
- [Routable](https://apply.workable.com/routable/?lng=en)
- [CTO.ai](http://go.cto.ai/codestory)
- [Cloudways](https://www.cloudways.com/en/) offers peace of mind and flexibility so you can focus on growing your business instead of dealing with server management. With Cloudways, you get an optimized stack, managed servers, backups, staging environment, integrated Git, pre-configured, Composer, 24/7 support, and a choice of five cloud providers: AWS, DigitalOcean, Linode, Google Cloud, and Vultr. Get up to **2 Month** Free Hosting by using code "**CODE30**" and get **$30** free hosting credit.

Links

- Website: [https://www.atomicjar.com/](https://www.atomicjar.com/)
- LinkedIn: [https://www.linkedin.com/in/bsideup](https://www.linkedin.com/in/bsideup)

  

Timestamps

00:00 – Intro

06:12 – Building the Test Containers MVP

07:50 – MVP Tradeoffs and Tech Debt

12:19 – Maturing the Product Roadmap

14:37 – Building the AtomicJar Team

19:04 – Scaling Test Containers

22:51 – Proudest Moment: The Community

25:31 – A Mistake and the Response

29:40 – The Future of AtomicJar

36:09 – Influences and Role Models

39:59 – What He'd Do Differently

43:09 – Advice for Young Entrepreneurs

Times are from the episode recording; ad breaks in your player may shift them a bit later.

  

Read the key answers from this episode, with quotes and timestamps from Sergei Egorov from AtomicJar: [https://www.codestory.co/episodes/s5-bonus-scaling-open-source-to-a-docker-acquisition-with-sergei-egorov-of-atomicjar/](https://www.codestory.co/episodes/s5-bonus-scaling-open-source-to-a-docker-acquisition-with-sergei-egorov-of-atomicjar/)

  
  

Current Sponsors:

- [Tiger Data](https://tigerdata.com/)

- [Protected Harbor](http://protectedharbor.com/codestory)

- [Render](https://render.com/)

- [Fitnexa](https://www.fitnexa.com/)

- [Perplexity](https://pplx.ai/codestory)

- [Entelligence](https://entelligence.ai/)

Checkout our Stacklist! [https://stacks.codestory.co/](https://stacks.codestory.co/)

Check out our [Patreon!](https://www.patreon.com/cw/codestory)

Hosted by  [Noah Labhart | Technical Founder & Startup Mentor.](https://noahlabhart.com/)

  
  
Our Sponsors:  
* Check out Granola and use my code granola.ai/CODESTORY for a great deal: https://granola.ai  
* Check out Perplexity: https://pplx.ai/codestory  
  
  
Advertising Inquiries: [https://redcircle.com/brands](https://redcircle.com/brands)  
  
Privacy & Opt-Out: [https://redcircle.com/privacy](https://redcircle.com/privacy)

## Chapters
- 0:00 — Intro
- 6:12 — Building the Test Containers MVP
- 7:50 — MVP Tradeoffs and Tech Debt
- 12:19 — Maturing the Product Roadmap
- 14:37 — Building the AtomicJar Team
- 19:04 — Scaling Test Containers
- 22:51 — Proudest Moment: The Community
- 25:31 — A Mistake and the Response
- 29:40 — The Future of AtomicJar
- 36:09 — Influences and Role Models
- 39:59 — What He'd Do Differently
- 43:09 — Advice for Young Entrepreneurs

## Frequently Asked Questions
- **Q:** How did Sergei Egorov get involved with Test Containers? — **A:** While working at ZeroTurnaround, Sergei had an internal Docker testing library and spotted a GitHub cross-reference to Test Containers, which was doing basically the same thing. He backported features, kept contributing, and said of the creator, "Richard just invited me as a co-maintainer" [05:58].
- **Q:** What did the first version of Test Containers do? — **A:** Sergei describes the MVP as a simple, framework-agnostic facade for starting and stopping containers in code. The point was "that you didn't need to know exactly how Docker works" [06:47].
- **Q:** How does Test Containers prevent dangling containers after tests? — **A:** It uses an extra container called Ryuk that records every container started in a test session and destroys them if it loses connectivity with the main process. Sergei explained that "no matter what happens to the main process we would still have this container" [12:11] to clean up.
- **Q:** What led to the founding of AtomicJar? — **A:** Sergei said, "the trigger was my resignation from VMware after Pivotal's acquisition" [16:28]. After he announced he was leaving and invited people to talk about Test Containers, a user who was also an angel investor offered to be the first backer, and the company went on to close a seed round.
- **Q:** What would Sergei Egorov do differently with AtomicJar? — **A:** Sergei believes starting the company two or three years earlier would have made things easier, including hiring and handling community contributions. He reflected, "I think we took too long to convince ourselves that now is the time" [42:01].
