Skip to content

Commit

Permalink
added readme
Browse files Browse the repository at this point in the history
  • Loading branch information
glaisney committed Feb 15, 2024
1 parent 5bc6b34 commit 392c188
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# XcmsViewer dockerized version

The code available here is adapted from https://github.com/mengchen18/xcmsViewer

## Run
To run XcmsView in docker, first build the Docker image with Docker installed on the system,

```docker build . -t xcmsv```


Then put the data to be viewed in the local directoryand run :

```docker run -p 3838:3838 -v .:/home/shiny/data xcmsv```

Finally open localhost:3838 in your browser, log in with password "metabohub"


## Password
The default web page password is "metabohub", it can be changed in landingPage.R, line 32.

## Port and address
Port and address can be changed with environment variables :

```docker run --env HOST="127.0.0.1" --env PORT=3737 -p 3737:3737 -v .:/home/shiny/data xcmsv```

## Change data directory
XcmsViewer retrieves its data from /home/shiny/data inside the docker container, so it is possible to specify the local data directory by changing the docker volume setting.
For example, to use /data as data dir on the host :

```docker run -p 3838:3838 -v /data:/home/shiny/data xcmsv```


0 comments on commit 392c188

Please sign in to comment.