Introduce bootstrap process as a gradle task (compose-web basic Docker image)

This commit is contained in:
Shagen Ogandzhanian
2021-05-12 22:02:35 +02:00
parent 83352b3499
commit d33e0d99b6
3 changed files with 16 additions and 0 deletions

View File

@@ -44,3 +44,6 @@ RUN wget -P ~/bin https://storage.googleapis.com/git-repo-downloads/repo
RUN chmod a+x ~/bin/repo
RUN mkdir androidx-main
WORKDIR androidx-main
COPY bootstrap.sh bootstrap.sh
RUN chmod a+x bootstrap.sh

View File

@@ -0,0 +1,9 @@
cd /androidx-main
~/bin/repo init -u https://android.googlesource.com/platform/manifest \
-b androidx-main --depth=1 --partial-clone --clone-filter=blob:limit=10M
~/bin/repo sync -c --no-tags --no-clone-bundle -j4
mkdir -p /mnt/agent
ln -sf /androidx-main/tools/ /mnt/agent/tools
ln -sf /androidx-main/prebuilts/ /mnt/agent/prebuilts
ln -sf /androidx-main/external /mnt/agent/external

View File

@@ -76,4 +76,8 @@ allprojects {
url("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
}
task bootstrap(type: Exec) {
commandLine "./bootstrap.sh"
}
}