Giter Club home page Giter Club logo

Comments (8)

LuckyMD avatar LuckyMD commented on July 20, 2024 1

Yes, thanks for reporting this. We are working to not only make this docker image build from source in #54 but also to update the jupyter notebook so it runs with the newest versions of several dependencies.

from single-cell-tutorial.

LuckyMD avatar LuckyMD commented on July 20, 2024

Hi @serverhorror,

I don't think you need these .bashrc and .profile_docker files, so you could take the lines out of the Dockerfile. We put the Dockerfile in the repo in the first place so people could build upon this themselves. It might be easiest to just use the image uploaded the docker hub here.

Otherwise we could always make a docker/ folder and add those files as well @le-ander. What do you think?

from single-cell-tutorial.

le-ander avatar le-ander commented on July 20, 2024

Hm, good point. Thanks for raising this.

The content of the two files is actually quite basic, however it might help to just add them to this repo as well for completeness.

For now, you can just create them yourself:
.bashrc_docker

# Manually added .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
    . /etc/bashrc
fi

export USER=root
export LOGNAME=root
export HOME=/root
export PATH=/root/.local/bin:/root/bin:/opt/python/bin:/opt/R/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
export LD_LIBRARY_PATH=/opt/R/lib/R/lib
export SHELL=/bin/bash
export TERM=xterm-256color
export LANG=en_US.UTF-8

alias ll='ls -lha --color=auto'
alias jn='jupyter-notebook --no-browser --ip=0.0.0.0 --allow-root /root/host_home'
alias jl='jupyter-lab --no-browser --ip=0.0.0.0 --allow-root /root/host_home'
alias cx='cellxgene launch --host 0.0.0.0 --port 8888'

.profile_docker

# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login exists.

# if running bash, source ~/.bashrc
if [ -n '$BASH_VERSION' ]; then
    # include .bashrc if it exists
    if [ -f '/root/.bashrc' ]; then
        . '/root/.bashrc'
    fi
fi

from single-cell-tutorial.

LuckyMD avatar LuckyMD commented on July 20, 2024

@le-ander do you want to make a new docker folder in the repo in a PR so you're credited for code contribution, or shall I just create these files and do that quickly?

from single-cell-tutorial.

serverhorror avatar serverhorror commented on July 20, 2024

Hi,

I'm just reporting this because it seems pretty unreliable to "pull code from a repo that is broken in the first place". I'm not in the bio* domain at all. Just needed to use it a while ago as a component that would "just work". So I can't comment about the quality of the results.

I'm on the software development end and it seems strange to me having to pull in "untrusted" code that is in a random docker repository on the internet or even something where I (the client) doesn't control availability of image.

from single-cell-tutorial.

LuckyMD avatar LuckyMD commented on July 20, 2024

I'm not quite sure I understand what you mean. I don't know if you're aware, but the code you are pulling is a workflow in a Jupyter notebook that goes with a tutorial for scRNA-seq analysis. The workflow is extensively documented so that people trying to update their pipelines or learn how to perform the analysis can adapt this to their own needs. None of this is an out-of-the-box pipeline that "just works" on any data and is immediately ready to use.

The provision of the docker image is a work-around for people who don't want to install the environment manually (instructions in the README). And the code for this image is primarily there for adaptation purposes. There are plenty of ways in which you can get around the issue you are facing here (including just quickly creating the files that were missing yourself, or removing the relevant lines in the Dockerfile).

We are working on updating the workflow now and are adding the missing files. However, none of these changes will make the notebooks here any more of a production level tool that "just works".

from single-cell-tutorial.

serverhorror avatar serverhorror commented on July 20, 2024

@LuckyMD I am aware what I'm working with. Let me try and rephrase: Usually when dealing with software projects one of the expectations is that the code is able to build succsessfully from source. There are quite a lot of environments where container images are not a workaround but the norm. Even more so, a requirement. So when a Dockerfile is present then a lot of people -- including me -- expect the source to build.

As I said. I come from the engineering side. All I'm trying to do is report the findings that I see that make it irreproducible. At least they make it hard to reproduce.

from single-cell-tutorial.

serverhorror avatar serverhorror commented on July 20, 2024

Cleaning up old issues on my profile

from single-cell-tutorial.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.