Skip to content

Commit f50ca11

Browse files
Add gitpod config
this commit adds support for Gitpod.io, a free automated dev environment that makes contributing and generally working on GitHub projects much easier. It allows anyone to start a ready-to-code dev environment for any branch, issue and pull request with a single click.
1 parent 145cad4 commit f50ca11

File tree

2 files changed

+33
-14
lines changed

2 files changed

+33
-14
lines changed

.gitpod.Dockerfile

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
FROM gitpod/workspace-full
2-
3-
USER gitpod
1+
FROM gitpod/workspace-full:latest
42

5-
# Install custom tools, runtime, etc. using apt-get
6-
# For example, the command below would install "bastet" - a command line tetris clone:
7-
#
8-
# RUN sudo apt-get -q update && # sudo apt-get install -yq bastet && # sudo rm -rf /var/lib/apt/lists/*
9-
#
10-
# More information: https://www.gitpod.io/docs/config-docker/
3+
ENV ANDROID_HOME=/workspace/android-sdk \
4+
FLUTTER_ROOT=/workspace/flutter \
5+
FLUTTER_HOME=/workspace/flutter
6+
7+
RUN bash -c ". /home/gitpod/.sdkman/bin/sdkman-init.sh \
8+
&& sdk install java 8.0.242.j9-adpt"

.gitpod.yml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
1-
tasks:
2-
- init: echo "Replace me with a build script for the project."
3-
command: echo "Replace me with something that should run on every start, or just
4-
remove me entirely."
51
image:
6-
file: .gitpod.Dockerfile
2+
file: .gitpod.dockerfile
3+
4+
tasks:
5+
- before: |
6+
export PATH=$FLUTTER_HOME/bin:$ANDROID_HOME/bin:$ANDROID_HOME/platform-tools:$PATH
7+
mkdir -p /home/gitpod/.android
8+
touch /home/gitpod/.android/repositories.cfg
9+
init: |
10+
echo "Installing Flutter SDK..."
11+
cd /workspace && wget -qO flutter_sdk.tar.xz https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_v1.12.13+hotfix.7-stable.tar.xz && tar -xf flutter_sdk.tar.xz && rm -f flutter_sdk.tar.xz
12+
echo "Installing Android SDK..."
13+
mkdir -p /workspace/android-sdk && cd /workspace/android-sdk && wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip && unzip sdk-tools-linux-4333796.zip && rm -f sdk-tools-linux-4333796.zip
14+
/workspace/android-sdk/tools/bin/sdkmanager "platform-tools" "platforms;android-28" "build-tools;28.0.3"
15+
echo "Init Flutter..."
16+
cd /workspace/A_Guide_to_Running_Tensorflow_Models_on_Android
17+
flutter upgrade
18+
flutter doctor --android-licenses
19+
flutter pub get
20+
command: |
21+
flutter pub upgrade
22+
echo "Ready to go!"
23+
flutter doctor
24+
vscode:
25+
extensions:
26+
- [email protected]:Wg2nTABftVR/Dry4tqeY1w==
27+
- [email protected]:/kOacEWdiDRLyN/idUiM4A==

0 commit comments

Comments
 (0)