Git Product home page Git Product logo

webdocker-website's Introduction

Ensembl website docker

Pre-requisites

Docker (https://www.docker.com/get-docker)

A local mysql instance serving an Ensembl sessions database is required - this must be accessible from your docker container. You'll need to set up a local mysql server, then create a user and database as follows.

Create the ensrw user and grant required priviledges

mysql> CREATE USER 'ensrw'@'%' IDENTIFIED BY 'ensrw';
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON `%`.* TO 'ensrw'@'%';

Create the ensembl_session database

mysql> CREATE DATABASE `ensembl_session`

Now create the table schema using the SQL file here http://ftp.ensembl.org/pub/release-90/mysql/ensembl_accounts/

Build and run

Build the image

git clone https://github.com/nicklangridge/webdocker-website
cd webdocker-website

docker build --rm --no-cache --build-arg ENSEMBL_SERVERNAME=my-ensembl --build-arg SESSION_HOST=my-local-mysql --build-arg SESSION_PORT=3306 --build-arg SESSION_USER=ensrw --build-arg SESSION_PASS=ensrw -t webdocker-website:latest .

Some arguments must be specified at build time:

  • ENSEMBL_SERVERNAME - (required) this is the domain name of your Ensembl server - if you are not using a domain name you should set this to the external IP of your docker container
  • SESSION_HOST - (required) host name of the mysql instance serving the sessions db
  • SESSION_PORT - (default=3306) port number of the mysql instance serving the sessions db
  • SESSION_USER - (default=ensrw) sessions db user name
  • SESSION_PASS - (default=ensrw) sessions db user password

Run a container

Run a container in daemon mode

docker run -p 80:8080 -dt webdocker-website:latest

The website should now be available on port 80.

For debugging you may want to run a container in interactive mode

docker run -p 80:8080 -it webdocker-website:latest bash

Now you can explore the running container from the command line.

webdocker-website's People

Watchers

 avatar  avatar

Forkers

sanjay-boddu

webdocker-website's Issues

Some errors running this docker file

docker logs gives me the following error

Error requiring EnsEMBL::Docs::SiteDefs:
Can't locate /home/linuxbrew/website/public-plugins/docs/conf/SiteDefs.pm at (eval 6) line 1.
WARNING: LoadPlugins could not add /home/linuxbrew/paths/vcftools_perl_lib/ to INC: Directory doesn't exist

and


========================
Using Perl v5.26.1
========================

 Starting up as non-mirror machine
Error requiring EnsEMBL::Docs::SiteDefs:
Can't locate /home/linuxbrew/website/public-plugins/docs/conf/SiteDefs.pm at (eval 11) line 1.
WARNING: LoadPlugins could not add /home/linuxbrew/paths/vcftools_perl_lib/ to INC: Directory doesn't exist

```
Something that is critical or just to ignore? 

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.