-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1098 from Luap99/msrv
define MSRV and check for it in CI
- Loading branch information
Showing
8 changed files
with
47 additions
and
25 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,4 @@ | ||
# Source for quay.io/libpod/nv-rust | ||
# This version should always match the MSRV, when you update this also update the version in the root README.md. | ||
FROM docker.io/library/rust:1.76 | ||
RUN apt-get update && apt-get -y install protobuf-compiler libprotobuf-dev |
This file was deleted.
Oops, something went wrong.
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,9 @@ | ||
# Rust image | ||
|
||
The point of this image is to verify the MSRV in CI so we can catch if a code or dependency change bumped the MSRV. | ||
If this is acceptable then update the version in the Dockerfile.Rust FROM line then build the new image see below. | ||
|
||
# Build and publish rust image | ||
|
||
Make sure you have valid `quay.io/libpod` credentials in order to push the image there. | ||
Then run the script `build_and_publish_rust_image.sh` to build and push it. |
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,19 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
PODMAN=${PODMAN:-podman} | ||
SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}") | ||
DOCKERFILE="$(dirname "${BASH_SOURCE[0]}")/Dockerfile.Rust" | ||
|
||
# get the tag from the Dockerfile so we do not duplicate it | ||
TAG=$(awk -F':' '/FROM/{print $NF}' $DOCKERFILE) | ||
if [[ -z "$TAG" ]]; then | ||
echo "Empty tag in $DOCKERFILE; the tag must specify the rust version to use" >&2 | ||
exit 1 | ||
fi | ||
|
||
FULL_IMAGE_NAME="quay.io/libpod/nv-rust:$TAG" | ||
|
||
$PODMAN build -t $FULL_IMAGE_NAME -f $DOCKERFILE | ||
$PODMAN push $FULL_IMAGE_NAME |
d02a620
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.
podman-next COPR build failed. @containers/packit-build please check.