y12studio / y12io

online service evaluation
Apache License 2.0
4 stars 0 forks source link

hipache docker test #11

Closed y12studio closed 10 years ago

y12studio commented 10 years ago

ref

$ git clone https://github.com/dotcloud/hipache
$ cd hipache
$ sudo docker.io build -t="test/hp" .
$ sudo docker.io run -d -p 6379:6379 -p 80:80 test/hp

install redis client only

$ sudo apt-get install redis-server
$ sudo /etc/init.d/redis-server stop
$ sudo update-rc.d redis-server disable

test [Result Fail]

$ sudo docker.io run -d jbfink/wordpress
$ sudo docker.io ps
CONTAINER ID        IMAGE   COMMAND               CREATED             STATUS              PORTS                                        NAMES
5900eef30295        jbfink/wordpress:latest   /bin/bash /start.sh   24 seconds ago      Up 24 seconds       0.0.0.0:49153->80/tcp, 22/tcp                condescending_brattain
6170b86706b2        test/hp:latest            supervisord -n        11 minutes ago      Up 11 minutes       0.0.0.0:6379->6379/tcp, 0.0.0.0:80->80/tcp   agitated_pasteur
$ redis-cli rpush frontend:wp.io.y12 wpdemo
$ redis-cli rpush frontend:wp.io.y12 http://172.17.42.1:49153
$ curl --verbose --header 'Host: wp.io.y12' http://127.0.0.1
* Rebuilt URL to: http://127.0.0.1/
* Hostname was NOT found in DNS cache
*   Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.35.0
> Accept: */*
> Host: wp.io.y12
>
* Empty reply from server
* Connection #0 to host 127.0.0.1 left intact
curl: (52) Empty reply from server