Doveps / mono

Code for Doveps projects
http://doveps.com
MIT License
0 stars 0 forks source link

Travis docker #71

Closed JosiahRegencia closed 6 years ago

JosiahRegencia commented 6 years ago

Finally got docker-compose to work in travis.

greenmoss commented 6 years ago

Is this for #70 ?

It looks like you are installing Docker on the Travis agent, but you are still using local Travis postgres instead of the Postgres from your docker-compose.yaml.

The scope of #70 includes using postgres from Docker instead. Should there be a new ticket for the work you've done for this PR?

JosiahRegencia commented 6 years ago

Hi, I'm not sure what this really means:

ERROR: for db Cannot start service db: driver failed programming external connectivity on endpoint mono_db_1 (dc7650e16a648b23e7a3d2b5ca01f1b29089225e9d63e36ebd586657c97d217e): Error starting userland proxy: listen tcp 0.0.0.0:5432: bind: address already in use

greenmoss commented 6 years ago

@JosiahRegencia I see you've been investigating this already, which is great.

You are right to be checking ports. Judging by ports, the test VM already has PostgreSQL AND MySQL running on it.

I find this strange. I ready https://docs.travis-ci.com/user/database-setup/ and it looks like you have to specifically request a DB, which you aren't doing.

I'm not sure you have to do the manual Docker pull. Did you checkout https://docs.travis-ci.com/user/docker/ ?

I think you can sidestep the port issue by not exporting the PostgreSQL port. It only needs to be visible inside the Docker cluster.

greenmoss commented 6 years ago

What are the plans for this branch? Would you still like to use it, or have you switched to a different branch?

JosiahRegencia commented 6 years ago

I'll continue with this branch. Just need to get the Openstack working well. The internet is very slow when I'm on ths VPN. Randy and I are currently working on it

greenmoss commented 6 years ago

You are going to use a different branch and PR, right? I'll close this PR. The branch will stay here until you are ready to remove it.