You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You have a way to reference a Dockerfile which already exists in someone's project:
[docker:app]dockerfile = {toxinidir}/Dockerfile
I define the service details inside of my docker-compose.yml file. See ansible/django-ansible-base#632, and associated project, copying from the docker-compose.yml here:
What I would like to do is to say "use the details from the postgres service in file xyz". That would require a reference to the docker-compose.yml file (similar to your example with Dockerfile), and the name of the service. Spitball of this:
[docker:db]compose_file = {toxinidir}/docker-compose.yml
service = postgres
This way, I wouldn't have to maintain a separate set of parameters. For instance, my tests are going to (at some level) hard-code the database username and password. I don't want to define the postgres username/password in docker-compose.yml for manual testing, and then also in tox.ini for CI. I'd rather have just 1 source of truth.
This does not appear to be possible right now, so filing as a feature request.
The text was updated successfully, but these errors were encountered:
You have a way to reference a Dockerfile which already exists in someone's project:
I define the service details inside of my
docker-compose.yml
file. See ansible/django-ansible-base#632, and associated project, copying from thedocker-compose.yml
here:What I would like to do is to say "use the details from the postgres service in file xyz". That would require a reference to the
docker-compose.yml
file (similar to your example with Dockerfile), and the name of the service. Spitball of this:This way, I wouldn't have to maintain a separate set of parameters. For instance, my tests are going to (at some level) hard-code the database username and password. I don't want to define the postgres username/password in
docker-compose.yml
for manual testing, and then also intox.ini
for CI. I'd rather have just 1 source of truth.This does not appear to be possible right now, so filing as a feature request.
The text was updated successfully, but these errors were encountered: