blob: e5053db6daa8ee5743586e2d1d73801b79ea8587 [file] [log] [blame]
Docker image that builds the Android LLVM toolchain.
# Build using the production Docker image
Run prod_env.sh
If you see gcloud permission errors, run
gcloud auth login && gcloud auth configure-docker us-docker.pkg.dev
to set up gcloud Docker authentication.
# Test a new Docker image
Make your changes and run test_env.sh.
# Deploying a new Docker image
Command to build and deploy an updated Docker image using Google Cloud Build:
gcloud builds submit --timeout 3600s --tag us-docker.pkg.dev/google.com/android-llvm-kokoro/android-llvm/llvm-ubuntu
Tag the build with `prod` on Cloud Artifact Registry.
# Generate requirements.txt
docker/prod_env.sh
pip install pip-tools
echo tensorflow-cpu > requirements.in
~/.local/bin/pip-compile --upgrade --generate-hashes --output-file=requirements.txt requirements.in