question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Maintain preseeded containers running.

See original GitHub issue

It would be awesome if you could have a minimum number of containers running at any given time (each with a run once strategy).

  1. Let’s say you set the minimum number of active “run once” containers to 5. Then even though there are no builds queued up the docker plugin ensures that there’s at least 5 “run once” containers actively running.
  2. Then a build comes in and takes up one of the “run once” executors. When the build finishes it deletes the docker container. The result is no there are only 4 “run once” containers actively running.
  3. The docker-plugin notices there’s only 4 “run once” instances but it should have 5. It then proceeds to provision 1 additional container so that there are 5 ready to go containers.

In my use case, I have one container image ready to build all types of projects. So any pull requests that come in or main builds that are executed make use of the same container image. It takes time to spin up a new container for each build in the queue. Therefore, it would be nice to have a minimum set of active containers but elastically expand that number as more are needed.

This setting should be available in the Images section and configurable per image that’s referenced. Default should be 0 which is what it currently is today.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:5
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
samrocketmancommented, Oct 11, 2017

Not everyone’s needs are the same. There’s a startup cost to a Jenkins agent more than creating a container. Not sure where you got your metric but my experience has been different. If you don’t plan to implement this then fine. Please reopen so someone in the community can get to it (maybe even me).

0reactions
samrocketmancommented, Oct 11, 2017

That sounds great @ndeloof.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Keep Docker Container Running For Debugging
This post will look at how to keep a Docker container running for testing, debugging, and troubleshooting purposes.
Read more >
Keep Your Docker Container Running for Debugging
The easiest way to keep the container running is to change its entry point to a command that will continue running forever. Let's...
Read more >
Keep containers alive during daemon downtime
You can configure the daemon so that containers remain running if the daemon becomes unavailable. This functionality is called live restore. The live...
Read more >
Proxmox github - MR Snack
After configuring the Debian Package Repositories, you need to run: # apt-get ... 6 Select the lxc container template we want to download...
Read more >
install puppet standalone ubuntu
To check if you installed the Puppet Server correctly, run: puppetserver -v. ... CLI and embeds a guest Linux system to launch your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found