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