File tree Expand file tree Collapse file tree 2 files changed +33
-14
lines changed
Expand file tree Collapse file tree 2 files changed +33
-14
lines changed Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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."
51image :
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==
You can’t perform that action at this time.
0 commit comments