Skip to content

Commit

Permalink
There's no need in complicated logic since we can not (easily) change…
Browse files Browse the repository at this point in the history
… entry point after all
  • Loading branch information
Schahen committed May 14, 2021
1 parent c95fbcb commit a4e2d22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
2 changes: 0 additions & 2 deletions ci/docker/compose-web/Dockerfile-Basic
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,3 @@ WORKDIR androidx-main

COPY bootstrap.sh bootstrap.sh
RUN chmod a+x bootstrap.sh

ENTRYPOINT ./bootstrap.sh
14 changes: 4 additions & 10 deletions ci/docker/compose-web/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,14 @@ function bootstrap() {
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
~/bin/repo sync -c --no-tags --no-clone-bundle -j$(nproc --all)

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
}

if [ ! -e /tmp/init ]; then
touch /tmp/init
echo "bootstrapping"
bootstrap
else
echo "not bootstrapping, all done"
fi
rm -rf /androidx-main/frameworks
}

/bin/bash
bootstrap

0 comments on commit a4e2d22

Please sign in to comment.