Sha256: 3f75943f9a8db33fd313cc524fceb42d9905922be3668b6444624188543ae1d3

Contents?: true

Size: 398 Bytes

Versions: 11

Compression:

Stored size: 398 Bytes

Contents

#!/bin/bash -xe

TASK_ARN=$(cat /tmp/sonic/task-arn.txt)
CONTAINER_ID=$(curl -s http://localhost:51678/v1/tasks | jq ".Tasks[] | select(.Arn ==  \"$TASK_ARN\")" | jq -r '.Containers[].DockerId' | head -1)

# Got all the info in memory now we need os we can clean the files
# rm -rf /tmp/sonic

if [ $1 ]; then
  COMMAND=$@
else
  COMMAND=bash
fi

set -x
exec docker exec -ti $CONTAINER_ID $COMMAND

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sonic-screwdriver-2.2.7 lib/bash_scripts/docker-exec.sh
sonic-screwdriver-2.2.6 lib/bash_scripts/docker-exec.sh
sonic-screwdriver-2.2.5 lib/bash_scripts/docker-exec.sh
sonic-screwdriver-2.2.4 lib/bash_scripts/docker-exec.sh
sonic-screwdriver-2.2.3 lib/bash_scripts/docker-exec.sh
sonic-screwdriver-2.2.2 lib/bash_scripts/docker-exec.sh
sonic-screwdriver-2.2.1 lib/bash_scripts/docker-exec.sh
sonic-screwdriver-2.2.0 lib/bash_scripts/docker-exec.sh
sonic-screwdriver-2.1.1 lib/bash_scripts/docker-exec.sh
sonic-screwdriver-2.1.0 lib/bash_scripts/docker-exec.sh
sonic-screwdriver-2.0.0 lib/bash_scripts/docker-exec.sh