Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: build and push docker images #42

Merged
merged 3 commits into from
Mar 21, 2020
Merged

ci: build and push docker images #42

merged 3 commits into from
Mar 21, 2020

Conversation

keegancsmith
Copy link
Member

@keegancsmith keegancsmith commented Mar 21, 2020

This is a port and improvement of our docker images in infrastructure. It will build and push zoekt-webserver and zoekt-indexserver images on every push to master. We use GitHub actions to achieve this. It uses the same version format as we previously did.

The improvement is to share a base image which contains all the zoekt binaries and dependencies. The different images then just copy out what they need and do the sourcegraph specific customizations. This helps us share layers in a cluster as well as reduce the time it takes to build.

See the CI status for ea8a3af to see an example of the docker builds (but with push and branch if disabled).

Fixes https://github.com/sourcegraph/sourcegraph/issues/5819

@keegancsmith keegancsmith force-pushed the core/docker branch 8 times, most recently from 788f80c to 430ad49 Compare March 21, 2020 13:51
Change-Id: I4875b206e91f34a83edcc08e744d3095e337a64a
Purposefully doesn't push so you can see how it behaves on this PR. A
follow-up commit will only run this job on the master branch and push.

Change-Id: Ifa4b34b943d844e6f9daf9c3ff084793c169c8f3
Change-Id: I84f43786a9957cb1af17c0dd295c1dae7fa0dbbe
@keegancsmith keegancsmith marked this pull request as ready for review March 21, 2020 17:43
@keegancsmith
Copy link
Member Author

@ggilmore you may be interested in this, building docker images in github actions. It has quite a nice model.

Copy link
Member

@unknwon unknwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@keegancsmith
Copy link
Member Author

Nice!

qq: Do all these .ctags need to be mirrored whenever we update them in https://sourcegraph.com/github.com/sourcegraph/sourcegraph@2a41e2f265f53a95698b32a1f2f647222a56fec5/-/tree/cmd/symbols/.ctags.d?

yes. In fact I updated them with what we had mirrored in sourcegraph. I plan on improving this situation so we don't rely on mirroring them.

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

Successfully merging this pull request may close these issues.

Automatically build zoekt in CI
2 participants