Skip to content

Conversation

pavolloffay
Copy link
Member

@pavolloffay pavolloffay commented Sep 4, 2017

related to #283

It also fixes all-in-one image, latest is published per commit and added release tags.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling dc7cfd5 on pavolloffay:docker-image-do-not-publis-travis-sha into 413942a on uber:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 10d4c14 on pavolloffay:docker-image-do-not-publis-travis-sha into 413942a on uber:master.

@yurishkuro
Copy link
Member

The title is unclear - do you mean to turn off pushing commit & travis build tags? The reason we tag with the commit sha is because sometimes in-progress changes in one project depend on in-progress changes in another one, so integration tests can run by pulling images via SHA rather than latest

@pavolloffay
Copy link
Member Author

See your last comment in the linked issue. If you now think something different I can bring back commit SHA tags.

@yurishkuro
Copy link
Member

Right, so as you notice it explicitly mentioned "remove other tags like travis build number and commit hash -- we might still want those for crossdock images"

@pavolloffay
Copy link
Member Author

I have added back sha images for xdock

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 2582110 on pavolloffay:docker-image-do-not-publis-travis-sha into 413942a on uber:master.

@pavolloffay
Copy link
Member Author

@yurishkuro is it good now?

summary:

  • push latest tag per commit in master
  • remove travis and sha tags for jaeger components (sha tags are still added for xdock test_driver)
  • add release tags for all-in-one

@@ -48,6 +48,7 @@ services:

test_driver:
build: .
image: jaegertracing/test_driver:latest
Copy link
Member

Choose a reason for hiding this comment

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

what does this directive do? We want to make sure we still build from local source

Copy link
Member Author

Choose a reason for hiding this comment

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

It uses this name when it builds the image. If you do docker-compose pull it will pull that image, not build

@@ -29,7 +29,7 @@ PASS=$(shell printf "\033[32mPASS\033[0m")
FAIL=$(shell printf "\033[31mFAIL\033[0m")
COLORIZE=sed ''/PASS/s//$(PASS)/'' | sed ''/FAIL/s//$(FAIL)/''
DOCKER_NAMESPACE?=$(USER)
DOCKER_TAG?=local
DOCKER_TAG?=latest
Copy link
Member

Choose a reason for hiding this comment

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

this seems unsafe

Copy link
Member Author

Choose a reason for hiding this comment

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

I would rather build latest than local, it's more convenient.

Note that if you are building images using this Makefile the docker namespace is $USER so not really docker hub user. I also assume that anybody who is pushing images is cautious.

Copy link
Member

Choose a reason for hiding this comment

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

The assumption that "anybody who is pushing images is cautious" doesn't comfort me :-), but since it goes under $USER namespace it should be fine.

@@ -3,7 +3,7 @@
set -e

BRANCH=${BRANCH:?'missing BRANCH env var'}
IMAGE="${REPO:?'missing REPO env var'}:${COMMIT:?'missing COMMIT env var'}"
IMAGE="${REPO:?'missing REPO env var'}:latest"
Copy link
Member

Choose a reason for hiding this comment

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

this feels unsafe. Using COMMIT pinpoints the image precisely, while latest is kind of vague. What's the harm in keeping COMMIT? Is it because it clutters dockerhub?

Copy link
Member Author

Choose a reason for hiding this comment

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

Is it because it clutters dockerhub?

basically yes, But I don't have anything against it. Although I haven't seen other projects doing it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Would somebody depend on the SHA tag? latest features will be present in the latest tag and now we have proper release tags.

# Do not enable echo before the `docker login` command to avoid revealing the password.
set -x
docker login -u $DOCKER_USER -p $DOCKER_PASS
# push all tags, therefore push to repo
Copy link
Member

Choose a reason for hiding this comment

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

should we start the whole thing by running some sort of purge on the local repo, to avoid the possibility of some other versions handing around? Especially if this runs in development.

Copy link
Member Author

Choose a reason for hiding this comment

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

we can clear docker registry when starting the CI, but it seems that travis clears registry anyway.

Or we can explicitly push everything:

docker push $REPO:latest
docker push $REPO:sha

, patch, minor, major would be in the if statements.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling fe07cc6 on pavolloffay:docker-image-do-not-publis-travis-sha into 413942a on uber:master.

@pavolloffay pavolloffay force-pushed the docker-image-do-not-publis-travis-sha branch from 391f9c9 to 394d07d Compare September 7, 2017 16:24
@pavolloffay pavolloffay force-pushed the docker-image-do-not-publis-travis-sha branch from 394d07d to 2adf2c7 Compare September 7, 2017 16:33
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 2adf2c7 on pavolloffay:docker-image-do-not-publis-travis-sha into 5d5a16b on uber:master.

@@ -29,7 +29,7 @@ PASS=$(shell printf "\033[32mPASS\033[0m")
FAIL=$(shell printf "\033[31mFAIL\033[0m")
COLORIZE=sed ''/PASS/s//$(PASS)/'' | sed ''/FAIL/s//$(FAIL)/''
DOCKER_NAMESPACE?=$(USER)
DOCKER_TAG?=local
DOCKER_TAG?=latest
Copy link
Member

Choose a reason for hiding this comment

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

The assumption that "anybody who is pushing images is cautious" doesn't comfort me :-), but since it goes under $USER namespace it should be fine.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 46171fc on pavolloffay:docker-image-do-not-publis-travis-sha into d17b468 on uber:master.

@yurishkuro yurishkuro merged commit f0193c6 into jaegertracing:master Sep 8, 2017
@yurishkuro yurishkuro mentioned this pull request Sep 17, 2017
ideepika pushed a commit to ideepika/jaeger that referenced this pull request Oct 22, 2017
isaachier pushed a commit to isaachier/jaeger that referenced this pull request Nov 1, 2017
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.

3 participants