-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Background
Local CI has 3 terminals:
- Main terminal: shows the job log as it runs
- Debugging terminal:
bashaccess to the job as it runs (but exits when the job finishes) - Final debugging terminal:
bashaccess after the job exits
The final debugging terminal is needed because the debugging terminal exits when the job finishes.
But that terminal has been flaky, and sometimes it doesn't start a container at all.
It works by doing docker run on a committed container:
Line 190 in d5a40f4
| docker run -it --rm -v ${volume} $(docker images ${committedImageRepo} --format "{{.ID}} {{.Tag}}" | sort -k 2 -h | tail -n1 | awk '{print $1}')` |
And the committed container is from doing docker commit of the job container:
local-ci/src/utils/commitContainer.ts
Line 24 in d5a40f4
| committed_image=$(docker commit --pause=false $running_container ${imageRepo}:$(date +"%s")) |
But sometimes there won't be an image for the final terminal to run.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
