generated from EVerest/everest-template
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add deprecated warnings to deprecated iamges
Signed-off-by: Andreas Heinrich <andreas.heinrich@rwth-aachen.de>
- Loading branch information
Showing
5 changed files
with
46 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
function print_warning { | ||
echo -e "\033[0;31m" | ||
echo "---------------------------------------------" | ||
echo "WARNING" | ||
echo "This docker image is depreacted." | ||
echo "Please use the debian based build-kit instead 'ghcr.io/everest/everest-ci/build-kit-base' instead." | ||
echo "Fore more information see https://github.com/EVerest/everest-ci/pull/22" | ||
echo "---------------------------------------------" | ||
echo -e "\033[0m" | ||
} | ||
|
||
print_warning | ||
|
||
/entrypoint.sh "$@" | ||
exit_code=$? | ||
|
||
print_warning | ||
exit $exit_code |
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
20 changes: 20 additions & 0 deletions
20
docker/deprecated-images/everest-clang-format/deprecated_wrapper
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,20 @@ | ||
#!/bin/bash | ||
|
||
function print_warning { | ||
echo -e "\033[0;31m" | ||
echo "---------------------------------------------" | ||
echo "WARNING" | ||
echo "This docker image is depreacted." | ||
echo "It was moved from 'ghcr.io/everest/everest-clang-format' to 'ghcr.io/everest/everest-ci/everest-clang-format'." | ||
echo "Please use 'ghcr.io/everest/everest-ci/everest-clang-format' instead." | ||
echo "---------------------------------------------" | ||
echo -e "\033[0m" | ||
} | ||
|
||
print_warning | ||
|
||
/usr/bin/clang-format "$@" | ||
exit_code=$? | ||
|
||
print_warning | ||
exit $exit_code |