I have an ant build system for the project. which does compile, build and packaging of resources. Now we are migrating to containers. so we have to do an Docker build on the packaged binaries. Is there any known pattern on how to hook Dockerfile build inside the Ant Build?
Also, whenever Docker build fails it returns “1” if it passes it returns image id: xxxxxx322 is there any known pattern on how to iterate docker build output and know whether the result was successful or not?
Here is how the Buid process is expected to work:
- Load resources
- java Build
- c# build
- package binaries
- Docker build
- Docker push