-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
40 lines (35 loc) · 1.55 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
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 linear-algebra-2.2.2.tar.gz https://octave.sourceforge.io/download.php?package=linear-algebra-2.2.2.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
RUN mkdir /home/octave/beat
ADD beat /home/octave/beat/
ADD run_protocol1 /home/octave/
ADD run_protocol2 /home/octave/
ADD run_protocol3 /home/octave/
ADD run_protocol4 /home/octave/
ADD run_protocol5 /home/octave/
ADD run_protocol6 /home/octave/
ADD run_protocol7 /home/octave/
# set the user as owner of the copied files.
RUN chown -R octave:octave /home/octave/
USER octave
WORKDIR /home/octave