Browse Source

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

pull/671/head
Shagen Ogandzhanian 4 years ago
parent
commit
d33e0d99b6
  1. 3
      ci/docker/compose-web/Dockerfile-Basic
  2. 9
      ci/docker/compose-web/bootstrap.sh
  3. 4
      ci/docker/compose-web/init.gradle

3
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 chmod a+x ~/bin/repo
RUN mkdir androidx-main RUN mkdir androidx-main
WORKDIR androidx-main WORKDIR androidx-main
COPY bootstrap.sh bootstrap.sh
RUN chmod a+x bootstrap.sh

9
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

4
ci/docker/compose-web/init.gradle

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

Loading…
Cancel
Save