-
Notifications
You must be signed in to change notification settings - Fork 3
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
unable to build container with docker #173
Comments
@B0BYorgurt Don't worry, there are no stupid question in this area because these problems involve a lot of moving parts. And therefore, the solution is not trivial. We know this problem (see #140 ). The quick fix to this problem is to add this line before RUN sed -i -e 's/deb.debian.org/archive.debian.org/g' \
-e 's|security.debian.org|archive.debian.org/|g' \
-e '/stretch-updates/d' /etc/apt/sources.list Therefore, the Dockerfile should be FROM rocker/r-ver:3.6.1
ENV RANG_PATH /rang.R
COPY rang.R /rang.R
RUN sed -i -e 's/deb.debian.org/archive.debian.org/g' \
-e 's|security.debian.org|archive.debian.org/|g' \
-e '/stretch-updates/d' /etc/apt/sources.list
RUN apt-get update -qq \
&& apt-get install -y libpcre3-dev zlib1g-dev pkg-config libcurl4-openssl-dev \
&& apt-get install -y libcurl4-openssl-dev libfftw3-dev libglpk-dev libicu-dev libpng-dev libssl-dev libxml2-dev make pandoc python3 zlib1g-dev
RUN Rscript $RANG_PATH
CMD ["R"] And I have tried, it can generate a Docker image that can run Seurat 3.1. |
@chainsawriot |
@chainsawriot I just encountered some more problem running Seurat 3.1 with the rstudio versioned Docker container. I ran a UMAP command:
Looks like the Python PATH of the image is not specified? I did Sys.getenv() on the rstudio container and I got message of:
I do not see a PATH for Python and don't know how to fix this... Thank you! |
@B0BYorgurt TBH, it is now way beyond the scope of To answer your question, yes: there is at least one Python installation (Python 3.5) in the Docker image. docker run -ti --entrypoint bash rang And then whereis python
/usr/bin/python3.5 Now, reading the help file of
The installation and configuration of the Python package were manual. Maybe you should also read this: I am sorry to say this, but that's the limit of my technical support. Please seek for help there. Thank you very much! |
@chainsawriot |
Help!
I am unable to build container with docker with the method described under the heading of "Using alternative Rocker images":
I am trying to recreate an environment to replicate some single cell analysis with some old codes written by previous postdocs in the lab. The analysis is done with Seurat 3.1 but current versions of R no longer support such package, and I have spend a whole day futilely looking into how to install historic versions of R in a Windows OS, before seeing this thread.
This is what I did on my Rstudio:
install.packages("rang") library(rang) x <- resolve(pkgs = c("Seurat", "magrittr", "data.table"), snapshot_date = "2019-09-01") dockerize(x, "~/rocker_test")
Everything went smooth and there is no warning.
However, when I tried to use docker to build the container with the codes provided:
cd ~/rocker_test docker build -t rang . docker run --rm --name "rangtest" -ti rang
The build failed with such messages:
Could anyone tell me how to troubleshoot or if there is better way than going through this container thing to achieve my goal (e.g., to install R version 3.6.1 on my Windows PC).
Sorry if the question looks stupid because I am totally new to bioinformatics and IT stuff...
Thank you!
The text was updated successfully, but these errors were encountered: