Update trains-agent-services docker image

This commit is contained in:
allegroai 2020-06-01 21:53:33 +03:00
parent f4addaa653
commit fdc9956da3

View File

@ -117,14 +117,7 @@ services:
agent-services:
container_name: trains-agent-services
image: allegroai/trains-agent:latest
entrypoint: ["/bin/bash", "-c", "if [ -z \"$$TRAINS_API_HOST\" ]; then TRAINS_HOST_IP=$${TRAINS_HOST_IP:-$$(curl -s https://ifconfig.me/ip)} ; fi ; \
TRAINS_FILES_HOST=$${TRAINS_FILES_HOST:-\"http://$$TRAINS_HOST_IP:8081\"} ; \
TRAINS_WEB_HOST=$${TRAINS_WEB_HOST:-\"http://$$TRAINS_HOST_IP:8080\"} ; \
TRAINS_API_HOST=$${TRAINS_API_HOST:-\"http://$$TRAINS_HOST_IP:8008\"} ; \
echo $$TRAINS_FILES_HOST $$TRAINS_WEB_HOST $$TRAINS_API_HOST 1>&2 ; \
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"]
image: allegroai/trains-agent-services:latest
restart: unless-stopped
privileged: true
environment: