-
Notifications
You must be signed in to change notification settings - Fork 174
Ensure invocation image has been build before running make command #631
Ensure invocation image has been build before running make command #631
Conversation
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, even if I'm not a Makefile expert 😅
Are you sure re-invoking make like this is the best way?
I'm not a Makefile expert too 😅 |
Makefile
Outdated
@@ -72,6 +72,10 @@ bin/$(BIN_NAME)-%.exe bin/$(BIN_NAME)-%: cmd/$(BIN_NAME) check_go_env | |||
bin/%: cmd/% check_go_env | |||
$(GO_BUILD) -o $@$(EXEC_EXT) ./$< | |||
|
|||
build-invocation-image: | |||
@echo "Build invocation image if needed" | |||
$(if $(shell docker images -q docker/cnab-app-base:$(TAG)),, make -f ./docker.Makefile invocation-image) |
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.
You can replace make
by $(MAKE)
.
And just for readability it can be multi lines.
$(if $(shell docker images -q docker/cnab-app-base:$(TAG)),, make -f ./docker.Makefile invocation-image) | |
$(if $(shell docker images -q docker/cnab-app-base:$(TAG)),, \ | |
$(MAKE) -f ./docker.Makefile invocation-image \ | |
) |
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.
Done, thanks 👍
nobody is |
7dfef1d
to
85111ce
Compare
Codecov Report
@@ Coverage Diff @@
## master #631 +/- ##
========================================
Coverage ? 72.4%
========================================
Files ? 49
Lines ? 2577
Branches ? 0
========================================
Hits ? 1866
Misses ? 477
Partials ? 234 Continue to review full report at Codecov.
|
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.
Noice
85111ce
to
c4292a8
Compare
Please sign your commits following these rules: $ git clone -b "suitable_error_4_unknown_command" git@github.com:glours/app.git somewhere
$ cd somewhere
$ git rebase -i HEAD~842354506960
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f Amending updates the existing PR. You DO NOT need to open a new one. |
5e96e7d
to
5484116
Compare
5484116
to
44db281
Compare
…l command Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
44db281
to
38b3c12
Compare
As a potential contributor of Docker App
I want to run
make
ormake all
on docker-app source code without having errors during the end-to-end tests phase- What I did
Add a build of the invocation image if needed
- How I did it
Check if the image is already present & if not build it
- How to verify it
make
commandmake
command- A picture of a cute animal (not mandatory but encouraged)