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

R4R: Tagged docker images #3694

Merged
merged 4 commits into from
Feb 25, 2019
Merged

R4R: Tagged docker images #3694

merged 4 commits into from
Feb 25, 2019

Conversation

sabau
Copy link
Contributor

@sabau sabau commented Feb 20, 2019

I worked together with @greg-szabo into this process:

  • release every new tag on docker hub
  • two docker images with single entrypoint offered
  • We will use two separate docker images as gaiacli can refer to a remote gaiad
  • gaiali can scale and eventually be attacked while gaiad will keep live
  • Targeted PR against correct branch (see CONTRIBUTING.md)

  • Linked to github-issue with discussion and accepted design OR link to spec that describes this work.

  • Wrote tests n/a

  • Updated relevant documentation (docs/)

  • Added entries in PENDING.md with issue #

  • rereviewed Files changed in the github PR explorer


For Admin Use:

  • Added appropriate labels to PR (ex. wip, ready-for-review, docs)
  • Reviewers Assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

- release every new tag on github
- two docker images with single entrypoint offered
- We will use two separate docker images as gaiacli can refer to a remote gaiad
- gaiali can scale and eventually be attacked while gaiad will keep live

Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
@sabau sabau changed the title Tagged docker images [R4R] Tagged docker images Feb 20, 2019
@sabau sabau changed the title [R4R] Tagged docker images Tagged docker images Feb 20, 2019
@sabau sabau changed the title Tagged docker images WIP: Tagged docker images Feb 20, 2019
@jackzampolin
Copy link
Member

@sabau this is failing tests

@codecov
Copy link

codecov bot commented Feb 21, 2019

Codecov Report

Merging #3694 into develop will increase coverage by 0.01%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop    #3694      +/-   ##
===========================================
+ Coverage    61.15%   61.17%   +0.01%     
===========================================
  Files          190      190              
  Lines        14008    14008              
===========================================
+ Hits          8567     8569       +2     
+ Misses        4905     4903       -2     
  Partials       536      536

@sabau sabau changed the title WIP: Tagged docker images Tagged docker images Feb 21, 2019
@sabau
Copy link
Contributor Author

sabau commented Feb 21, 2019

Ok, rerunning fixed that

@@ -331,9 +331,20 @@ jobs:
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker push tendermint/gaia:$GAIAD_VERSION

# Push the tag also for the version, so clients can build up on top of it
GAIAD_VERSION=`/tmp/workspace/bin/gaiad version`
docker push tendermint/gaia:$GAIAD_VERSION
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed the hashed version, in favour of the git tag version that will run only when a new tag will be added

Copy link
Contributor

Choose a reason for hiding this comment

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

Why not using git describe's output?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seemed to me more readable to use $CIRCLE_TAG instead of getting the tag from a command.
In here the specific reason to change the behaviour was also to trigger the new job only when the tag is pushed.

Copy link
Contributor

Choose a reason for hiding this comment

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

It seemed to me more readable to use $CIRCLE_TAG instead of getting the tag from a command.

The risk is that versions may diverge. Did you check that gaiad version kinda looks like the image's actual version?

@sabau sabau changed the title Tagged docker images R4R: Tagged docker images Feb 21, 2019
Copy link
Contributor

@cwgoes cwgoes left a comment

Choose a reason for hiding this comment

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

Thanks; a few notes:

  • Needs PENDING.md
  • Do we really need separate images for gaiacli / gaiad? Why not just one?
  • Can we add instructions in documentation on how to use the Docker images?

@sabau sabau changed the title R4R: Tagged docker images Tagged docker images Feb 22, 2019
@sabau
Copy link
Contributor Author

sabau commented Feb 22, 2019

Sure, documentation and pending will be added today, I'll remove the R4R until It's there.

The goal was to use them as commands so clients can get just the piece they need and use them as a single command. It should be easier to handle logs and output when it runs on cloud solution (but feasible also with the current container definition).

If it's safer we can try a two step delivery:

  • I'll drop from this PR the two new docker images and just tag the existing one
  • If some client asks for a docker as a command, we may reintroduce them

@cwgoes
Copy link
Contributor

cwgoes commented Feb 22, 2019

If you think two images is more convenient, I don't have a strong opinion.

Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
@sabau sabau changed the title Tagged docker images R4R: Tagged docker images Feb 22, 2019
@sabau
Copy link
Contributor Author

sabau commented Feb 22, 2019

In this moment I just need tagged docker images to spin off nodes on AWS, when we will need to scale we can decide if splitting or not to handle logs etc.

Copy link
Contributor

@cwgoes cwgoes left a comment

Choose a reason for hiding this comment

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

ACK although I haven't tested the images

@jackzampolin
Copy link
Member

I don't think we need 2 images, but this work is great!

@jackzampolin jackzampolin merged commit cc938b8 into develop Feb 25, 2019
@jackzampolin jackzampolin deleted the sabau/release-tagged-images branch February 25, 2019 15:53
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.

4 participants