Skip to content
This repository was archived by the owner on Mar 31, 2022. It is now read-only.

Conversation

@npiguet
Copy link
Contributor

@npiguet npiguet commented Oct 25, 2017

I have a use case that requires me to have the Dockerfile in a subfolder of my maven project, but I still want to be able to ADD files and resources that are located in my projects /target folder to my image.

Therefore, I need the build mojo to support the -f PATH argument of docker build.

This changeset adds this support (with matching integration tests)

@npiguet
Copy link
Contributor Author

npiguet commented Oct 25, 2017

I have no idea why the travis CI build failed... It looks unrelated to this branch. It looks like it became stuck while pulling docker images. Not sure where that could come from.

@npiguet npiguet mentioned this pull request Oct 25, 2017
@npiguet
Copy link
Contributor Author

npiguet commented Oct 27, 2017

Does anyone know how I can relaunch a Travis CI build? The last one looks like it failed in some infrastructure code, not in the changes in the pull request. I don't like seeing red when it should be green.

And I would really need this to be merged.

@mattnworb
Copy link
Member

I re-triggered a build run. I believe only repo owners can do that in TravisCI, which can be a headache.

@npiguet
Copy link
Contributor Author

npiguet commented Oct 30, 2017

Looks like it's passing. Any chance to have it merged?

@Shingaz
Copy link

Shingaz commented Nov 9, 2017

We are waiting for this feature too.

@jhaeyaert
Copy link

+1 for this feature.
Is it planned to be merged ?

Thx

@ghost
Copy link

ghost commented Dec 14, 2017

+1
I'm remaining on the legacy docker-maven-plugin until this feature is merged in. We have one parent POM project which a number of child projects inherit from. They all use the same Dockerfile from the parent. The only way I've been able to get this plugin to perform the same behavior is to copy-pasta that parent Dockerfile into every child module due to the child build directory not being accessible to the build context. Makes for a painful process to update that Dockerfile 15+ times.

@vijay-js
Copy link

Any idea on when this is going to be merged?

@blaketsk
Copy link

+1

@cataling
Copy link

+1

3 similar comments
@mgvazquez
Copy link

+1

@vivimice
Copy link

+1

@dnsbtchr
Copy link

+1

@yueli9
Copy link

yueli9 commented Jun 25, 2018

+1, this will be very helpful!

@davidgamez
Copy link

+1, any idea on when this can be merged, I found it very helpful.

@jccode
Copy link

jccode commented Jul 10, 2018

+1

3 similar comments
@Ellene
Copy link

Ellene commented Jul 16, 2018

+1

@phanvuliem
Copy link

+1

@hjchanna
Copy link

hjchanna commented Aug 4, 2018

+1

@masterBrog
Copy link

+1 any news on this? seems to have gone quiet...

@gaurav517
Copy link

Merge it please! or if anyone knows a workaround, please share. Thanks. @mattnworb @npiguet

@Satroler
Copy link

Satroler commented Aug 7, 2018

+1

1 similar comment
@dstanoev
Copy link

+1

@eyeqinglan
Copy link

can resolve by add this plugin operate

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-resources-plugin</artifactId>
        <version>${maven.resources.version}</version>
        <executions>
          <execution>
            <id>copy-docker-resources</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>copy-resources</goal>
            </goals>
            <configuration>
              <outputDirectory>target</outputDirectory>
              <resources>
                <!-- copy docker resources -->
                <resource>
                  <directory>${project.basedir}/src/main/Docker</directory>
                </resource>
              </resources>
            </configuration>
          </execution>
        </executions>
      </plugin>

@ncc0706
Copy link

ncc0706 commented Aug 28, 2018

+1

@habeeb-umo
Copy link

Please merge ASAP!

@php-coder
Copy link

@npiguet I see that this PR has conflict now and can't be merged (even if authors would like to do so). Are you still interesting in this PR? Could you update it? Thanks!

@juliabenatti
Copy link

+1

@jchacana
Copy link

+1. I'm staying with legacy plugin waiting for this PR :(

@cristiker
Copy link

+1

2 similar comments
@acoulson2000
Copy link

+1

@Bryann
Copy link

Bryann commented Jan 7, 2019

+1

@mattnworb
Copy link
Member

sorry for the very long delay everyone. I'll try to resolve this now - had to resolve some conflicts.

@mattnworb
Copy link
Member

not sure why Travis is not reporting status, but verified this passes all tests locally

@mattnworb mattnworb merged commit f3509a1 into spotify:master Jan 15, 2019
@mattnworb
Copy link
Member

1.4.10 has been released with this change

@Bryann
Copy link

Bryann commented Jan 16, 2019

Thanks! :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.