concourse / concourse

Concourse is a container-based continuous thing-doer written in Go.
https://concourse-ci.org
Apache License 2.0
7.37k stars 846 forks source link

Build linux binary #2777

Open jakub-gawlas opened 5 years ago

jakub-gawlas commented 5 years ago

Hi folks 👋

I just forked repo and made a few changes, now I try build production concourse linux binary. I looked at bin/ci but I didn't find any proper pipeline, only bin-smoke-test.yml.

Maybe someone knows some easy way to build binary? Or docker image?

Cheers 🥂

osis commented 5 years ago

Ahoy @jakub-gawlas,

how are you going about building the binary? Did you take a look at how Concourse's own pipeline does it?

https://github.com/concourse/concourse/blob/master/ci/tasks/concourse-build-linux.yml https://github.com/concourse/concourse/blob/master/ci/tasks/scripts/concourse-build

jakub-gawlas commented 5 years ago

Thanks @osis for reply ;)

Yep, of course, I took a look on it, but this script generate .tgz pack, but as result should be generated one binary file. So maybe you know what is the next step? I found this script https://github.com/concourse/concourse/blob/master/bin/ci/build-linux , it looks promising, but isn't used in any pipeline.

xtremerui commented 5 years ago

@osis did post the right file. In our CI we use concourse-build script.

These lines are building the concourse binary. Is this what you looking for? https://github.com/concourse/concourse/blob/90106622c6032613ea5848171d9005475c2ff360/ci/tasks/scripts/concourse-build#L27-L31 Or are you looking for a script that output a concourse binary?