-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (30 loc) · 1.16 KB
/
Dockerfile
File metadata and controls
42 lines (30 loc) · 1.16 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
FROM softsam/adb:latest
MAINTAINER softsam
# Add backport repository
RUN echo "# Backport repository" >> /etc/apt/sources.list && \
echo deb http://http.debian.net/debian jessie-backports main >> /etc/apt/sources.list
RUN apt-get update && \
echo y | apt-get install docker.io && \
apt-get clean && \
apt-get autoclean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Give access to docker host files
VOLUME /var/lib/docker
# Give access to automation directory, containing the apks, robot framework tests and output
VOLUME /automation
# Expose port for VNC (to connect to the emulator and see the tests playing live)
EXPOSE 5900
# Docker wrapper from DIND project
ADD https://raw.githubusercontent.com/jpetazzo/dind/master/wrapdocker /usr/local/bin/wrapdocker
RUN chmod +x /usr/local/bin/wrapdocker
# Script that will handle the orchestration of the containers
ADD ./run.sh /run.sh
RUN chmod +x /run.sh
ADD ./run-emulator.sh /run-emulator.sh
ADD ./run-devices.sh /run-devices.sh
# APK to change locale
ADD ./android_locales.apk /android_locales.apk
WORKDIR /
# wrapdocker will log in a file
ENV LOG file
ENTRYPOINT ["wrapdocker", "/run.sh"]