Cloud Build workflow could be less janky
minimaxir opened this issue · 0 comments
minimaxir commented
Copying an entire GCS bucket / creating a new bucket just for copying it is not ideal. Uploading app.py
and the Dockerfile
to the same bucket is also somewhat janky.
Possible alternate workflow:
- Copy only the specified
checkpoint
folder to the Cloud Build/workspace
working directory - If the specified
checkpoint
folder is not named correctly, rename it. This allows multiple folders in a bucket. - Upload
app.py
,Dockerfile
, and friends from the local machine with thebuild
CLI command
It may be helpful to include sanity checking steps as well if doing this workflow to check for the presence of filed before the Docker build.