Skip to content

Instantly share code, notes, and snippets.

@jwebcat
Forked from lemenkov/gist:1674929
Last active March 25, 2024 18:25
Show Gist options
  • Save jwebcat/5122366 to your computer and use it in GitHub Desktop.
Save jwebcat/5122366 to your computer and use it in GitHub Desktop.
Properly download from github using wget and curl
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
@taylortaurus
Copy link

thx!

@SalimF
Copy link

SalimF commented Oct 31, 2021

Works solves my server upgrade

@pablodz
Copy link

pablodz commented Nov 9, 2021

What about http connections

@Yuchengw
Copy link

Thanks, it worked as a magic!

@alielmajdaoui
Copy link

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

@cchwala
Copy link

cchwala commented May 4, 2022

๐Ÿ‘

@showgood163
Copy link

Thanks!

@vancuongdbj
Copy link

Verify Github on Galxe. gid:S8JDzMFPiU7U23PJjf3RMJ

@NHLOCAL
Copy link

NHLOCAL commented Oct 17, 2022

ื”ื’ืขืชื™ ืœื–ื” ื“ื•ืงื ื“ืจืš ื’ื•ื’ืœ ื•ืขื•ื‘ื“ ืžืฆื•ื™ืŸ!

@basejumpa
Copy link

I was stuck and your curl line just helped me. Thx!

@cig0
Copy link

cig0 commented Nov 21, 2023

Thx!

@unkn0wncvm1
Copy link

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