I AM SORRY TO POST THE Dockerfile in such messy way, but i have a problem with building the SimpleITK from within the ubuntu container prepared specifically for SimpleITK image for running a container that has all the necessary packages in a little VM i built. by the way i follow the itk article about building SimpleITK for linux (Getting Started). I am trying to build a container with SimpleITK downloaded from github and then install all the build tools inside the container and eventually build it. I have gone as far as this like in the article
“Building using SuperBuild” when i do:
strangly cmake enter the cmake-3.10.1/Source directory and in cmOutputConverter.cxx file at method ForceToRelativePath give an assertion that localpath is empty?!
no idea why cmake source file but i have already build cmake binary and it is there in cmake directory source files, and i call the binary file to to super build…
I cannot post the image of the container i am running, but i am inside of the running contianer and with docker exec -it … command and i run the superbuild myself to debug the issue.
following is the contents of my Dockerfile… any help is appreciated.
btw: this line of Dockerfile < #— RUN cmake …/SimpleITK/SuperBuild > I commented out to run that myself from inside the running container!
# Download base image ubuntu 16.04 FROM ubuntu:16.04 AS simpleitk # Update ubuntu software repository RUN apt update RUN apt install -y wget RUN apt install -y g++ RUN apt install -y build-essential RUN wget httpS://cmake.org/files/v3.10/cmake-3.10.1.tar.gz RUN tar -xvzf cmake-3.10.1.tar.gz RUN cd cmake-3.10.1/ && ./configure && make && make install && update-alternatives --install /usr/bin/cmake cmake /usr/local/bin/cmake 1 --force # install build tools RUN apt install -y cmake-curses-gui gcc g++ git # build tools support binding different programming languages RUN apt install -y monodevelop python python-dev tcl tcl-dev tk tk-dev #get simpleitk source code RUN cd ~ # clone the SimplITK repository to SimplITK directory RUN git clone --recursive https://github.com/SimpleITK/SimpleITK.git # get to SimpleITK directory RUN cd SimpleITK # Build SimpleITK RUN cd ~ RUN mkdir SimpleITK-build #--- RUN cmake ../SimpleITK/SuperBuild # start build process #--- RUN make # add SimpleITK TO YOUR LD_LIBRARY-PATH #---RUN export LD_LIBRARY_PATH=$LD_LIBRARY-PATH:~/SimplITK-build/lib # optionally check whether the build was successful # ----RUN cd ~/SimpleITK-build # ----CMD [ "ctest"] EXPOSE 8282 # ------CMD ["/bin/sh"]