Skip to content

Latest commit

 

History

History
127 lines (75 loc) · 6.49 KB

README.md

File metadata and controls

127 lines (75 loc) · 6.49 KB

Deprecated

This repository is deprecated in favor of https://github.com/bgruening/galaxy-rna-workbench

RNA Galaxy Workbench

The RNA analysis workbench is developed by the RNA Bioinformatics Center which is part of the German Network for Bioinformatics Infrastructure (de.NBI).

Installation

  • Install Docker on your computer, please follow the instruction
  • get the Image: docker pull bgruening/galaxy-rna-workbench-extra
  • follow the Usage instruction and start your Galaxy instance

Usage

At first you need to install docker. Please follow the instruction on https://docs.docker.com/installation/

After the successful installation, all what you need to do is:

docker run -d -p 8080:80 bgruening/galaxy-rna-workbench-extra

I will shortly explain the meaning of all the parameters. For a more detailed description please consult the docker manual, it's really worth reading.

Let's start: docker run will run the image for you. In case you do not have the image stored locally, docker will download it for you. -p 8080:80 will make the port 80 (inside of the container) available on port 8080 on your host. Inside the container an Nginx webserver is running on port 80 and that port can be bound to a local port on your host computer. With this parameter you can access your Galaxy instance via http://localhost:8080 immediately after executing the command above. bgruening/galaxy-rna-workbench-extra is the image name, that directs docker to the correct path in the docker index. -d will start the docker container in daemon mode. For an interactive session, you can execute:

docker run -i -t -p 8080:80 bgruening/galaxy-rna-workbench-extra /bin/bash

and run the startup script yourself, to start PostgreSQL, Nginx and Galaxy.

Docker images are "read-only", all your changes inside one session will be lost after restart. This mode is usefull to present Galaxy to your collegues or to run workshops with it. To install Tool Shed respositories or to save your data you need to export the calculated data to the host computer.

Fortunately, this is as easy as:

docker run -p 8080:80 -v /home/user/galaxy_storage/:/export/ bgruening/galaxy-rna-workbench-extra

With the additional -v /home/user/galaxy_storage/:/export/ parameter, docker will mount the folder /home/user/galaxy_storage into the container under /export/. The startup shell script, that is usually starting Nginx, PostgreSQL and Galaxy, will recognise the export directory with one of the following outcomes:

  • In case of an empty /export/ directory, it will move the PostgreSQL database, the Galaxy database directory, Shed Tools and Tool Dependencies and various config scripts to /export/ and symlink back to the original location.
  • In case of a non-empty /export/, for example if you continue a previouse session within the same folder, nothing will be moved, but the symlinks will be created.

This enables you to have different export folders for different sessions - means real separation of your different projects.

Enabling Interactive Environments in Galaxy

Interactive Environments (IE) are sophisticated ways to extend Galaxy with powerful services, like IPython, in a secure and reproducible way. For this we need to be able to launch Docker containers inside our Galaxy Docker container. At least docker 1.3 is needed on the host system.

docker run -p 8080:80 -p 8021:21 -p 8800:8800 --privileged -v /home/user/galaxy_storage/:/export/ bgruening/galaxy-rna-workbench-extra

The port 8800 is the proxy port that is used to handle Interactive Environments. --privileged is needed to start nested docker containers.

Using Parent docker

On some linux distributions, Docker-In-Docker can run into issues (such as running out of loopback interfaces). If this is an issue, you can use a 'legacy' mode that mounts the host machines docker socket inside the container. To engage, set the environmental variable DOCKER_PARENT, and mount the socket using the -v parameter

docker run -p 8080:80 -p 8021:21 -p 8800:8800 --privileged -e DOCKER_PARENT=True -v /var/run/docker.sock:/var/run/docker.sock -v /home/user/galaxy_storage/:/export/ bgruening/galaxy-rna-workbench-extra

The command above also maps another port -p 8021:21, used for ftp upload of large datasets.

Users & Passwords

The Galaxy Admin User has the username admin@galaxy.org and the password admin. The PostgreSQL username is galaxy, the password is galaxy and the database name is galaxy (I know I was really creative ;)). If you want to create new users, please make sure to use the /export/ volume. Otherwise your user will be removed after your docker session is finished.

Requirements

Contributers

  • Cameron Smith
  • Torsten Houwaart
  • Bjoern Gruening

History

  • 0.1: Initial release!

Support & Bug Reports

For support, questions, or feature requests fill github issues or contribute with Pull Requests.

Licence (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.