Skip to content

Commit 831218a

Browse files
author
Sayaan Saha
authored
Feat(Dockerfile): Add Android emulator and nodejs to Dockerfile(#215)
1 parent 885ee53 commit 831218a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
FROM jangrewe/gitlab-ci-android
22

3+
ARG emulator_platform=android-26
4+
ARG system_image="system-images;${emulator_platform};google_apis;x86"
5+
ARG platform_image="platforms;${emulator_platform}"
6+
37
RUN apt-get update && \
48
apt-get install -y --no-install-recommends \
9+
nodejs=6.11.4~dfsg-1ubuntu1 \
510
build-essential \
611
&& rm -rf /var/lib/apt/lists/*
12+
13+
ENV PATH="$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools/bin"
14+
15+
RUN sdkmanager emulator tools platform-tools ${platform_image} ${system_image} --verbose && \
16+
echo no | avdmanager create avd -n "device1" --package ${system_image} --tag google_apis

0 commit comments

Comments
 (0)