0

I have created .ddev/web-build/Dockerfile. It builds, but it doesn't do what I want. How do I figure out why? DRUD_DEBUG=1 ddev start doesn't show any additional output. I don't know the proper docker-compose command to try building it manually either. This does not work:

cd .ddev
docker-compose build web

because it needs specific environment variables that DDEV injects.

wizonesolutions
  • 577
  • 3
  • 15
  • 1
    When a .ddev/web-build/Dockerfile build fails in any way, it shows the failure output. I guess it's not failing for you... So please try this: `cd .ddev/web-build; docker build .` and see if that works to build an image for you, and you can experiment with that image. – rfay Sep 25 '19 at 01:28
  • Can you share more details? It could help to see the Dockerfile you've created, and get a better explanation about what exactly is not working – Nico Haase Nov 13 '19 at 11:42
  • I don't remember at this point :) it was more a question of how to see the actual build output when ddev does the building, I guess. – wizonesolutions Nov 13 '19 at 21:00

1 Answers1

1

On current versions of ddev (v1.18+) you can

cd .ddev
~/.ddev/bin/docker-compose -f .ddev-docker-compose-full.yaml build web --no-cache

and you'll see the full build go by. You can use additional build arguments as well to change the output format, etc. For example, ~/.ddev/bin/docker-compose -f .ddev-docker-compose-full.yaml build web --no-cache --progress=plain

You can review the entire Dockerfile that's being built at .ddev/.webimageBuild/Dockerfile.

See docs.

rfay
  • 9,963
  • 1
  • 47
  • 89