-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (19 loc) · 1.29 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
FROM python:3.5
RUN apt-get update && apt-get install -y build-essential autoconf libtool unzip software-properties-common
RUN pip install grpcio grpcio-tools pyyaml
#RUN add-apt-repository "deb http://download.virtualbox.org/virtualbox/debian `lsb_release -cs` contrib" && \
#wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | apt-key add - &&\
#wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | apt-key add - &&\
#apt-get update && apt-get install -y virtualbox-5.2
RUN wget https://download.virtualbox.org/virtualbox/5.2.12/virtualbox-5.2_5.2.12-122591~Debian~stretch_amd64.deb &&\
dpkg -i virtualbox-5.2_5.2.12-122591~Debian~stretch_amd64.deb || apt-get install -f -y
RUN wget http://download.virtualbox.org/virtualbox/5.2.10/VirtualBoxSDK-5.2.10-122088.zip && unzip -n VirtualBoxSDK-5.2.10-122088.zip -d /usr/lib/virtualbox
RUN cd /usr/lib/virtualbox/sdk/installer && export VBOX_INSTALL_PATH=/usr/lib/virtualbox && export VBOX_SDK_PATH=/usr/lib/virtualbox/sdk &&\
export PYTHONPATH=/usr/lib/virtualbox/sdk/bindings/xpcom/python &&\
python -E vboxapisetup.py install
RUN pip install pyvbox paramiko requests validators
ADD . virtualbox-adapter
WORKDIR virtualbox-adapter
ENTRYPOINT ["python"]
#ENTRYPOINT ["/bin/bash"]
CMD ["run.py", "--register-adapter"]