continuous integration - Running Remote Bamboo Agents on Demand Using Docker -
i'm trying see if viable automatically spin bamboo containers ci build enviroment
ideally want number of random containers able spin automatically , destroy build without having tinkering on remote server docker compose.
we have tons of different projects different mishmashes of dependencies. when dev runs build, goal container specific build should come up, add list of viable remote agents, run build, , destroy itself.
has tried similar or have advice see if viable?
thanks
i've been working while bamboo , remote agents on docker , happened have tried achieve same thing. answer question : no, not viable in opinion. trying atlassian calls elastic agents works aws now.
in current situation there no way spawn new agents when build queued. however, can setup first stage each of plans start docker container needed perform second stage. next stage need have bamboo dependencies set docker container have spawned able take care of it.
while work, let me tell flaw should expect doing :
- next stages ran inside docker container, killing container @ end of build lead bamboo build failure. can in last stage ran agent on host if build fails reason never stage
- concurrency build , error checking far more difficult handle
what ended doing work pay license allowing more agents , ran them in own docker container more agent isolation. can expect loose more money wasting time setting such system pay more agents.
if problem less money , more having deal lots of different configuration, can consider running docker container @ beginning of stage , forward command using docker exec
. still not easy set though.
Comments
Post a Comment