#!/bin/bash -x

CONTAINER_IMAGE=$(cat /tmp/bolts/docker-image.txt)

# Got all the info in memory now we need os we can clean the files # rm -rf /tmp/bolts # Cannot remove files until we are done using the –env-file

# Maybe do this later. But will need to have bolts path be unique. # at -f “/tmp/bolts/seppuku.sh” now + 1.minute

cp /tmp/bolts/env-file.txt ~/ rm -rf /tmp/bolts

exec docker run -ti –env-file ~/env-file.txt $CONTAINER_IMAGE “$@”