Project

General

Profile

Feature #107

docker image

Added by Josip Almasi about 2 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
02/11/2022
Due date:
% Done:

0%

Estimated time:

Description

something that would make docker image of current build
docker-compose, there may be maven plugin

History

#1

Updated by Nick Naglich about 2 years ago

Josip Almasi wrote:

something that would make docker image of current build
docker-compose, there may be maven plugin

I'll look into setting up a docker image, is there a Linux distro you'd prefer?

#2

Updated by Josip Almasi about 2 years ago

  • Assignee set to Nick Naglich

I hoped you would :)
Debian 10 I think.

#3

Updated by Nick Naglich about 2 years ago

Josip Almasi wrote:

I hoped you would :)
Debian 10 I think.

I've tried compiling on both a Debian and Ubuntu docker container, running into issues with the surefire-plugin

[ERROR] Failures:
[ERROR] DBTest.testCountUsers:561 expected: <2> but was: <3>
[ERROR] DBTest.testWorlds:526 expected: <2> but was: <3>
[INFO]
[ERROR] Tests run: 85, Failures: 2, Errors: 0, Skipped: 2
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for VRSpace parent file 0.4.5-SNAPSHOT:
[INFO]
[INFO] VRSpace parent file ................................ SUCCESS [ 0.277 s]
[INFO] server ............................................. FAILURE [ 35.997 s]
[INFO] babylon ............................................ SKIPPED
[INFO] content ............................................ SKIPPED
[INFO] web ................................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 36.500 s
[INFO] Finished at: 2022-03-04T19:50:36-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project server: There are test failures.
[ERROR]
[ERROR] Please refer to /vrspace/server/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :server

#4

Updated by Josip Almasi about 2 years ago

Hehe https://redmine.vrspace.org/issues/109 strikes again :)

You can simply build it with -DskipTests but we should use this opportunity to fix that.
How do you build this image, can you send me that compose file and/or some howto?
Or, give me access to your server, or I give you access to vrspace.org server - whatever it takes to reproduce this.

#5

Updated by Nick Naglich about 2 years ago

Josip Almasi wrote:

Hehe https://redmine.vrspace.org/issues/109 strikes again :)

Almost the same, yeah. This is failing on the server tests which it looks like Nate was able to get past.

You can simply build it with -DskipTests but we should use this opportunity to fix that.
How do you build this image, can you send me that compose file and/or some howto?
Or, give me access to your server, or I give you access to vrspace.org server - whatever it takes to reproduce this.

It builds with the -DskipTests, yeah.

I'm using Docker Desktop for Windows 10 to pull the Debian Image and then install "git, bash, java, maven, and the VRSpace repo"
This is my first run trying to make a docker image from scratch and still figuring things out, so not sure how to share it yet.

#6

Updated by Josip Almasi about 2 years ago

Never did it myself either.
I believe that's exactly what I need to get it reproduced.

#7

Updated by Nick Naglich about 2 years ago

I created a dockerfile and "How To" in the forums:
https://redmine.vrspace.org/boards/2/topics/226

If you run through all the steps, but leave out the -DskipTests when compiling you'll get this error for debugging

#8

Updated by Josip Almasi about 2 years ago

Great stuff, I'll try it over the weekend.

#9

Updated by Josip Almasi about 2 years ago

  • Status changed from New to In Progress
#10

Updated by Josip Almasi about 1 year ago

  • Status changed from In Progress to Closed

Also available in: Atom PDF