-
Notifications
You must be signed in to change notification settings - Fork 0
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
Use Docker to build the server #4
Comments
Dear Guillaume, there are actually two issues here, as far as I understand. Let me start with your actual question, but before you spend too much time with it, you might want to scroll down for the 2nd issue. According to https://stackoverflow.com/questions/46172600/rhel7-usr-lib64-libstdc-so-6-version-cxxabi-1-3-8-not-found the RUN yum install -y \
gmp-devel \
mpfr-devel \
libmpc-devel
RUN mkdir /gcc && \
cd /gcc && \
wget https://ftp.mpi-inf.mpg.de/mirrors/gnu/mirror/gcc.gnu.org/pub/gcc/snapshots/8.5.0-RC-20210507/gcc-8.5.0-RC-20210507.tar.gz && \
tar -zxf gcc-8.5.0-RC-20210507.tar.gz && \
cd gcc-8.5.0-RC-20210507 && \
./configure --disable-multilib --enable-languages=c,c++ --prefix=/opt/gcc8 && \
make -j5 && \
make -j install
ENV LD_LIBRARY_PATH=/opt/gcc8/lib64/ I haven't tested this fully, but I compiled gcc inside the container and executing If you plan to give this a try, be prepared that compiling gcc took some time for me. However, there is another issue, which in my eyes is much worse: Do you have GPU access from within your container environment?You can easily test this by running I did some research about this some time ago, and unfortunately, I don't have any references at hand, but there seems to be no general solution for having GPU access from within your container. It depends which graphics hardware you are using, Intel, AMD or NVIDIA.
So it seems to be not so trivial to provide a Dockerfile or Docker image which will make 3Dscript available, sadly... However, if you find some contrary information, I'm happy to learn ;) Best wishes, Bene |
Hi Bene, thanks a lot for the detailed answer, I wish I could avoid to re-compile gcc in the container, but it looks like I'll have to! As for OpenCL, I installed the docker nvidia runtime on the host, hopefully it will do the trick! I'd like to be able to access GPUs from a container anyhow so it's time well spent :) I'll report here after further investigation. Thanks again! Guillaume |
Hi!
I'm trying to build a docker image from the omero-web-standalone image (based on CentOS7) with omero-3Dscript installed. I managed to install the tool and open the 3D-script page, but got stuck with the following error:
I tried to get around that by installing a newer gcc (as advised on the internet), but I don't know how to point to the new
libstdc++.so
-- the "just to a symlink" strategy failed. I'm not familiar with Java nor CentOS so I'm a bit lost here.Bellow is the content of the DockerFile:
It is invoked with:
I'd be happy to share the dockerfile (and even the built image) once it's running.
Thanks for any hint!
Guillaume
The text was updated successfully, but these errors were encountered: