Skip to content

Commit

Permalink
Add deprecated warnings to deprecated iamges
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Heinrich <andreas.heinrich@rwth-aachen.de>
  • Loading branch information
andistorm committed Jul 9, 2024
1 parent 3a55070 commit c250e5a
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 4 deletions.
3 changes: 2 additions & 1 deletion docker/deprecated-images/build-kit/alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,6 @@ COPY ./entrypoint.sh /

WORKDIR $WORKSPACE_PATH

ENTRYPOINT ["/entrypoint.sh"]
COPY deprecated_wrapper /
ENTRYPOINT ["/deprecated_wrapper"]
CMD ["run-script", "init"]
3 changes: 2 additions & 1 deletion docker/deprecated-images/build-kit/debian.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,6 @@ COPY ./entrypoint.sh /

WORKDIR $WORKSPACE_PATH

ENTRYPOINT ["/entrypoint.sh"]
COPY deprecated_wrapper /
ENTRYPOINT ["/deprecated_wrapper"]
CMD ["run-script", "init"]
20 changes: 20 additions & 0 deletions docker/deprecated-images/build-kit/deprecated_wrapper
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
4 changes: 2 additions & 2 deletions docker/deprecated-images/everest-clang-format/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ RUN apt install -y \
python-is-python3

COPY run-clang-format.py /usr/bin/run-clang-format

ENTRYPOINT ["/usr/bin/run-clang-format"]
COPY deprecated_wrapper /usr/bin/deprecated_wrapper
ENTRYPOINT ["/usr/bin/deprecated_wrapper"]
20 changes: 20 additions & 0 deletions docker/deprecated-images/everest-clang-format/deprecated_wrapper
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

0 comments on commit c250e5a

Please sign in to comment.