mirror of
https://github.com/jlengrand/compose-multiplatform.git
synced 2026-03-10 08:11:20 +00:00
Introduce bootstrap process as a gradle task (compose-web basic Docker image)
This commit is contained in:
@@ -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
|
||||
|
||||
9
ci/docker/compose-web/bootstrap.sh
Normal file
9
ci/docker/compose-web/bootstrap.sh
Normal 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
|
||||
@@ -76,4 +76,8 @@ allprojects {
|
||||
url("https://maven.pkg.jetbrains.space/public/p/compose/dev")
|
||||
}
|
||||
}
|
||||
|
||||
task bootstrap(type: Exec) {
|
||||
commandLine "./bootstrap.sh"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user