Skip to content

Entrypoint does not support arguments #84

Closed
@jamesnetherton

Description

Unless I'm missing something obvious, entrypoint does not seem to support arguments. For example if I configure the plugin like the following:

<configuration>
  <images>
    <image>
      <name>ubuntu</name>
      <alias>test-container</alias>
      <run>
        <entrypoint>/bin/echo hello world</entrypoint>
      </run>
    </image>
  </images>
</configuration>

The build fails with:

[ERROR] Failed to execute goal org.jolokia:docker-maven-plugin:0.11.0:start (start-containers) on project docker-maven-plugin-entrypoint: Error while calling docker: Starting container with id 3e9420f4ff87b0213147eb165ab021b2889943ecf4fe0bb4d8f114b616b946fa (Not Found: 404)

However , the build runs fine if I remove the arguments from entrypoint. Not sure if this is intentional but entrypoint should support arguments just like the normal command configuration.

I've fixed this on my fork in this commit 63f8165. If you're happy to accept a PR, let me know.

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions