Skip to content

Commit 392c188

Browse files
committed
added readme
1 parent 5bc6b34 commit 392c188

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

Diff for: Readme.md

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# XcmsViewer dockerized version
2+
3+
The code available here is adapted from https://github.com/mengchen18/xcmsViewer
4+
5+
## Run
6+
To run XcmsView in docker, first build the Docker image with Docker installed on the system,
7+
8+
```docker build . -t xcmsv```
9+
10+
11+
Then put the data to be viewed in the local directoryand run :
12+
13+
```docker run -p 3838:3838 -v .:/home/shiny/data xcmsv```
14+
15+
Finally open localhost:3838 in your browser, log in with password "metabohub"
16+
17+
18+
## Password
19+
The default web page password is "metabohub", it can be changed in landingPage.R, line 32.
20+
21+
## Port and address
22+
Port and address can be changed with environment variables :
23+
24+
```docker run --env HOST="127.0.0.1" --env PORT=3737 -p 3737:3737 -v .:/home/shiny/data xcmsv```
25+
26+
## Change data directory
27+
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.
28+
For example, to use /data as data dir on the host :
29+
30+
```docker run -p 3838:3838 -v /data:/home/shiny/data xcmsv```
31+
32+

0 commit comments

Comments
 (0)