mirror of
https://github.com/clearml/clearml-agent
synced 2025-01-31 00:56:53 +00:00
Fix docker to use UTF-8 encoding, so prints won't break it
This commit is contained in:
parent
712efa208b
commit
f8ea445339
@ -5,8 +5,17 @@ WORKDIR /usr/agent
|
|||||||
|
|
||||||
COPY . /usr/agent
|
COPY . /usr/agent
|
||||||
|
|
||||||
|
ENV LC_ALL=en_US.UTF-8
|
||||||
|
ENV LANG=en_US.UTF-8
|
||||||
|
ENV LANGUAGE=en_US.UTF-8
|
||||||
|
ENV PYTHONIOENCODING=UTF-8
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get dist-upgrade -y
|
RUN apt-get dist-upgrade -y
|
||||||
|
RUN apt-get install -y locales
|
||||||
|
|
||||||
|
RUN locale-gen en_US.UTF-8
|
||||||
|
|
||||||
RUN apt-get install -y curl python3-pip git
|
RUN apt-get install -y curl python3-pip git
|
||||||
RUN curl -sSL https://get.docker.com/ | sh
|
RUN curl -sSL https://get.docker.com/ | sh
|
||||||
RUN python3 -m pip install -U pip
|
RUN python3 -m pip install -U pip
|
||||||
|
@ -11,4 +11,4 @@ TRAINS_API_HOST=${TRAINS_API_HOST:-"http://$TRAINS_HOST_IP:8008"}
|
|||||||
echo $TRAINS_FILES_HOST $TRAINS_WEB_HOST $TRAINS_API_HOST 1>&2
|
echo $TRAINS_FILES_HOST $TRAINS_WEB_HOST $TRAINS_API_HOST 1>&2
|
||||||
|
|
||||||
python3 -m pip install -q -U "trains-agent${TRAINS_AGENT_UPDATE_VERSION}"
|
python3 -m pip install -q -U "trains-agent${TRAINS_AGENT_UPDATE_VERSION}"
|
||||||
trains-agent daemon --services-mode --queue services --create-queue --docker $TRAINS_AGENT_DEFAULT_BASE_DOCKER --cpu-only $TRAINS_AGENT_EXTRA_ARGS
|
trains-agent daemon --services-mode --queue services --create-queue --docker "$TRAINS_AGENT_DEFAULT_BASE_DOCKER" --cpu-only $TRAINS_AGENT_EXTRA_ARGS
|
||||||
|
Loading…
Reference in New Issue
Block a user