EmergingTechnologyInstitute / acmeair-netflixoss-dockerlocal

acmeair-netflixoss-dockerlocal
Apache License 2.0
33 stars 11 forks source link

Correct exposed ports of Liberty containers #8

Closed tkhinaba closed 10 years ago

tkhinaba commented 10 years ago

The Liberty containers listen port 80 but they exposed 9080 and 9443 which are inherited from liberty/Dockerfile. Auth-service-liberty and webapp-liberty are not enabled SSL, then port 443 is not exposed. The micro scaler launches containers with "PublishAllPorts":true, the all exposed ports of the container are published.

This will fix #7.

example

CONTAINER ID        IMAGE                                 COMMAND                CREATED             STATUS              PORTS                                                                   NAMES
db914f6aaec9        acmeair/webapp-liberty:latest         /usr/bin/supervisord   13 minutes ago      Up 13 minutes       0.0.0.0:49190->22/tcp, 0.0.0.0:49191->80/tcp                            acmeair-webapp-d5666736a8
6d2737cef9ef        acmeair/auth-service-liberty:latest   /usr/bin/supervisord   16 minutes ago      Up 16 minutes       0.0.0.0:49188->22/tcp, 0.0.0.0:49189->80/tcp                            acmeair-auth-service-99fb7feadf