docker-maven-plugin
docker-maven-plugin copied to clipboard
support Dockerfile RUN <<EOF
Description
multi shell commands not executed
RUN <<EOF bash -ex
echo "Cleaning up..."
EOF
<images>
<image>
<name>base-service/process:%l</name>
<build>
<contextDir>${basedir}/../docker</contextDir>
<dockerFile>Dockerfile</dockerFile>
<tags>
<tag>%v</tag>
<tag>%T</tag>
</tags>
<cleanup>none</cleanup>
<noCache/>
</build>
</image>
</images>
</configuration>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>build</goal>
<goal>push</goal>
</goals>
</execution>
</executions>
</plugin>
Info
- docker-maven-plugin version :
- Maven version (
mvn -v
) :
- Docker version :
- If it's a bug, how to reproduce :
- If it's a feature request, what is your use case :
- Sample project : [GitHub Clone URL]
It works with RUN <<EOF
for me with v0.43.4 and v0.44.0. See these pom.xml and Dockerfile for an example.