diff --git a/ci/docker/compose-web/Dockerfile-Basic b/ci/docker/compose-web/Dockerfile-Basic index b78cc17a..5eade68b 100644 --- a/ci/docker/compose-web/Dockerfile-Basic +++ b/ci/docker/compose-web/Dockerfile-Basic @@ -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 diff --git a/ci/docker/compose-web/bootstrap.sh b/ci/docker/compose-web/bootstrap.sh new file mode 100644 index 00000000..df8bb519 --- /dev/null +++ b/ci/docker/compose-web/bootstrap.sh @@ -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 diff --git a/ci/docker/compose-web/init.gradle b/ci/docker/compose-web/init.gradle index bd450c62..b0a40f16 100644 --- a/ci/docker/compose-web/init.gradle +++ b/ci/docker/compose-web/init.gradle @@ -76,4 +76,8 @@ allprojects { url("https://maven.pkg.jetbrains.space/public/p/compose/dev") } } + + task bootstrap(type: Exec) { + commandLine "./bootstrap.sh" + } }