Π“Ρ€Π°Ρ„ ΠΊΠΎΠΌΠΌΠΈΡ‚ΠΎΠ²

100 ΠšΠΎΠΌΠΌΠΈΡ‚ΠΎΠ²

Автор SHA1 Π‘ΠΎΠΎΠ±Ρ‰Π΅Π½ΠΈΠ΅ Π”Π°Ρ‚Π°
Chris Crone df797444d0 ci: Do not cross compile on PR builds
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-10-23 16:43:53 +02:00
Chris Crone bb464a05b0 deps: Bump versions
* golangci-lint to v1.31.0
* Go to 1.15.3
* Docker to 19.03.13

Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-10-23 16:43:53 +02:00
Chris Crone 47213d9ba1 inspect: Sort annotations and labels on print
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-10-23 16:43:53 +02:00
Chris Crone 916c3fa5f1 packaging: Create tarball/zip with license file
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-10-23 16:43:53 +02:00
Chris Crone c797d8283d ci: Do not upload artifacts on PR builds
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-10-23 16:43:53 +02:00
Chris Crone e91d7c7b16 dockerignore: Ignore unused Makefile
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-10-23 16:43:53 +02:00
Djordje Lukic 21ed360c78 Pass the context down to http
That way we cancel the requests if the users ctrl+c

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-10-23 16:43:53 +02:00
Silvin Lubecki c19c238b86 Fix workflow... again
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-10-23 16:43:53 +02:00
Silvin Lubecki 1cba34f369 Show how many listed elements we print with the total, and added a CTA to use --all flag to show all the elements
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-10-23 16:43:52 +02:00
Silvin Lubecki c24cc154c1 Fix dump error on release workflow
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-10-23 16:42:58 +02:00
Silvin Lubecki 3ddc915421 Renaming
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-10-23 16:42:56 +02:00
Silvin Lubecki 637e4833d2 Added inspect command, to check more informations on tokens
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-10-23 16:41:56 +02:00
Silvin Lubecki d4091b830a Added update command to activate or deactivate a token and update description
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-10-23 16:41:21 +02:00
Silvin Lubecki c39a1ad142 Added tokens management command with
- Create command (with --description, --format and --quiet flags)
- List command (with --all and --format flag)
- Revoke command (with --force flag

Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-10-16 14:16:03 +02:00
Silvin Lubecki 70be35782e Add tokens API CRUD to hub client
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-10-16 14:14:08 +02:00
Silvin Lubecki c9ddc75f88 Merge pull request #42 from docker/color-everywhere
More colors
2020-10-15 14:33:40 +02:00
Silvin Lubecki f6367493c0 Added colors on all column headers
* Refactored colors: use content colors (title, header, error...) instead of color directly
* Added dependency on github.com/juju/ansiterm which a drop-in replaceable library for tabwriter but compatible with colors

Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-10-15 12:19:10 +02:00
Silvin Lubecki cf84ea5f62 Merge pull request #41 from docker/rename-import-path
Rename import path to github.com/docker/hub-tool
2020-10-14 14:21:39 +02:00
Silvin Lubecki e86b356eff Rename import path to github.com/docker/hub-tool
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-10-14 12:06:42 +02:00
Silvin Lubecki ee87a2cccb Merge pull request #39 from docker/improve-tag-inspect
Improve tag inspect command
2020-10-14 10:15:12 +02:00
Silvin Lubecki 6de02e4ce2 Improve tag inspect command:
- now for a manifest it fetches the config object too, to print more informations (command, entrypoint, command history on each layers, exposed ports, volumes...)
- refactored the whole command
- added a new format "raw" which prints exactly what was returned by the registry, "json" format is a combination of the descriptor, the config object and the manifest
- added color

Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-10-13 16:20:25 +02:00
Silvin Lubecki 940ef126a6 Merge pull request #36 from docker/enforce-hub-login
Enforce hub login
2020-10-12 09:58:24 +02:00
Silvin Lubecki 5e2bd40361 Fix workflow typo
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-10-12 09:53:09 +02:00
Silvin Lubecki 8a558c79c8 Remove github action pull trigger
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-10-12 09:53:09 +02:00
Silvin Lubecki 3707858e80 Show docker command for debug purpose
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-10-12 09:53:09 +02:00
Silvin Lubecki 912eb7af8b Enforce user hub loggin uppon hub-tool use
Added e2e test

Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-10-12 09:53:09 +02:00
Silvin Lubecki 7e4ce66438 Merge pull request #37 from docker/fix-windows-crlf
Fix windows tests, forcing lf instead of crlf on windows
2020-10-12 09:51:36 +02:00
Silvin Lubecki f80523c16f Fix windows tests, forcing lf instead of crlf on windows
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-10-12 09:34:42 +02:00
Silvin Lubecki 211f94544a Fix e2e tests:
now we need to generate a .docker/config.json using E2E_HUB_USERNAME and E2E_HUB_TOKEN env var so we can loggin to the hub.

Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-10-09 19:39:01 +02:00
Silvin Lubecki e546743507 Big refactor: instanciate the hub client in the main so we can factorize creation logic
Also removed dependency on dockerCLI to use only streams

Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-10-09 19:39:01 +02:00
Silvin Lubecki b97c1f9d0b Refactor: use context for http requests
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-10-09 15:50:37 +02:00
Silvin Lubecki ecbd0ca371 Merge pull request #34 from silvin-lubecki/fix-inspect-layer-size
Fix inspect layer size
2020-10-09 11:52:14 +02:00
Silvin Lubecki 9b82f98e43 Make actions run on every PRs
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-10-09 11:46:18 +02:00
Silvin Lubecki df1e88b5fa Fix wrong layer size in tag inspect command, also added human size for size and fix tabs
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-10-09 11:46:18 +02:00
Silvin Lubecki fd13e552d9 Merge pull request #32 from docker/cla
Change copyright headers
2020-10-09 10:45:49 +02:00
Silvin Lubecki d980df7327 Merge pull request #31 from ingshtrom/use-registry-over-index-hostname
switch from using index.docker.io to registry.docker.io
2020-10-09 10:31:15 +02:00
Silvin Lubecki f793e3a22f Change copyright headers to better fit with the Contributor License Agreement
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-10-09 10:16:15 +02:00
Silvin Lubecki cca1ff765e Merge pull request #30 from silvin-lubecki/account-info
Add a new account info command
2020-10-09 10:11:02 +02:00
Alex Hokanson e40fe256b1 switch from using index.docker.io to registry.docker.io
Signed-off-by: Alex Hokanson <571756+ingshtrom@users.noreply.github.com>
2020-10-08 16:07:48 -04:00
Silvin Lubecki d2d4dc7291 Add a new "account" manage command, with one new command "info" to print the current user information and the current hub plan.
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-10-08 18:19:36 +02:00
Silvin Lubecki 5fd7ff63a8 Merge pull request #28 from silvin-lubecki/cta
Add a colored CallToAction when listing the tags, if the user is a free user.
2020-10-08 18:14:37 +02:00
Silvin Lubecki bd3010523c Add color to the CallToAction
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-10-08 16:26:14 +02:00
Silvin Lubecki 6e0634a188 Add a CallToAction when listing the tags, if the user is a free user.
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-10-08 16:26:14 +02:00
Djordje Lukic d03c0d1df4 Merge pull request #26 from docker/fix-flag-description
Fix --all flag description
2020-10-07 10:07:02 +02:00
Silvin Lubecki f7eba49e70 Fix --all flag description
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-10-07 09:51:30 +02:00
Silvin Lubecki 6ac67335ac Merge pull request #25 from docker/custom-user-agent
Add custom user-agent for better discrimination on the API side.
2020-10-07 09:43:34 +02:00
Silvin Lubecki ee9a9cb0b2 Add custom user-agent for better discrimination on the API side.
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-10-07 09:37:57 +02:00
Silvin Lubecki 8f98535ebb Merge pull request #12 from docker/order-flag-tags
Added --sort flag
2020-10-06 18:00:27 +02:00
Silvin Lubecki fc4ff40fea Better order direction: direction is optional and ascending by default
Added tests

Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-10-06 15:40:48 +02:00
Silvin Lubecki 142177032f Merge pull request #21 from docker/fix-make-help
`make help` should show the targets
2020-10-05 20:59:47 +02:00