-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
49 lines (44 loc) · 2.06 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM ubuntu:18.04
RUN apt-get update \
&& apt-get install -y less \
&& apt-get install -y wget \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean
# prepare for launching the installation of dependencies defined in install.sh
ADD install.sh install.sh
RUN sh ./install.sh && rm install.sh
# create user account, and create user home dir
RUN useradd -ms /bin/bash octave
# add specific packages needed for the execution of the code
RUN cd /home/octave \
&& wget -O control-3.2.0.tar.gz https://octave.sourceforge.io/download.php?package=control-3.2.0.tar.gz \
&& wget -O io-2.4.12.tar.gz https://octave.sourceforge.io/download.php?package=io-2.4.12.tar.gz \
&& wget -O signal-1.4.0.tar.gz https://octave.sourceforge.io/download.php?package=signal-1.4.0.tar.gz \
&& wget -O matgeom-1.2.2.tar.gz https://octave.sourceforge.io/download.php?package=matgeom-1.2.2.tar.gz \
&& wget -O geometry-4.0.0.tar.gz https://octave.sourceforge.io/download.php?package=geometry-4.0.0.tar.gz \
&& wget -O mapping-1.4.0.tar.gz https://octave.sourceforge.io/download.php?package=mapping-1.4.0.tar.gz \
&& wget -O statistics-1.4.0.tar.gz https://octave.sourceforge.io/download.php?package=statistics-1.4.0.tar.gz
ADD package_install.m /home/octave/package_install.m
RUN cd /home/octave \
&& /home/octave/package_install.m
# cp all code files into user home dir
ADD balance /home/octave/balance
ADD borgScale10 /home/octave/borgScale10
ADD chrono /home/octave/chrono
ADD hrMonitoring /home/octave/hrMonitoring
ADD metabolicCost /home/octave/metabolicCost
ADD questionnaire /home/octave/questionnaire
ADD rangeofMotion /home/octave/rangeofMotion
ADD tools /home/octave/tools
RUN ls -R /home/octave
COPY run_pi_balance /home/octave/
COPY run_pi_borgScale10 /home/octave/
COPY run_pi_chrono /home/octave/
COPY run_pi_hrMonitoring /home/octave/
COPY run_pi_metabolicCost /home/octave/
COPY run_pi_questionnaire /home/octave/
COPY run_pi_rangeofMotion /home/octave/
# set the user as owner of the copied files.
RUN chown -R octave:octave /home/octave/
USER octave
WORKDIR /home/octave