Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
79449ab6c0 | ||
|
|
3b60e399f8 | ||
|
|
d9dd7dcf99 | ||
|
|
dae470acd1 |
21
README.md
21
README.md
@@ -32,17 +32,30 @@ As long as a file name is indicated as second parameter, *gdown.pl v2.0* **will
|
||||
Version
|
||||
=======
|
||||
|
||||
This version is **v1.3**.
|
||||
This version is **v1.4**.
|
||||
|
||||
### Warning
|
||||
|
||||
Please, note that v1.2 (available between days 12 to 31 of Jan/2019) **should not be used**, as it contains a bug that could result in unusable downloaded files. Proceed to overwrite with v1.3 in case you have it.
|
||||
Please, note that v1.2 (available between days 12 to 31 of Jan/2019) **should not be used**, as it contains a bug that could result in unusable downloaded files. Proceed to overwrite with v1.4 in case you have it.
|
||||
|
||||
Docker
|
||||
======
|
||||
|
||||
A simple Docker file is provided, to build a simple Docker image with gdown.pl.
|
||||
This has been used for pre-pulling data from a Google Drive to Kubernetes persistent volumes. Thanks @anton-khodak
|
||||
A simple Docker file is provided, to build a simple Docker image with gdown.pl.
|
||||
This has been used for pre-pulling data from a Google Drive to Kubernetes persistent volumes.
|
||||
Thanks @anton-khodak
|
||||
|
||||
Singularity
|
||||
===========
|
||||
|
||||
An example [Singularity](https://sylabs.io/guides/3.2/user-guide/quick_start.html) file is provided.
|
||||
Build the container:
|
||||
`sudo singularity build (imagename) Singularity`
|
||||
|
||||
Run the container:
|
||||
`singularity run (imagename) (gdown.pl args)`
|
||||
|
||||
Thanks to @ttbrunner
|
||||
|
||||
License
|
||||
=======
|
||||
|
||||
14
Singularity
Normal file
14
Singularity
Normal file
@@ -0,0 +1,14 @@
|
||||
BootStrap: docker
|
||||
FROM: perl
|
||||
|
||||
# This is the script that's executed when you don't call it with any script or shell to execute.
|
||||
%runscript
|
||||
exec /usr/local/bin/gdown.pl "$@"
|
||||
|
||||
%setup
|
||||
cp gdown.pl ${SINGULARITY_ROOTFS}/usr/local/bin/
|
||||
|
||||
# These commands will be executed inside of the container during building.
|
||||
%post
|
||||
apt-get update
|
||||
apt install -y wget
|
||||
6
gdown.pl
6
gdown.pl
@@ -5,7 +5,7 @@
|
||||
#
|
||||
# v1.0 by circulosmeos 04-2014.
|
||||
# v1.1 by circulosmeos 01-2017.
|
||||
# v1.2, v1.3 by circulosmeos 01-2019.
|
||||
# v1.2, v1.3, v1.4 by circulosmeos 01-2019, 02-2019.
|
||||
# //circulosmeos.wordpress.com/2014/04/12/google-drive-direct-download-of-big-files
|
||||
# Distributed under GPL 3 (//www.gnu.org/licenses/gpl-3.0.html)
|
||||
#
|
||||
@@ -68,8 +68,8 @@ while (-s $FILENAME < 100000) { # only if the file isn't the download yet
|
||||
unlink $TEMP;
|
||||
|
||||
sub execute_command() {
|
||||
$COMMAND="wget --no-check-certificate --load-cookie $TEMP --save-cookie $TEMP \"$URL\"";
|
||||
$COMMAND="wget --progress=dot:giga --no-check-certificate --load-cookie $TEMP --save-cookie $TEMP \"$URL\"";
|
||||
$COMMAND.=" -O \"$FILENAME\"" if $FILENAME ne '';
|
||||
system ( $COMMAND );
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user