-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include license report in container images
Extended the Dockerfiles to generate a license report for the 3rd party dependencies being used and to include the report in the container image being produced.
- Loading branch information
1 parent
0f38d97
commit f5be7d4
Showing
10 changed files
with
204 additions
and
15 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
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,110 @@ | ||
<!-- | ||
SPDX-FileCopyrightText: 2024 Contributors to the Eclipse Foundation | ||
See the NOTICE file(s) distributed with this work for additional | ||
information regarding copyright ownership. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
SPDX-License-Identifier: Apache-2.0 | ||
--> | ||
<html> | ||
|
||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<meta name="description" | ||
content="This page contains the license text of 3rd party crates used by this program/component." /> | ||
<meta name="author" content="Produced by the Cargo about plugin" /> | ||
<meta name="viewport" | ||
content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, width=device-width" /> | ||
<title>Third Party Licenses</title> | ||
<style> | ||
@media (prefers-color-scheme: dark) { | ||
body { | ||
background: #333; | ||
color: white; | ||
} | ||
a { | ||
color: skyblue; | ||
} | ||
} | ||
.container { | ||
font-family: sans-serif; | ||
max-width: 800px; | ||
margin: 0 auto; | ||
} | ||
.intro { | ||
text-align: center; | ||
} | ||
.licenses-list { | ||
list-style-type: none; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
.license-used-by { | ||
margin-top: -10px; | ||
} | ||
.license-text { | ||
max-height: 200px; | ||
overflow-y: scroll; | ||
white-space: pre-wrap; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<main class="container"> | ||
<div class="intro"> | ||
<h1>Third Party Licenses</h1> | ||
<p> | ||
This page contains the license text of 3rd party crates used by this program/component. | ||
Any licensing information listed here is based on the declarations made by the individual | ||
Rust crates being used, and is reproduced here without further validation or additional | ||
checking. | ||
</p> | ||
</div> | ||
|
||
<h2>Overview of licenses:</h2> | ||
<ul class="licenses-overview"> | ||
{{#each overview}} | ||
<li><a href="#{{id}}">{{name}}</a> ({{count}})</li> | ||
{{/each}} | ||
</ul> | ||
|
||
<h2>All license text:</h2> | ||
<ul class="licenses-list"> | ||
{{#each licenses}} | ||
<li class="license"> | ||
<h3 id="{{id}}">{{name}}</h3> | ||
<h4>Used by:</h4> | ||
<ul class="license-used-by"> | ||
{{#each used_by}} | ||
<li><a | ||
href="{{#if crate.repository}} {{crate.repository}} {{else}} https://crates.io/crates/{{crate.name}} {{/if}}">{{crate.name}} | ||
{{crate.version}}</a></li> | ||
{{/each}} | ||
</ul> | ||
<pre class="license-text">{{text}}</pre> | ||
</li> | ||
{{/each}} | ||
</ul> | ||
</main> | ||
</body> | ||
|
||
</html> |
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,47 @@ | ||
# SPDX-FileCopyrightText: 2024 Contributors to the Eclipse Foundation | ||
# | ||
# See the NOTICE file(s) distributed with this work for additional | ||
# information regarding copyright ownership. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Config file for cargo about | ||
# For all options see https://embarkstudios.github.io/cargo-about/cli/generate/config.html | ||
|
||
# If you add a license in the following section also consider changing deny.toml | ||
accepted = [ | ||
"EPL-2.0", | ||
"EPL-1.0", | ||
"Apache-2.0", | ||
"MIT", | ||
"BSD-3-Clause", | ||
"BSD-2-Clause", | ||
"ISC", | ||
"MPL-2.0", | ||
"Zlib", | ||
] | ||
|
||
#targets = ["x86_64-unknown-linux-musl", "aarch64-unknown-linux-musl"] | ||
ignore-build-dependencies = true | ||
ignore-dev-dependencies = true | ||
no-clearly-defined = true | ||
workarounds = ["chrono", "prost", "ring", "rustls", "tonic"] | ||
private = { ignore = true } | ||
|
||
[unicode-ident] | ||
accepted = ["Unicode-DFS-2016"] | ||
|
||
[ring] | ||
accepted = ["OpenSSL"] |
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
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
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