From df2fe17e741e8984fbe3accf46a08bb3813327d7 Mon Sep 17 00:00:00 2001 From: Charlie Collett Date: Fri, 30 Aug 2024 10:14:00 -0700 Subject: [PATCH] Print out more information --- Dockerfile | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5dee2ec..c07caf8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,17 +44,17 @@ COPY . . # Run tests USER app RUN poetry run pytest tests -# Print environment information -RUN echo -n "Environment information: " && cat /etc/os-release | grep PRETTY_NAME +# Print environment information +RUN echo -n "--------START ENVIRONMENT OUTPUT--------" +RUN echo -n "OS: " && cat /etc/os-release # Print Debian version on the same line RUN echo -n "Debian Version: " && cat /etc/debian_version - # Print Python version on the same line -RUN echo -n "Python Version: " && poetry run python --version - +RUN echo -n "LANGUAGE: " && poetry run python --version # Print Python dependencies on the same line with the list starting right after the title -RUN echo "Python Dependencies:" && poetry run pip list +RUN echo "DEPENDENCIES:" && poetry run pip list +RUN echo -n "--------END ENVIRONMENT OUTPUT--------" FROM poetry AS build-unlocked-test COPY pyproject.toml ./ @@ -63,17 +63,17 @@ COPY . . # Run tests USER app RUN poetry run pytest tests -# Print environment information -RUN echo -n "Environment information: " && cat /etc/os-release | grep PRETTY_NAME +# Print environment information +RUN echo -n "--------START ENVIRONMENT OUTPUT--------" +RUN echo -n "OS: " && cat /etc/os-release # Print Debian version on the same line RUN echo -n "Debian Version: " && cat /etc/debian_version - # Print Python version on the same line -RUN echo -n "Python Version: " && poetry run python --version - +RUN echo -n "LANGUAGE: " && poetry run python --version # Print Python dependencies on the same line with the list starting right after the title -RUN echo "Python Dependencies:" && poetry run pip list +RUN echo "DEPENDENCIES:" && poetry run pip list +RUN echo -n "--------END ENVIRONMENT OUTPUT--------" FROM poetry AS build-latest-test COPY pyproject.toml ./ @@ -83,17 +83,17 @@ COPY . . # Run tests USER app RUN poetry run pytest tests -# Print environment information -RUN echo -n "Environment information: " && cat /etc/os-release | grep PRETTY_NAME +# Print environment information +RUN echo -n "--------START ENVIRONMENT OUTPUT--------" +RUN echo -n "OS: " && cat /etc/os-release # Print Debian version on the same line RUN echo -n "Debian Version: " && cat /etc/debian_version - # Print Python version on the same line -RUN echo -n "Python Version: " && poetry run python --version - +RUN echo -n "LANGUAGE: " && poetry run python --version # Print Python dependencies on the same line with the list starting right after the title -RUN echo "Python Dependencies:" && poetry run pip list +RUN echo "DEPENDENCIES:" && poetry run pip list +RUN echo -n "--------END ENVIRONMENT OUTPUT--------" FROM base AS production