Closed JosiahRegencia closed 6 years ago
Although I think one possible solution is editing the postgresql config files inside docker. But I'm not really yet sure how to do it.
Also, actually having problems running my docker-compose locally:
ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?
If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
That's why I've been using Travis to test my docker-compose
I'm trying to fix it, though
On Ubuntu? Make sure docker is running ps -ef | grep docker
. Depending on how you configured it, you might also need to run docker commands as root sudo docker ps
.
Testing this one out https://objectpartners.com/2016/09/06/docker-image-automated-tests/
It has travis in it also
In docker-compose.test.yml, I tried putting the sut under the services. But apparently the services doesn't support sut. So I reverted it back to normal and tried adding docker ps after running the test script.
CONTAINER ID IMAGE COMMAND CREATED STATUS
bd75394e1702 ci_sut "python savant/tes..." Less than a second ago Up Less than a second
PORTS NAMES
ci_sut_1
I'm not sure if this is normal that there are no ports and names. I'm still currently Googling. The past few days for me have been more about Googling and just trying out stuff like rearranging the configurations. But so far nothing has really been helpful yet.