-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use buildenv image for linter/protos
At one point in time, "testenv" was used for basic build-time processes such as linter, protos, and unit-tests. Overtime, the requirements for unit-testing grew and more dependencies were added. This had the side-effect of requiring all prerequisites for unit-testing be met for the other uses such as "make protos". This led to a chicken-egg scenario when certain dependencies required the protos to be updated before they could be built, but the proto compilation required them to be built before it could run. This is clearly not correct. We fix this by making the image contruction more fine-grained. We split the basic functionality of "testenv" out into "buildenv". We then allow the linter/protos process and the testenv image to consume buildenv. Change-Id: I5db05bac649c2fefe73b19ec06e44efe3d2b42fa Signed-off-by: Gregory Haskins <gregory.haskins@gmail.com>
- Loading branch information
Showing
3 changed files
with
15 additions
and
12 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM hyperledger/fabric-baseimage:_BASE_TAG_ | ||
COPY payload/protoc-gen-go /usr/local/bin/ | ||
ADD payload/gotools.tar.bz2 /usr/local/bin/ |
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