Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Adjust the "docker app build" UX #691

Merged
merged 2 commits into from
Oct 17, 2019
Merged

Conversation

ndeloof
Copy link
Contributor

@ndeloof ndeloof commented Oct 14, 2019

- What I did
Amended the docker app build user experience:
tag is optional (set by --tag option)
a context path is required (aligned with docker build)

- How I did it
service image get tagged, based on metadata or --tag option

- How to verify it
docker app build --t foo:1 . will tag built services images as foo:1-service and invocation image as foo-1-installer

- Description for the changelog
Service images get tagged during build to match --tag option or metadata

- A picture of a cute animal (not mandatory but encouraged)
image

docker app build -f <path to x.dockerapp folder> <path to docker context, typically ".">

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@codecov
Copy link

codecov bot commented Oct 16, 2019

Codecov Report

Merging #691 into master will decrease coverage by 0.09%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #691     +/-   ##
=========================================
- Coverage   72.51%   72.41%   -0.1%     
=========================================
  Files          56       56             
  Lines        3002     3031     +29     
=========================================
+ Hits         2177     2195     +18     
- Misses        552      559      +7     
- Partials      273      277      +4
Impacted Files Coverage Δ
internal/commands/build/compose.go 80.43% <0%> (-12.02%) ⬇️
internal/commands/build/build.go 71.35% <0%> (-5.01%) ⬇️
internal/commands/update.go
internal/commands/upgrade.go 58.18% <0%> (ø)
internal/store/digest.go 90.47% <0%> (+7.14%) ⬆️
internal/commands/image/list.go 89% <0%> (+7.18%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8f1a594...52b815d. Read the comment docs.

@ndeloof ndeloof marked this pull request as ready for review October 16, 2019 12:30
@ndeloof ndeloof force-pushed the build_more branch 3 times, most recently from 412597b to 69b6f07 Compare October 17, 2019 07:55
internal/version.go Outdated Show resolved Hide resolved
use docker-compose `Image` attribute if set
use {tag}-{service} if user has specified a tag with --tag
never tag the invocation image

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
Copy link
Member

@rumpl rumpl left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@silvin-lubecki silvin-lubecki left a comment

Choose a reason for hiding this comment

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

Took it for a spin and that's definitely super cool, thanks @ndeloof and sorry for the back and forth 😅

@silvin-lubecki silvin-lubecki merged commit c622dcf into docker:master Oct 17, 2019
@ndeloof ndeloof deleted the build_more branch October 17, 2019 13:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants