Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support Dockerfile RUN <<EOF #1777

Open
lmtoo opened this issue Apr 10, 2024 · 1 comment
Open

support Dockerfile RUN <<EOF #1777

lmtoo opened this issue Apr 10, 2024 · 1 comment

Comments

@lmtoo
Copy link

lmtoo commented Apr 10, 2024

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]
@poikilotherm
Copy link
Contributor

poikilotherm commented Apr 12, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants