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

add compile-bosh-releases-command #424

Closed
wants to merge 9 commits into from
Closed

Conversation

crhntr
Copy link
Contributor

@crhntr crhntr commented Jul 31, 2023

This change adds a kiln compile-bosh-release-tarballs command.

$ kiln compile-bosh-release-tarballs --help
kiln compile-bosh-release-tarballs
upload bosh release tarballs to a bosh director, compile the packages against the stemcell from the stemcell lock, and download the compiled tarballs

Usage: kiln [options] compile-bosh-release-tarballs [<args>]
  --help, -h     bool  prints this usage information (default: false)
  --version, -v  bool  prints the kiln release version (default: false)

Command Arguments:
  --kilnfile            string  path to Kilnfile (default: Kilnfile)
  --releases-directory  string  path to a directory containing release tarballs (default: releases)
  BOSH_ALL_PROXY        string
  BOSH_CA_CERT          string
  BOSH_CLIENT           string
  BOSH_CLIENT_SECRET    string
  BOSH_ENVIRONMENT      string
  BOSH_ENV_NAME         string

Note the only way to set the BOSH variables is via the environment. These variables match the ones set by smith and BBL.

TODO

  • design the command name and flags
  • write an implementation that takes local tarball files and writes them locally
  • add flag to specify which release source to upload to. The flag should be the similar flag in cache-compiled-releases and should be named --upload-target-id
  • update the Kilnfile.lock after the download/export succeeds

@cf-gitbot
Copy link
Member

We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.

The labels on this github issue will be updated when the story is started.

@crhntr crhntr force-pushed the compile-bosh-release-tarballs branch 3 times, most recently from afdcfde to e186463 Compare July 31, 2023 19:20
pkg/directorclient/new.go Dismissed Show dismissed Hide dismissed
pkg/directorclient/new.go Dismissed Show dismissed Hide dismissed
@crhntr crhntr force-pushed the compile-bosh-release-tarballs branch 3 times, most recently from cbfc79e to 173a6d6 Compare August 1, 2023 22:39
@crhntr crhntr force-pushed the compile-bosh-release-tarballs branch from 173a6d6 to 37e2235 Compare August 4, 2023 20:50
@crhntr crhntr changed the title Add compile-bosh-releases-command add compile-bosh-releases-command Aug 7, 2023
not tested, I don't know how to get access to a s3 bucket to test this
don't change Kilnfile.lock when the release is not uploaded
the author should use sync releases and then upload the release a
release source
@crhntr
Copy link
Contributor Author

crhntr commented Jan 12, 2024

This is not longer how we want to do this. We may wrap an image with cloudfoundry/bosh-agent#315 in the future but for now this PR should be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants