Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gitlab-ci-android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Grewe
gitlab-ci-android
Commits
e08dcd22
There was a problem fetching the pipeline summary.
Commit
e08dcd22
authored
8 years ago
by
Jan Grewe
Browse files
Options
Downloads
Patches
Plain Diff
Thanks for messing everything up, Google
parent
48f3108b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+9
-9
9 additions, 9 deletions
Dockerfile
packages.txt
+7
-0
7 additions, 0 deletions
packages.txt
with
16 additions
and
9 deletions
Dockerfile
+
9
−
9
View file @
e08dcd22
...
...
@@ -8,11 +8,7 @@
FROM
ubuntu:16.04
MAINTAINER
Jan Grewe <jan@faked.org>
ENV
VERSION_SDK_TOOLS "26.0.2"
ENV
VERSION_BUILD_TOOLS "25.0.3"
ENV
VERSION_TARGET_SDK "25"
ENV
SDK_PACKAGES "build-tools-${VERSION_BUILD_TOOLS},android-${VERSION_TARGET_SDK},addon-google_apis-google-${VERSION_TARGET_SDK},platform-tools,extra-android-m2repository,extra-android-support,extra-google-google_play_services,extra-google-m2repository,ndk-bundle"
ENV
VERSION_SDK_TOOLS "3859397"
ENV
ANDROID_HOME "/sdk"
ENV
PATH "$PATH:${ANDROID_HOME}/tools"
...
...
@@ -34,12 +30,16 @@ RUN apt-get -qq update && \
RUN
rm
-f
/etc/ssl/certs/java/cacerts
;
\
/var/lib/dpkg/info/ca-certificates-java.postinst configure
RUN
curl
-s
http://dl.google.com/android/repository/tools
_r
${
VERSION_SDK_TOOLS
}
-linux
.zip
>
/
tools
.zip
&&
\
unzip /
tools
.zip
-d
/sdk
&&
\
rm
-v
/
tools
.zip
RUN
curl
-s
http
s
://dl.google.com/android/repository/
sdk-
tools
-linux-
${
VERSION_SDK_TOOLS
}
.zip
>
/
sdk
.zip
&&
\
unzip /
sdk
.zip
-d
/sdk
&&
\
rm
-v
/
sdk
.zip
RUN
mkdir
-p
$ANDROID_HOME
/licenses/
\
&&
echo
"8933bad161af4178b1185d1a37fbf41ea5269c55"
>
$ANDROID_HOME
/licenses/android-sdk-license
\
&&
echo
"84831b9409646a918e30573bab4c9c91346d8abd"
>
$ANDROID_HOME
/licenses/android-sdk-preview-license
RUN
(
while
[
1
]
;
do
sleep
5
;
echo
y
;
done
)
|
${
ANDROID_HOME
}
/tools/android update sdk
-u
-a
-t
${
SDK_PACKAGES
}
ADD
packages.txt /sdk
RUN
mkdir
-p
/root/.android
&&
\
touch
/root/.android/repositories.cfg
&&
\
${
ANDROID_HOME
}
/tools/bin/sdkmanager
--update
&&
\
(
while
[
1
]
;
do
sleep
5
;
echo
y
;
done
)
|
${
ANDROID_HOME
}
/tools/bin/sdkmanager
--package_file
=
/sdk/packages.txt
This diff is collapsed.
Click to expand it.
packages.txt
0 → 100644
+
7
−
0
View file @
e08dcd22
add-ons;addon-google_apis-google-24
build-tools;25.0.3
extras;android;m2repository
extras;google;google_play_services
extras;google;m2repository
platform-tools
platforms;android-25
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment