-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
build(standalone): Add DGRAPH_VERSION to build different Dgraph versions for standalone image. #6082
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor comments. Feel free to resolve.
contrib/standalone/Makefile
Outdated
# | ||
# Examples | ||
# Build master: | ||
# make DGRAPH_VERSION=master |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might want to complete the example with another step to make push
contrib/standalone/Makefile
Outdated
# make DGRAPH_VERSION=master | ||
.PHONY: all build push version | ||
|
||
export DOCKER_IMAGE ?= dgraph/standalone |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We dont envision any other value for DOCKER_IMAGE, so may be hard code it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 4 files reviewed, 2 unresolved discussions (waiting on @manishrjain, @parasssh, and @vvbalaji-dgraph)
contrib/standalone/Makefile, line 11 at r1 (raw file):
Previously, parasssh wrote…
Might want to complete the example with another step to make push
Added an example for push.
contrib/standalone/Makefile, line 14 at r1 (raw file):
Previously, parasssh wrote…
We dont envision any other value for DOCKER_IMAGE, so may be hard code it?
Good point. I added a variable to do local testing with a different image repo.
Now it's set to dgraph/standalone
always.
…ons for standalone image. (#6082) The standalone images build from the same tags as the `dgraph/dgraph` image. To build and push the v20.03.4 and latest `dgraph/standalone` images: # Build v20.03.4 make DGRAPH_VERSION=v20.03.4 make DGRAPH_VERSION=v20.03.4 push # Build latest. DGRAPH_VERSION defaults to latest make make push Changes * Add `DOCKER_IMAGE` and `DGRAPH_VERSION` arguments to build standalone Docker image. * Add ./hooks folder for Docker Hub auto-builds with `--build-arg`s (following [Custom build phase hooks](https://docs.docker.com/docker-hub/builds/advanced/#custom-build-phase-hooks) docs).
…ons for standalone image. (#6082) (#6122) The standalone images build from the same tags as the `dgraph/dgraph` image. To build and push the v20.03.4 and latest `dgraph/standalone` images: # Build v20.03.4 make DGRAPH_VERSION=v20.03.4 make DGRAPH_VERSION=v20.03.4 push # Build latest. DGRAPH_VERSION defaults to latest make make push Changes * Add `DOCKER_IMAGE` and `DGRAPH_VERSION` arguments to build standalone Docker image. * Add ./hooks folder for Docker Hub auto-builds with `--build-arg`s (following [Custom build phase hooks](https://docs.docker.com/docker-hub/builds/advanced/#custom-build-phase-hooks) docs).
…ons for standalone image. (#6082) The standalone images build from the same tags as the `dgraph/dgraph` image. To build and push the v20.03.4 and latest `dgraph/standalone` images: # Build v20.03.4 make DGRAPH_VERSION=v20.03.4 make DGRAPH_VERSION=v20.03.4 push # Build latest. DGRAPH_VERSION defaults to latest make make push Changes * Add `DOCKER_IMAGE` and `DGRAPH_VERSION` arguments to build standalone Docker image. * Add ./hooks folder for Docker Hub auto-builds with `--build-arg`s (following [Custom build phase hooks](https://docs.docker.com/docker-hub/builds/advanced/#custom-build-phase-hooks) docs).
…ons for standalone image. (#6082) The standalone images build from the same tags as the `dgraph/dgraph` image. To build and push the v20.03.4 and latest `dgraph/standalone` images: # Build v20.03.4 make DGRAPH_VERSION=v20.03.4 make DGRAPH_VERSION=v20.03.4 push # Build latest. DGRAPH_VERSION defaults to latest make make push Changes * Add `DOCKER_IMAGE` and `DGRAPH_VERSION` arguments to build standalone Docker image. * Add ./hooks folder for Docker Hub auto-builds with `--build-arg`s (following [Custom build phase hooks](https://docs.docker.com/docker-hub/builds/advanced/#custom-build-phase-hooks) docs).
…ons for standalone image. (#6082) (#6237) The standalone images build from the same tags as the `dgraph/dgraph` image. To build and push the v20.03.4 and latest `dgraph/standalone` images: # Build v20.03.4 make DGRAPH_VERSION=v20.03.4 make DGRAPH_VERSION=v20.03.4 push # Build latest. DGRAPH_VERSION defaults to latest make make push Changes * Add `DOCKER_IMAGE` and `DGRAPH_VERSION` arguments to build standalone Docker image. * Add ./hooks folder for Docker Hub auto-builds with `--build-arg`s (following [Custom build phase hooks](https://docs.docker.com/docker-hub/builds/advanced/#custom-build-phase-hooks) docs).
…ons for standalone image. (#6082) (#6238) The standalone images build from the same tags as the `dgraph/dgraph` image. To build and push the v20.03.4 and latest `dgraph/standalone` images: # Build v20.03.4 make DGRAPH_VERSION=v20.03.4 make DGRAPH_VERSION=v20.03.4 push # Build latest. DGRAPH_VERSION defaults to latest make make push Changes * Add `DOCKER_IMAGE` and `DGRAPH_VERSION` arguments to build standalone Docker image. * Add ./hooks folder for Docker Hub auto-builds with `--build-arg`s (following [Custom build phase hooks](https://docs.docker.com/docker-hub/builds/advanced/#custom-build-phase-hooks) docs).
The standalone images build from the same tags as the
dgraph/dgraph
image.To build and push the v20.03.4 and latest
dgraph/standalone
images:# Build v20.03.4 make DGRAPH_VERSION=v20.03.4 make DGRAPH_VERSION=v20.03.4 push
# Build latest. DGRAPH_VERSION defaults to latest make make push
Changes
DOCKER_IMAGE
andDGRAPH_VERSION
arguments to build standalone Docker image.--build-arg
s (following Custom build phase hooks docs).This change is