Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Upload Java 8 to Boxen S3 #58

Open
petems opened this issue Mar 10, 2015 · 15 comments
Open

Upload Java 8 to Boxen S3 #58

petems opened this issue Mar 10, 2015 · 15 comments

Comments

@petems
Copy link
Member

petems commented Mar 10, 2015

Blocks #57

@dgoodlad
Copy link
Contributor

@petems none of the previous maintainers have access to the boxen-downloads S3 bucket anymore, since it's owned by GitHub.

@MikeMcQuaid can you ping @github/security and get that sorted out, at least for yourself?

@MikeMcQuaid
Copy link
Contributor

@dgoodlad I'd like to try and work out a solution that doesn't involve a GitHubber manually uploading to an S3 bucket.
@petems Is there anywhere else that there are direct URLs provided for these?

@petems
Copy link
Member Author

petems commented Mar 10, 2015

@MikeMcQuaid Haven't found anywhere yet. I mean technically, companies could upload to their own S3s for their Boxen setup, so the PR could be merged, but it would be much easier if the Boxen S3 had it so people didnt have to set it up themselves.

@MikeMcQuaid
Copy link
Contributor

@petems Yeh, I agree. I'm just trying to work out ways that don't require someone from GitHub to upload these. I'm wondering if there's an Oracle URL we can link directly to or some other mirror. Would you mind taking a look?

@petems
Copy link
Member Author

petems commented Mar 10, 2015

@MikeMcQuaid The Oracle website download stuff behind a wall of sign-ups:

In order to download products from Oracle Technology Network you must agree to the OTN license terms.

Be sure that...
 Your browser has "cookies" and JavaScript enabled.
 You clicked on "Accept License" for the product you wish to download.
 You attempt the download within 30 minutes of accepting the license.

There's a few random Universities that have unprotected links, but I think that's kind of mean to use...

@MikeMcQuaid
Copy link
Contributor

https://github.com/caskroom/homebrew-cask/blob/master/Casks/java.rb gives us an option, I think. Looks like we just need to set a single cookie variable.

@petems
Copy link
Member Author

petems commented Mar 10, 2015

Does the DMG provider have that kind of complexity?

@MikeMcQuaid
Copy link
Contributor

Probably not currently but we could either potentially add it or use something else to download it first.

@MikeMcQuaid
Copy link
Contributor

https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/package/pkgdmg.rb is the relevant file. I guess you could subclass it to inject a curl cookie argument?

@MikeMcQuaid
Copy link
Contributor

Maybe we could upload this using the GitHub Releases feature instead?

@rafaelfranca
Copy link
Member

@MikeMcQuaid this could work.

@ghost
Copy link

ghost commented Apr 28, 2015

homebrew-cask is up-to-date to Java 8 for several months

Why maintain this recipe?

@MikeMcQuaid
Copy link
Contributor

@julienlavergne Because this module supports different things to Homebrew Cask.

@danielr-minted
Copy link

Can we separate the requirements to make uploads work how they should from the requirements that java 8 work at all? I'd really like java 8 working, and where I get the tarball from isn't super important from a user perspective.

@MikeMcQuaid
Copy link
Contributor

@danielr-minted That's fine. This issue was created as currently it requires someone from GitHub to upload it to the S3 bucket. If you have another solution and a pull-request: let's go for that instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

5 participants