mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-21 20:45:29 +03:00
Add support for GitHub codespaces
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
5b5d18e93a
commit
e1b3e85e2f
4 changed files with 28 additions and 0 deletions
16
.devcontainer/Dockerfile
Normal file
16
.devcontainer/Dockerfile
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
FROM ubuntu:focal
|
||||||
|
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
ENV ANDROID_HOME=/usr/lib/android-sdk
|
||||||
|
|
||||||
|
RUN apt-get update -y
|
||||||
|
RUN apt-get install -y unzip wget openjdk-8-jdk vim
|
||||||
|
|
||||||
|
RUN wget https://dl.google.com/android/repository/commandlinetools-linux-6858069_latest.zip -O /tmp/commandlinetools.zip
|
||||||
|
RUN cd /tmp && unzip commandlinetools.zip
|
||||||
|
RUN mkdir -p /usr/lib/android-sdk/cmdline-tools/
|
||||||
|
RUN cd /tmp/ && mv cmdline-tools/ latest/ && mv latest/ /usr/lib/android-sdk/cmdline-tools/
|
||||||
|
RUN mkdir /usr/lib/android-sdk/licenses/
|
||||||
|
RUN chmod -R 755 /usr/lib/android-sdk/
|
||||||
|
RUN mkdir -p $HOME/.gradle
|
||||||
|
RUN echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > $HOME/.gradle/gradle.properties
|
5
.devcontainer/README.md
Normal file
5
.devcontainer/README.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# Instructions
|
||||||
|
|
||||||
|
1. Start a DevContainer either on GitHub Codespaces or locally in VSCode
|
||||||
|
2. Accept all licenses by running `yes | /usr/lib/android-sdk/cmdline-tools/latest/bin/sdkmanager --licenses`
|
||||||
|
3. You can now build the app using `./gradlew clean build`
|
3
.devcontainer/devcontainer.env
Normal file
3
.devcontainer/devcontainer.env
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
ANDROID_HOME=/usr/lib/android-sdk
|
||||||
|
JAVA_OPTS="-Xmx8192M"
|
||||||
|
GRADLE_OPTS="-Dorg.gradle.daemon=true"
|
4
.devcontainer/devcontainer.json
Normal file
4
.devcontainer/devcontainer.json
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"name": "NextcloudTalkAndroid",
|
||||||
|
"dockerFile": "Dockerfile",
|
||||||
|
}
|
Loading…
Reference in a new issue