ezko
2018-01-02 17:11:59 UTC
hi,
i'm trying to run ATS 7.1 inside a docker
my entry point is:
ENTRYPOINT ["/bin/bash"]
CMD ["-c","traffic_cop"]
which seems OK because traffic_cop seems to run in the foreground , so the
container can be monitored for orchestration. Is there a better entry point
for running ATS ?
my remap file:
map http://localhost:8080/cache/ http://{cache}
map http://172.17.0.4:8080/cache/ http://{cache}
172.17.0.4 is an inner IP which the container instance got (it's not
constant)
My problem is with the port mapping.
When running in the default bridge mode with published ports for example:
docker run -d --name ats7.1 -e TS_ROOT='/' -p 7070:8080 -t centos_ats_7.1
docker port ats7.1
8080/tcp -> 0.0.0.0:7070
using the IP works (because i explicitly added a remap rule):
curl http://172.17.0.4:8080/cache/
but using the port mapping doesn't work
curl http://localhost:7070/cache/
I'm getting:
status 404 (Not Found on Accelerator) for 'http://localhost/cache/'
thanks in advance for any help.
--
Sent from: http://apache-traffic-server.24303.n7.nabble.com/
i'm trying to run ATS 7.1 inside a docker
my entry point is:
ENTRYPOINT ["/bin/bash"]
CMD ["-c","traffic_cop"]
which seems OK because traffic_cop seems to run in the foreground , so the
container can be monitored for orchestration. Is there a better entry point
for running ATS ?
my remap file:
map http://localhost:8080/cache/ http://{cache}
map http://172.17.0.4:8080/cache/ http://{cache}
172.17.0.4 is an inner IP which the container instance got (it's not
constant)
My problem is with the port mapping.
When running in the default bridge mode with published ports for example:
docker run -d --name ats7.1 -e TS_ROOT='/' -p 7070:8080 -t centos_ats_7.1
docker port ats7.1
8080/tcp -> 0.0.0.0:7070
using the IP works (because i explicitly added a remap rule):
curl http://172.17.0.4:8080/cache/
but using the port mapping doesn't work
curl http://localhost:7070/cache/
I'm getting:
status 404 (Not Found on Accelerator) for 'http://localhost/cache/'
thanks in advance for any help.
--
Sent from: http://apache-traffic-server.24303.n7.nabble.com/