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

Goal "start" is rebuilding the image #45

Closed
eemmiirr opened this issue Apr 6, 2015 · 7 comments
Closed

Goal "start" is rebuilding the image #45

eemmiirr opened this issue Apr 6, 2015 · 7 comments

Comments

@eemmiirr
Copy link
Contributor

eemmiirr commented Apr 6, 2015

When "start" goal is run it's triggering the rebuild of the image even the image exists in the local images.

@alexec
Copy link
Owner

alexec commented Apr 7, 2015

Ah - does this occur when you do start twice in a row?

@eemmiirr
Copy link
Contributor Author

eemmiirr commented Apr 7, 2015

It occurs when i do just run mvn clean install with the following config. When i rerun it again it doesn't take the prebuild image it builds it again

<plugin>
    <groupId>com.alexecollins.docker</groupId>
    <artifactId>docker-maven-plugin</artifactId>
    <version>2.4.0</version>
    <configuration>
        <host>http://localhost:2375</host>
        <cache>true</cache>
        <removeIntermediateImages>false</removeIntermediateImages>
        </configuration>
        <executions>
            <execution>
                <id>start</id>
                <phase>pre-integration-test</phase>
                <goals>
                    <goal>start</goal>
                </goals>
            </execution>
            <execution>
                <id>stop</id>
                <phase>post-integration-test</phase>
                <goals>
                    <goal>stop</goal>
                </goals>
            </execution>
        </executions>
</plugin>

@alexec
Copy link
Owner

alexec commented Apr 7, 2015

Hmmm - any chance you can provide the source code?

@eemmiirr
Copy link
Contributor Author

eemmiirr commented Apr 7, 2015

The docker image i am trying to build?

@alexec
Copy link
Owner

alexec commented Apr 7, 2015

Basically, I don't know what the issue is, so I'd like to get more information to diagnose it. Perhaps the easiest thing would be to paste the command line output?

@eemmiirr
Copy link
Contributor Author

eemmiirr commented Apr 7, 2015

It seems like it builds first time the image and its ok. It tags is as test/redis-cluster:3.0.0 but then when it gets to the start goal again it does:

[INFO] Docker version 1.5.0
[INFO] 3 * Sending client request on thread main
3 > GET http://localhost:2375/images/null%2Fuser-service_redis/json
3 > Accept: application/json

I don't know where the 'null' comes from

@alexec
Copy link
Owner

alexec commented Apr 8, 2015

Should be fixed in 2.4.1.

@alexec alexec closed this as completed Apr 9, 2015
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