Coder Social home page Coder Social logo

Comments (15)

mberhault avatar mberhault commented on June 21, 2024

we can have them ready anytime you like, we just need to decide how often to rebuild them and how. If it's manual, we can easily build and push to www.cockroachlabs.com. If it's automated, we may be better off putting them in AWS.

from docs.

andreimatei avatar andreimatei commented on June 21, 2024

Should we distribute i386 and amd64 binaries?

On Mon, Feb 8, 2016 at 2:21 PM, marc [email protected] wrote:

we can have them ready anytime you like, we just need to decide how often
to rebuild them and how. If it's manual, we can easily build and push to
www.cockroachlabs.com. If it's automated, we may be better off putting
them in AWS.


Reply to this email directly or view it on GitHub
#34 (comment).

from docs.

bdarnell avatar bdarnell commented on June 21, 2024

According to a note in CONTRIBUTING.md, we only support 64-bit builds. I'm not sure what the issue is, but it seems safe to go 64-bit only.

from docs.

jseldess avatar jseldess commented on June 21, 2024

Good to know we're ready whenever. @jess-edwards and I are planning to do a soft-release of the docs as early as next week, so can you guys choose a location, push them there, and post links here by Monday or Tuesday?

from docs.

mberhault avatar mberhault commented on June 21, 2024

ok, finally getting back to this. I'll be tweaking various S3 paths and naming schemes, so I'll probably be breaking some of my nightly scripts, but here's a proposal for the ultimate goal:

  • build linux/osx binaries for every master commit that passes the tests
  • build a tarball containing only the binary (eg: expands to cockroach/cockroach.linux.amd64)
  • push tarball to S3 bucket: binaries.cockroachdb.com with sha included in the filename
  • update a fixed filename in S3 to redirect to the SHA-based name. eg: binaries.cockroachdb.com/cockroach.linux.amd64.tgz redirects to binaries.cockroachdb.com/cockroach.BUILD-SHA.linux.amd64.tgz
  • setup S3 bucket binaries.cockroachdb.com with static website hosting (allows redirects to work)
  • setup cloudfront to serve binaries.cockroachdb.com using AWS-generated SSL certs. this should make https://binaries.cockroachdb.com/ work properly with a recognized CA.

The download page will simply link to the fixed binary name (the redirect should take care of going to the right one). eg:

from docs.

mberhault avatar mberhault commented on June 21, 2024

ok, the redirect doesn't work so well with cloudfront. I may have to write to the final filename right away (eg: upload directly to s3://binaries.cockroachdb.com/cockroach.linux-amd64.tgz). The only issue here is what happens when concurrent circle-ci runs step all over each other. S3 will usually drop one of them but can sometimes result in an empty file.

from docs.

mberhault avatar mberhault commented on June 21, 2024

@jseldess: the binaries are up and will be refreshed for every commit to master that passes the tests.
The permanent links are:
Linux binary: https://binaries.cockroachdb.com/cockroach.linux-amd64.tgz
OSX binary: https://binaries.cockroachdb.com/cockroach.darwin-10.9-amd64.tgz

from docs.

jseldess avatar jseldess commented on June 21, 2024

Excellent. Thanks very much, @mberhault! I'll add those links in today.

from docs.

mberhault avatar mberhault commented on June 21, 2024

we'll also need to change the instructions. the downloads tar gzipped tarballs, so people will need to do the following:

  • click on the link to download
  • extract the tarball: $ tar xfz cockroach.linux-amd64.tgz
  • move to the directory: $ cd cockroach/
  • run the binary: $ ./cockroach ...

no chmod needed.

from docs.

jseldess avatar jseldess commented on June 21, 2024

@mberhault, when I extract the tarball, the directory created is called cockroach and the binary inside is given the same name as the tarball. It seems unnecessarily complicated to run a binary called ./cockroach.darwin-10.9-amd64 start.

@bdarnell suggested that we should be doing the opposite: extracting the tarball should create a directory with the same name as the tarball, but the binary in that directory should just be cockroach. Can you change that behavior?

from docs.

mberhault avatar mberhault commented on June 21, 2024

ok. will do.

from docs.

mberhault avatar mberhault commented on June 21, 2024

Renamed the binary per suggestions. We now have:
cockroach.darwin-10.9-amd64/cockroach
and:
cockroach.linux-amd64/cockroach

Leaving open since this about docs, not the binaries themselves.

from docs.

mberhault avatar mberhault commented on June 21, 2024

oh, and it may take a little while for the new binaries to be effective, cloudfront caching is a little pesky.

from docs.

jseldess avatar jseldess commented on June 21, 2024

Thanks, Marc.

from docs.

jseldess avatar jseldess commented on June 21, 2024

Resolved with PR #113

from docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.