-
Star
(259)
You must be signed in to star a gist -
Fork
(52)
You must be signed in to fork a gist
-
-
Save jwebcat/5122366 to your computer and use it in GitHub Desktop.
Properly download from github using wget and curl
This file contains 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
wget --no-check-certificate --content-disposition https://github.com/joyent/node/tarball/v0.7.1 | |
# --no-check-cerftificate was necessary for me to have wget not puke about https | |
curl -LJO https://github.com/joyent/node/tarball/v0.7.1 |
thx!
Works solves my server upgrade
What about http connections
Thanks, it worked as a magic!
In a Dockerfile, you can use ADD
to download from any source. it's helpful when your image doesn't have curl or wget, or if you can't use https.
Example:
ADD https://github.com/just-containers/s6-overlay/releases/download/v3.1.0.0/s6-overlay-noarch-3.1.0.0.tar.xz /tmp
RUN tar -C / -Jxpf /tmp/s6-overlay-noarch-3.1.0.0.tar.xz
Source: https://github.com/just-containers/s6-overlay#using-cmd
๐
Thanks!
Verify Github on Galxe. gid:S8JDzMFPiU7U23PJjf3RMJ
ืืืขืชื ืืื ืืืงื ืืจื ืืืื ืืขืืื ืืฆืืื!
I was stuck and your curl line just helped me. Thx!
Thx!
Could You Show how to do it on a self hosted git server?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks