Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:databio/LOLAweb into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
nsheff committed Apr 23, 2018
2 parents b5bd3f3 + 5f337b8 commit d3adc6b
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,24 @@ LOLAweb needs access to a few folders where it can store results or logs, or acc
* **$LWREF**, for LOLAweb reference data, which may be read-only
* **$LWLOCAL**, where local results can be written.

To get the LOLAweb container to work, you need to set these environment variables (for example, in your `.bashrc` or `.profile` file.
To run the LOLAweb container (locally or on a server), you need to set these environment variables (for example, in your `.bashrc` or `.profile` file. These variables will be injected into the container when it is run.

For example, set these variables to two different paths if you like. Or if you keep all five subfolders together in the same path, set these variables to the same value.

```
# Example locations. Set to match your environment
export LREF='/home/subdir/lola'
export LWLOCAL='/var/things/loladata'
```


### LWREF

LOLAweb will look at the value in `LWREF` for the reference data. This folder should have subfolders called `databases`, `universes`, and `examples`. In each of these subfolders are another layer of subfolders for genome assemblies. See the [LOLAweb documentation](https://github.com/databio/LOLAweb/tree/master/apps/LOLAweb) for downloading reference data.
LOLAweb will look at the value in `$LWREF` for the reference data. This folder should have subfolders called `databases`, `universes`, and `examples`. In each of these subfolders are another layer of subfolders for genome assemblies. See the [LOLAweb documentation](https://github.com/databio/LOLAweb/tree/master/apps/LOLAweb) for downloading reference data.

### LWLOCAL

LOLAweb looks for `$LWLOCAL` to have two subfolders: `cache`, and `shinylogs`. This is where the app will write results and log files.
LOLAweb looks for `$LWLOCAL` to have two subfolders: `cache`, and `shinylogs`. This is where the app will write results and log files. If running LOLAweb on a server, be sure these directories are writeable by the Docker process.

## Run the LOLAweb container locally with reference data:

Expand All @@ -52,7 +61,7 @@ http://localhost/LOLAweb/apps/LOLAweb

## Running a dev container

You could also run the `dev` version of the container by pulling `databio/lolaweb:dev`. This will retrieve the dev tagged image from dockerhub.
You could also run the `dev` version of the container by pulling `databio/lolaweb:dev`. This will retrieve the dev tagged image from dockerhub. Just add `:dev` to the container name at the end of the `docker run` command above.


## Running multiple LOLAweb containers simultaneously with Docker Swarm:
Expand Down

0 comments on commit d3adc6b

Please sign in to comment.