Last active
August 24, 2016 18:35
-
-
Save somatorio/feffe2ccb95b94375a33c8454cd00b33 to your computer and use it in GitHub Desktop.
funcao para descompactar arquivos usando um container docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unzip() { | |
local=$(cd $(dirname $1);pwd) | |
docker run --rm -it \ | |
-u $(id -u):$(id -g) \ | |
-v $local:/root/zip \ | |
-w /root/zip \ | |
alpine:3.4 unzip $(basename $1) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment