Skip to content

Commit

Permalink
Show OS_NAME and OS_VERSION in versioninfo
Browse files Browse the repository at this point in the history
  • Loading branch information
marble committed Nov 19, 2020
1 parent d24e389 commit 42e0120
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ RUN \
&& COMMENT "Memorize the settings in the container" \
&& echo "export DEBIAN_FRONTEND=\"${DEBIAN_FRONTEND}\"" >> /ALL/Downloads/envvars.sh \
&& echo "export DOCKRUN_PREFIX=\"${DOCKRUN_PREFIX}\"" >> /ALL/Downloads/envvars.sh \
&& echo "export OS_NAME=\"$( grep -e ^NAME= /etc/os-release | sed -r 's/.*"(.+)".*/\1/')\"" >> /ALL/Downloads/envvars.sh \
&& echo "export OS_VERSION=\"$(grep -e ^VERSION= /etc/os-release | sed -r 's/.*"(.+)".*/\1/')\"" >> /ALL/Downloads/envvars.sh \
&& echo "export OUR_IMAGE=\"${OUR_IMAGE}\"" >> /ALL/Downloads/envvars.sh \
&& echo "export OUR_IMAGE_SHORT=\"${OUR_IMAGE_SHORT}\"" >> /ALL/Downloads/envvars.sh \
&& echo "export OUR_IMAGE_SLOGAN=\"${OUR_IMAGE_SLOGAN}\"" >> /ALL/Downloads/envvars.sh \
Expand All @@ -186,6 +188,8 @@ RUN \
TypoScript lexer :: typoscript.py :: $TYPOSCRIPT_PY_VERSION\n\
\n\
DOCKRUN_PREFIX :: ${DOCKRUN_PREFIX}\n\
OS_NAME :: $(grep -e ^NAME= /etc/os-release | sed -r 's/.*"(.+)".*/\1/')\n\
OS_VERSION :: $(grep -e ^VERSION= /etc/os-release | sed -r 's/.*"(.+)".*/\1/')\n\
OUR_IMAGE :: ${OUR_IMAGE}\n\
OUR_IMAGE_SHORT :: ${OUR_IMAGE_SHORT}\n\
OUR_IMAGE_SLOGAN :: ${OUR_IMAGE_SLOGAN}\n\
Expand Down

0 comments on commit 42e0120

Please sign in to comment.