I'm a newbie with docker.
I'm creating a dockerfile, and want to execute hello world from Ant file "build.xml" with docker commands. Is this possible?
This is a quick solution:
FROM alpine
WORKDIR /work
RUN apk update && apk add openjdk8 && apk add apache-ant
ENTRYPOINT [ "ant" ]
<?xml version = "1.0"?>
<project name = "Hello World Project" default = "info">
<target name = "info">
<echo>Hello World - Welcome to Apache Ant!</echo>
</target>
</project>
docker build -t ant:1.0 ./ant
docker run --rm -v $(pwd)/ant:/work ant:1.0
Of course you can put in "ant" your whole project and build that.
This can be refined, but hopefully it answers your question so far.