-
Notifications
You must be signed in to change notification settings - Fork 60
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
WIP: Switch to thewtex/centos-build:v1.0.0 base for Slicer compatibility #2
base: master
Are you sure you want to change the base?
Conversation
👍 Thanks for collaborating on this. @MayeulChassagnard @jcfr please let me know when further testing / experiments are completed and this is ready for integration. |
I am currently trying to build the tests inside the slicer/slicer-build docker image because we need them for the slicer/opengl (on centos) docker image. We can notify that we were not already building test : -DBUILD_TESTING:BOOL=OFF we made few changes:
And tried to build the image with |
As discussed, I suspect the error happen when building with the new VTK backend. To facilitate the debugging, consider mounting source and build directory within the image ... that would speed the development cycle and allow to address error more quickly. |
Archiving only the superbuild folder is not enough, the qt libraries need to be available too. |
After adding the
to the slicer/opgenl (centos version) image, the test is now indeed passing but with some errors due to:
|
Two things:
|
There is absolutely no errors on the thewtex/opengl image when I do:
|
Look like the BadDrawable/BadAccess are not reported here. That said, I am not sure what is |
The |
Ok. Could you look into the BadDrawable/BadAccess errors you got, do you confirm that there were reported after trying to run the test using docker-opengl based on centos to run tests also built using centos ? |
I am not sure to have well understood what you are asking but I :
both are running errors as you have seen in the pictures But it didn't seem to me that there was errors the first time I tried (one week ago) on docker-opengl based on debian... However, I changed nothing on this image so it should be the same message as the first time |
WIP here on an image based on centOS 5 (same os than the slicer build images) with a newer version of the X Window System (Xorg x11). It'll allow us to run the slicer's tests without rebuilding all from scratch. |
@MayeulChassagnard looking good! Do you have a Slicer Experimental dashboard build that can be shared? |
@MayeulChassagnard Good job! It looks like it is picking up an old version of CMake?
|
Yes, I saw it, it should be fixed now (It was a Thanks a lot for the review though! |
Status update:
which should work if the slicer/slicer-build contains the tests... |
@@ -2,4 +2,4 @@ | |||
|
|||
script_dir="`cd $(dirname $0); pwd`" | |||
|
|||
docker build -t thewtex/opengl $script_dir | |||
docker build -t slicer/opengl $script_dir |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please retain the current default. Also, please rebase this branch on master
, which has parameterized Makefile build support.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thewtex If we retain the current default thewtex/opengl
there will be 2 same name for 2 different docker image.. I suggest to rename it into thewtex/centos-opengl
or centos/opengl
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using different tag. E.g thewtex/opengl:jessie-1.0.0
, thewtex/opengl:centos-1.0.0
, ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
@@ -1,5 +1,5 @@ | |||
#!/bin/bash | |||
|
|||
xsetroot -solid "#333333" | |||
(sleep 2s && tint2 -c /etc/xdg/tint2/tint2rc) & | |||
#(sleep 2s && tint2 -c /etc/xdg/tint2/tint2rc) & |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was a change made by @jcfr to be able to use X11 on centos.
I think I did some bad manipulation with the commit because the commit he made doesn't appear.. I'm going to fix everything.
Running slicer using
thewtex/docker-opengl
based ofdebian:jessie
Trying to run the binaries built in
slicer/slicer-build
image from within thethewtex/docker-opengl
fails with the following error:Note: To workaround the error about missing
libGLU
:I apply this patch:
This PR: Update
docker-opengl
to usecentos-build:v1.0.0
as a baseWhat motivates this experiment is to find way of running test associated with SlicerDocker build without having to rebuild Slicer from scratch just for testing ...
With this set of changes, I was able to interact with Slicer built by https://github.com/thewtex/SlicerDocker
Note: To work around the missing QtTest lib, in addition of copying the linux package, I add to manually copy the file:
Moving forward:
centos-build:v1.0.0
is ancient, we could build a newer version indocker-opengl
, that should help to address performance issue related to x11vnc and may be it could help get rid of http://www.karlrunge.com/x11vnc/Xdummy