-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdockerfile
More file actions
51 lines (41 loc) · 1.49 KB
/
dockerfile
File metadata and controls
51 lines (41 loc) · 1.49 KB
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
50
51
#Deriving the latest base image
FROM ubuntu:focal
#Labels as key value pair
LABEL Maintainer="orencollaco"
# Last build date - this can be updated whenever there are security updates so
# that everything is rebuilt
ENV security_updates_as_of 2019-05-15
# This will make apt-get install without question
ARG DEBIAN_FRONTEND=noninteractive
ARG UHD_TAG=v3.15.0.0
ARG MAKEWIDTH=2
# Install security updates and required packages
RUN apt-get update
RUN apt-get -y install -q \
build-essential \
ccache \
git \
python3-dev \
python3-pip \
curl \
gnome-terminal \
npm \
tmux
# Clone the OpenSAS code and install requirements
WORKDIR /home
RUN git config --global user.name "Oren Collaco"
RUN git config --global user.email "orencollaco97@gmail.com"
RUN git clone https://github.com/CCI-NextG-Testbed/OpenSAS
WORKDIR /home/OpenSAS/Core
RUN pip install -r requirements.txt
# Clone the dashboard code and run npm install
WORKDIR /home/OpenSAS
RUN git clone https://github.com/CCI-NextG-Testbed/OpenSAS-dashboard
WORKDIR /home/OpenSAS/OpenSAS-dashboard
RUN npm install --legacy-peer-deps
WORKDIR /home/OpenSAS
#CMD instruction should be used to run the software
#contained by your image, along with any arguments.
#CMD [ "/bin/bash", ""]
CMD ["./start_opensas.sh"]
#CMD [ "tmux", "new-session -d -s sas_client 'python3 client.py'"]