copy.sh (292B)
1 #! /bin/bash -ex 2 3 # This script copies the contents of the "scripts" folder into a docker 4 # container using tar/untar the container id must be passed. 5 6 DIRNAME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 7 docker exec $1 mkdir -p $2 8 cd $DIRNAME 9 tar -cv * | docker exec -i $1 tar -x -C $2