Giter Site home page Giter Site logo

Comments (2)

waddella avatar waddella commented on May 16, 2024 1

Hello @reikoch and @epijim,

Loon does not work by default in dockers because it requires X forwarding. You can read the following blog post on X forwarding. I was able to run loon with this Dockerfile (saved in a folder loonr):

FROM rocker/verse
Maintainer Adrian Waddell <[email protected]>
RUN apt-get update \
    && apt-get install -y libtk8.6 libtcl8.6 libtk-img \
          mesa-common-dev libglu1-mesa-dev freeglut3-dev \
          libssl-dev libcurl4-gnutls-dev libtk-img libxml2-dev\
    && . /etc/environment \
    && install2.r -e -r $MRAN -- --no-test-load loon \
    && install2.r -e -r $MRAN RnavGraphImageData rworldmap \
       kernlab

and then by running

SESSIONXAUTH=${XAUTHORITY:-$HOME/.Xauthority}
DOCKER_XAUTH=${SESSIONXAUTH}.docker
cp --preserve=all $SESSIONXAUTH $DOCKER_XAUTH
echo "ffff 0000  $(xauth nlist $DISPLAY | cut -d\  -f4-)" \
| xauth -f $DOCKER_XAUTH nmerge -

docker build -t waddella/loonr .

docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix -v $DOCKER_XAUTH:$DOCKER_XAUTH -e XAUTHORITY=$DOCKER_XAUTH -e DISPLAY=$DISPLAY waddella/loonr /bin/bash R

I will try to publish an image on docker cloud one of these days.

from loon.

epijim avatar epijim commented on May 16, 2024

Hi @waddella, I just ran into the same issue. I don't think it's tied to your package though.

from loon.

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.