We’d like to introduce a new docker imageunnmdnwb3/slicer3d-nightly, which offers an environment to test extensions for Slicer 4.11.x (which supports Python 3 ). The image is based on Slicer’s branch nightly-master (fixed on commit 82f0c50) and shares the base-imageslicer/buildenv-qt5-centos7 with the official Slicer docker images.
For more information, please consult the following sources:
Detailed information and the Dockerfile can be found on the repo itself.
Please consider leaving feedback (either here or on the repo), so that we can improve and adjust our current solution!
Background
We’re a team from Opendose working on an extension for Slicer. Our goal is to provide software that complies to high standards regarding reliability and correctness. Thus, testing of our code is a key-stone of our effort. To facilitate contributing and to enhance our software quality, an automated CI-Pipeline has been built, using Gitlab-CI and Docker.
Considering the eventual upgrade to Slicer 5 and therefore the associated move to Python 3, we wanted to develop our extension for Slicer 4.11.x, which supports Python 3.
As far as we know, the existing official docker images are currently focussed on supporting Slicer 4.10.x and are based on the masterbranch, which only supports Python 2.
Thus, we created unnmdnwb3/slicer3d-nightly.
We hope that we can support other teams with this image in their efforts to facilitate testing and build robust software. If you have any questions, I’m more than happy to address them!
As far as we know, the existing official docker images are currently focussed on supporting Slicer 4.10.x and are based on the masterbranch, which only supports Python 2 .
To clarify, the slicer/slicer-base image is built and published daily. It is based of the “nightly” master branch and it includes python3 and Qt5.
To support extension testing, i suggest we “resurrect” the slicer/slicer-build image, this should allow testing of both python and c++ based Slicer extension.
By the way, we’ve also built a CI-Pipeline based on gitlab-ci, using the unnmdnwb3/slicer3d-nightly image. Are you interested in having a template for the CI-CD integrated into SlicerWizard?
This would probably only take a small effort.
If you’re interested, I’d propose to integrate a small template for gitlab-ci, circle-ci and travis?
Yes, we would be definitely interested. Please send a pull request with your proposed changes to the Slicer/Slicer github repository. Extension templates are defined here.