-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify CMake installation in Dockerfiles (#222)
* simplify Dockerfile for clang CI * Use correct public key to verify CMake binary signature * [skip ci] Add documentation * Add example of CMake release URL in CONTRIBUTING.md * Add missing licenses * merge CONTIRUBINT.md into README.md under docker * add package write permission in CI --------- Co-authored-by: Yuuichi Asahi <[email protected]> Co-authored-by: Paul Zehner <[email protected]>
- Loading branch information
1 parent
6743d46
commit ccdedaa
Showing
9 changed files
with
97 additions
and
65 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,27 @@ | ||
<!-- | ||
SPDX-FileCopyrightText: (C) The kokkos-fft development team, see COPYRIGHT.md file | ||
SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception | ||
--> | ||
|
||
# Dockerfiles | ||
|
||
Those Dockerfiles are mainly used for CI. | ||
Each backend/compiler has a corresponding Dockerfile. | ||
|
||
# Contributing | ||
|
||
## CMake installation in Dockerfiles | ||
|
||
As the project requires CMake v3.23 at least, and as some Dockerfiles are based on Ubuntu 20.04 images, CMake has to be installed manually. | ||
The installer is downloaded, its signature is verified, then its checksum is verified. | ||
To check the signature, the public key of the person who signed the binary is required. | ||
This public key can be extracted from the key ID. | ||
|
||
When updating the Dockerfiles for a newer version of CMake (if needed), the process to get the right public key is as follows: | ||
|
||
1. Identify the release on GitHub (e.g. https://github.com/Kitware/CMake/releases/tag/v3.23.2); | ||
2. Copy the key ID in the line "PGP sign by XXXXXXXX"; | ||
3. Paste it in `https://keys.openpgp.org/` to retrieve the URL of the public key file; | ||
4. Copy the last part in the URL `https://keys.openpgp.org/vks/v1/by-fingerprint/YYYYYYYY`; | ||
5. Update the Dockrfiles with this value. |
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