docker-maven-plugin icon indicating copy to clipboard operation
docker-maven-plugin copied to clipboard

support Dockerfile RUN <<EOF

Open lmtoo opened this issue 10 months ago • 1 comments

Description

multi shell commands not executed

RUN <<EOF bash -ex
 echo "Cleaning up..."
EOF
io.fabric8 docker-maven-plugin 0.44.0 all true
                <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]

lmtoo avatar Apr 10 '24 11:04 lmtoo

It works with RUN <<EOF for me with v0.43.4 and v0.44.0. See these pom.xml and Dockerfile for an example.

poikilotherm avatar Apr 12 '24 08:04 poikilotherm