cirocosta / estaleiro

building container images with bill of materials
Apache License 2.0
2 stars 0 forks source link

tarball #3

Closed cirocosta closed 5 years ago

cirocosta commented 5 years ago

Hey,

In order to get tarballs working as intended


image "concourse/concourse" {
  file "/usr/local/concourse/bin/gdn" {
    from_tarball "linux-rc" {
      path = "concourse/bin/gdn"
    }
  }
}

tarball "linux-rc" {
  file "gdn" {
    paths = ["concourse/bin/gdn"]

    vcs "git" {
      ref        = "master"
      repository = "https://github.com/cloudfoundry/guardian"
    }
  }
}

We could:

  1. for each tarball definition - extract that to a scratch-based layer where all the files can be found in a directory

  2. for each file reference, we copy the file from the corresponding layer into the final image layer (using fileOp too)

    Thanks!

cirocosta commented 5 years ago

👍