Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(containers): container builds use GCS for cache storage #14

Merged
merged 3 commits into from
Feb 25, 2020

Commits on Feb 18, 2020

  1. refactor(containers): container builds use GCS for cache storage

    This makes a few changes:
    1. Before the compilation, we pull down a $repo-$branch.tgz file and
       uncompress it (e.g. igor-master.tgz or rosco-release-1.17.x.tgz) to
       the /workspace volume
    2. The Dockerfile.compile image is now expected to be a build step. This
       means we can run the container and it will compile files on the
       /workspace volume. Currently, we copy all the files into the
       container, compile them there, and then have to copy them back out.
       This new method is more along the lines with how GCB is supposed to
       work, but it does mean every Dockerfile.compile has to be
       changed to use CMD instead of RUN.
    3. After the compile, we tar up .gradle/caches and .gradle/wrapper to
       $repo-$branch.tgz and send it to gs://spinnaker-build-cache. This
       storage bucket is set to auto-delete files that haven't been
       modified in 14 days.
    
    Removing our dependence on the `gradle_cache` image means that the
    various microservices can define their own compile image with different
    build tool configurations. I'd really like to have this for the Java 11
    migration.
    
    It also means we could move the Debian builds into Cloud Build, since
    we aren't depending on them to produce that `gradle_cache` artifact.
    plumpy committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    ce609b1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5623804 View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2020

  1. Configuration menu
    Copy the full SHA
    0481d52 View commit details
    Browse the repository at this point in the history