@@ -0,0 +1,26 | |||||
|
1 | FROM python:2.7-slim | |||
|
2 | ||||
|
3 | RUN apt-get clean && apt-get update && apt-get install -y --no-install-recommends \ | |||
|
4 | git \ | |||
|
5 | gcc \ | |||
|
6 | libpng-dev \ | |||
|
7 | libfreetype6-dev \ | |||
|
8 | libopenblas-dev \ | |||
|
9 | liblapack-dev \ | |||
|
10 | libatlas-base-dev \ | |||
|
11 | libssl-dev \ | |||
|
12 | libhdf5-dev \ | |||
|
13 | && git clone --branch v2.3 --depth 1 \ | |||
|
14 | http://jro-dev.igp.gob.pe/rhodecode/schain \ | |||
|
15 | && pip install numpy \ | |||
|
16 | && cd schain \ | |||
|
17 | && pip install . \ | |||
|
18 | && rm -rf * \ | |||
|
19 | && apt-get purge -y --auto-remove git gcc \ | |||
|
20 | && rm -rf /var/lib/apt/lists/* | |||
|
21 | ||||
|
22 | ENV BACKEND="Agg" | |||
|
23 | ||||
|
24 | VOLUME /data | |||
|
25 | ||||
|
26 | ENTRYPOINT ["schain"] |
@@ -35,6 +35,20 $ source /path/to/virtual/bin/activate | |||||
35 | (virtual) $ bash link_PyQt4.sh |
|
35 | (virtual) $ bash link_PyQt4.sh | |
36 | ``` |
|
36 | ``` | |
37 |
|
37 | |||
|
38 | ### Docker | |||
|
39 | ||||
|
40 | Download Dockerfile from the repository, and create a docker image | |||
|
41 | ||||
|
42 | ``` | |||
|
43 | $ docker build -t schain . | |||
|
44 | ``` | |||
|
45 | ||||
|
46 | You can run a container using an xml file or a schain script also you need to mount a volume for the data input and for the output files/plots | |||
|
47 | ``` | |||
|
48 | $ docker run -it --rm --volume /path/to/host/data:/data schain xml /data/test.xml | |||
|
49 | $ docker run -it --rm --volume /path/to/host/data:/data --entrypoint=/bin/python schain /data/test.py | |||
|
50 | ``` | |||
|
51 | ||||
38 | ## First Script |
|
52 | ## First Script | |
39 |
|
53 | |||
40 | Read Spectra data (.pdata) - remove dc - plot spectra & RTI |
|
54 | Read Spectra data (.pdata) - remove dc - plot spectra & RTI |
General Comments 0
You need to be logged in to leave comments.
Login now