Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gitlab-docs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
sysadmin
gitlab-docs
Commits
71792f1c
Commit
71792f1c
authored
Dec 17, 2021
by
Sydney Anne Erickson
Browse files
Options
Downloads
Patches
Plain Diff
Android CI: more efficient install script
parent
b358f60c
No related branches found
No related tags found
No related merge requests found
Pipeline
#6911
passed
Dec 17, 2021
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
website/docs/ci/front-end/android.md
+6
-8
6 additions, 8 deletions
website/docs/ci/front-end/android.md
with
6 additions
and
8 deletions
website/docs/ci/front-end/android.md
+
6
−
8
View file @
71792f1c
...
...
@@ -83,7 +83,7 @@ sudo apt upgrade -y
# Firewall
sudo
apt-get
install
-y
ufw fail2ban
sudo
ufw allow ssh
sudo
ufw
enable
yes
|
sudo
ufw
enable
# --- Java ---
sudo
apt-get
install
-y
openjdk-8-jdk-headless
...
...
@@ -91,24 +91,22 @@ sudo apt-get install -y openjdk-8-jdk-headless
# --- Android SDK ---
sudo
apt-get
install
-y
wget
tar
unzip lib32stdc++6 lib32z1
sudo mkdir
/android-sdk
wget
--quiet
--output-document
=
android-sdk.zip https://dl.google.com/android/repository/commandlinetools-linux-7583922_latest.zip
sudo
unzip
-d
/android-sdk
android-sdk.zip
# We direct the zip directly into the unzip tool to prevent writing dead data to the VM drive
wget
-qO-
https://dl.google.com/android/repository/commandlinetools-linux-7583922_latest.zip |
sudo
busybox
unzip
-d
/android-sdk
-
sudo mv
/android-sdk/cmdline-tools/ /android-sdk/tools
sudo mkdir
/android-sdk/cmdline-tools
sudo mv
/android-sdk/tools /android-sdk/cmdline-tools/tools
sudo chmod
+x /android-sdk/cmdline-tools/tools/bin/
*
yes
|
sudo
/android-sdk/cmdline-tools/tools/bin/sdkmanager
--licenses
--no_https
yes
|
sudo
/android-sdk/cmdline-tools/tools/bin/sdkmanager
--no_https
"emulator"
"platform-tools"
"platforms;android-25"
"platforms;android-29"
"platforms;android-30"
"build-tools;29.0.3"
"system-images;android-25;google_apis;x86"
rm
-rf
android-sdk.zip
# --- Go ---
sudo
apt-get
install
-y
wget
wget https://go.dev/dl/go1.17.5.linux-amd64.tar.gz
sudo rm
-rf
/usr/local/go
&&
sudo tar
-C
/usr/local
-xzf
go1.17.5.linux-amd64.tar.gz
rm
-rf
go
*
wget
-qO-
https://go.dev/dl/go1.17.5.linux-amd64.tar.gz |
sudo tar
xzf -
-C
/usr/local
# --- GitLab Runner ---
# GitLab Runner
curl
-L
"https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh"
|
sudo
bash
export
GITLAB_RUNNER_DISABLE_SKEL
=
true
;
sudo
-E
apt-get
install
-y
gitlab-runner
sudo
gitlab-runner register
sudo
shutdown now
```
\ No newline at end of file
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