publicissapient-france/code-elevator

Building with Docker fails

rdagher opened this issue · 5 comments

Hi,

I wanted to test the code-elevator server using Docker. The build.sh fails because of a test failure in (WebResourceTest.java). See attachement.

For finishing the build and have the container ready, I had to ignore this test by adding these lines to the code-elevator/elevator-server/pom.xml:

                <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-surefire-plugin</artifactId>
                  <version>2.12.4</version>
                  <configuration>
                    <excludes>
                      <exclude>**/WebResourceTest.java</exclude>
                    </excludes>
                  </configuration>
                </plugin>

Any idea how to make this test pass?

Best,
Roudy

seblm commented

Thank you for your feedback.
It works on my machine® with a local java/maven but you're right: issue is reproduced into docker. I'll check why and try to fix it as soon as possible.

seblm commented

It appears that this issue is randomly encountered. Both local java/maven build and into docker container sometimes fails. There is an open issue about this bug introduced after Jersey 2.9.
Can you tell me if you are able successfully build a docker image after a reasonable number of tries?

@seblm I have tried several times, and never succeeded to build an image.
Note that, locally (on my machine) I never experienced any failures (mvn verify).

seblm commented

Web tests aren't relying on jetty container anymore: they'll only use jersey on embedded jdk http engine. So issue will maybe never occurs anymore. Can you please confirm?

Works great now, thanks for the update !