Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Communicate with Docker Daemon to find current Digest of an image #1

Closed
MeneDev opened this issue Oct 1, 2018 · 7 comments
Closed
Assignees
Labels
enhancement New feature or request hacktoberfest

Comments

@MeneDev
Copy link
Owner

MeneDev commented Oct 1, 2018

dockmoor should be able to pin an image reference to the version that is currently used. For this to work, the docker daemon must be queried for the digest of the current image version.

@kai5263499
Copy link
Contributor

I'd like to help but I'm having trouble figuring out how to build the project locally. Where should I start?

@MeneDev
Copy link
Owner Author

MeneDev commented Oct 2, 2018

Hi, cool to have you!
To build the project you need to checkout the development branch to your go root and run dep ensure first. If you don't have geb, you can get it here: https://github.com/golang/dep/releases/tag/v0.5.0. Make sure you use v0.5.0.

go build github.com/MeneDev/dockmoor/cmd/dockmoor

Will give you the executable. Hope that helps. I'm using Goland, where you can just rightclick on the cmd/dockmoor folder to run an debug ;)

What tooling are you using?

@MeneDev
Copy link
Owner Author

MeneDev commented Oct 2, 2018

I've added #14. Helping should be as easy as possible, it's currently not. Thanks for pointing that out!

@MeneDev
Copy link
Owner Author

MeneDev commented Oct 2, 2018

Does that help: https://github.com/MeneDev/dockmoor/blob/master/CONTRIBUTING.md ?
Won't be able to do more today, feedback greatly appreciated!

@kai5263499
Copy link
Contributor

Thanks! What I needed to do was to

  1. setup an empty GOPATH
  2. mkdir -p src/github.com/MeneDev
  3. clone this repo to src/github.com/MeneDev/dockmoor

Not difficult but a project layout detail that took me a little bit to figure out.

Additionally, it looks like the brew install dep mentioned here is 0.5.0 which works for your project

Thanks, too, for the Visual Studio Code tip. That's what I use and that helped!

@MeneDev
Copy link
Owner Author

MeneDev commented Oct 4, 2018

Thanks for the feedback, I'll add your steps to the description!

@MeneDev
Copy link
Owner Author

MeneDev commented Oct 19, 2018

First draft for an interface: #8 (comment)

@MeneDev MeneDev self-assigned this Nov 5, 2018
@MeneDev MeneDev closed this as completed Nov 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request hacktoberfest
Projects
None yet
Development

No branches or pull requests

2 participants