Skip to content

Commit

Permalink
[CI][Docker] set environment variables for UTF-8, to prevent errors w…
Browse files Browse the repository at this point in the history
…hen running `black` (apache#8089)

* Sets environment shell encoding to UTF-8

 * This prevents the black formatting tool to exit with the following error:
   "RuntimeError: Click will abort further execution because Python was
    configured to use ASCII as encoding for the environment"
  • Loading branch information
leandron authored and Trevor Morris committed Jun 17, 2021
1 parent 1a3e916 commit 1614cb5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/Dockerfile.ci_lint
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,7 @@ RUN bash /install/ubuntu1804_install_clang_format.sh

COPY install/ubuntu_install_nodejs.sh /install/ubuntu_install_nodejs.sh
RUN bash /install/ubuntu_install_nodejs.sh

# To prevent `black` command line errors caused by ASCII encoding
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8

0 comments on commit 1614cb5

Please sign in to comment.