This repository has been archived by the owner on Jun 13, 2021. It is now read-only.
Fix reference for service images we know by tag #716
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rumpl
approved these changes
Oct 25, 2019
What’s Java?
Sent from mobile - please excuse tone and brevity
… On Oct 25, 2019, at 17:30, Nicolas De loof ***@***.***> wrote:
@ndeloof commented on this pull request.
In internal/commands/build/build.go:
> return bundle, nil
}
+func fixServiceImageReferences(ctx context.Context, dockerCli command.Cli, bundle *bundle.Bundle, pulledImages []ServiceConfig) error {
+ insecureRegistries, err := internal.InsecureRegistriesFromEngine(dockerCli)
+ if err != nil {
+ return fmt.Errorf("could not retrieve insecure registries: %v", err)
Did I missunderstand golang does some magic with this legacy construct to dump previous error in the new one with Errorf so all legacy code doesn't have to be rewritten with Wrapf ?
(which reminds me introduction of Exception.cause in Java 1.1 :P)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
ndeloof
force-pushed
the
APP-294
branch
2 times, most recently
from
October 26, 2019 09:07
d3a5aae
to
035df07
Compare
rumpl
reviewed
Oct 26, 2019
rumpl
approved these changes
Oct 26, 2019
ndeloof
force-pushed
the
APP-294
branch
5 times, most recently
from
October 28, 2019 11:13
2f59a59
to
6eea0a8
Compare
Codecov Report
@@ Coverage Diff @@
## master #716 +/- ##
======================================
Coverage 72.9% 72.9%
======================================
Files 59 59
Lines 3351 3351
======================================
Hits 2443 2443
Misses 594 594
Partials 314 314 Continue to review full report at Codecov.
|
silvin-lubecki
approved these changes
Oct 28, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ndeloof
force-pushed
the
APP-294
branch
2 times, most recently
from
October 28, 2019 15:38
292fb7d
to
75deb14
Compare
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
eunomie
suggested changes
Oct 29, 2019
Aligned with docker service create --no-resolve-image Prevent image freeze during the build Usefull for offline builds, as well as for our e2e tests :P Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@ndeloof I tried with my version of
version: "3.6"
services:
rng:
image: dockercoins_rng
build: rng
ports:
- "8001:80"
hasher:
image: dockercoins_hasher
build: hasher
ports:
- "8002:80"
webui:
image: dockercoins_webui
build: webui
ports:
- "8000:80"
volumes:
- "/Users/yvesbrissaud/src/github.com/eunomie/dockercoins/webui/files/:/files/"
environment:
- REDIS=redis
redis:
image: redis
worker:
image: dockercoins_worker
build: worker
environment:
- REDIS=redis
- HASHER=hasher
- RNG=rng |
eunomie
approved these changes
Oct 29, 2019
ndeloof
force-pushed
the
APP-294
branch
3 times, most recently
from
October 29, 2019 14:38
d8e7129
to
a8a8d40
Compare
silvin-lubecki
approved these changes
Oct 29, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
- What I did
Freeze service images at build step
https://docker.atlassian.net/browse/APP-294
- How I did it
For all service image we don't build, resolve addressable-digest from registry
- How to verify it
docker app build do generate a bundle.json with only digested references
- Description for the changelog
Service images are resolved into digested reference during build
- A picture of a cute animal (not mandatory but encouraged)