-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include LICENSE files in image (#10)
This commit alters the 'build' target to find all of the LICENSE files in the source code and include them in a /licenses directory inside the container image. Inclusion of the license files may be a requirement for some to distribute the cloud-discovery container image.
- Loading branch information
Showing
3 changed files
with
9 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.idea/* | ||
cert* | ||
cert* | ||
licenses |
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
.PHONY: build | ||
|
||
build: | ||
docker build -t twistlock/cloud-discovery . | ||
# Find all of the open source LICENSE files in the source code and include them in a /licenses directory inside the container image. | ||
# Inclusion of the license files may be a requirement for some to distribute the cloud-discovery container image. | ||
rm -rf licenses; mkdir -p licenses; find . | grep LICENSE | while IFS= read -r pathname; do filename=$$(echo $$pathname | tr "\.\/" "_" | sed "s/^__//"); cp $$pathname licenses/$$filename; done | ||
docker build -t twistlock/cloud-discovery . |