Skip to content

Instantly share code, notes, and snippets.

@aspen-roller
Created March 11, 2021 20:06
Show Gist options
  • Save aspen-roller/de627d049985a7da49330ce153113b3c to your computer and use it in GitHub Desktop.
Save aspen-roller/de627d049985a7da49330ce153113b3c to your computer and use it in GitHub Desktop.
hudson access github runner in all-access

How to Access A Github-Runner Task

I've already added the SSH keys that I found from https://github.com/aspen-hudbuz.keys to 10.101.0.200.

Create Docker Context

docker context create aa0 --docker "host=ssh://[email protected]" --default-stack-orchestrator swarm --description "all-access swarm"

Connect to Github-Runner Task

# List the running containers and find a github-runner to connect to
# (you should also be able to tab complete and skip this step for the container name)
docker -c aa0 container ls

# this is where you can TAB complete after typing "github_runner"
# the container name may not match the following
docker -c aa0 exec -it github_runner.1.tz0clhpo4ginoppxm4rqr3jme bash

Inside the container, I would go to the /tmp directory and install sqlcmd, then try to connect to one of the sql servers to troubleshoot the network.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment