-
Notifications
You must be signed in to change notification settings - Fork 9
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
Update workstation scripts to be more broadly useful #64
Conversation
- It is no longer needed by capi-ci, since removing Slack integration from the bosh-lite pool. - It will be less lonely here, since this is where the rest of the bosh-lite pool scripts live.
- Remove dependency on git-together - Remove dependency on direnv - Remove dependency on lastpass CLI - Remove Pivotal Tracker integration - No longer prompts for Pivotal Tracker story id - Adds Jira integration (not really; just kidding) - No longer changes your working directory - Fix hostname for zsh (no $HOSTNAME environment variable)
96af36b
to
e884357
Compare
- Mostly just adding some stdout lines to clarify what the command is doing
- Remove dependency on git-together - Unset more environment variables - Fix hostname for zsh (no $HOSTNAME environment variable)
- cause not everyone uses aliases
- Remove story column - Remove staleness. Bosh lites are eternally fresh! - Gracefully handle case when no environment are claimed. Previously this would would trigger an "ambiguous ref" error from git, due to weirdness when globbing empty directories.
- No longer used - Depends the dead canibump app (RIP)
- Per CredHub CLI output: Login ignored as the CREDHUB_* environment variables are present. You do NOT need to run this "login" command in order to run other "credhub" commands when you set the CREDHUB_* environment variables. The command only validates your credentials. For backwards compatibility reasons, it (in this particular use case) does not error out. You should not use it with the environment variables set. The "credhub login" command is useful in the case you do not have the environment variables set and you pass your credentials to "credhub login" through command line arguments. - Add some guards for commands that require a targeted bosh. For instance, if they require credhub env vars to be set =)
- Remove the `set_capi_*_pipeline` scripts. They didn't do that much and have some baked-in assumptions (e.g. having a fly target named "capi"). They didn't seem worth parameterizing to make them more portable, but we can do it if people care enough. - Remove `gcs_to_claimed` script. I'm not really sure what this did, but it doesn't seem to be widely used, and it's not very portable. It also duplicates some of the behavior in `claim_bosh_lite`, which I'd rather not have to maintain independently.
- Add additional stoutput to help explain what is going on - Add guards to make sure there is an environment targeted - Reincarnate `use-created-capi.yml` ops file, formerly of capi-ci, but now gone. This ops file is used to build and deploy a capi release from your local filesystem, thanks to bosh handling local file urls. - Loosen assumptions about local directory structure. The commands now let you provide environment variables to override the default assumption that you have a relevant repos in a `~/workspace` directory. - Miscellaneous other small style changes, because I can
- Soften more directory structure opinions - Change some output formatting to be more consistent with other commands - Remove indenting output by piping to sed, since it doesn't work for non-stdout terminal output (e.g. bosh CLI output is often not pipe-able)
- Most CAPI work is tracked via GitHub issues now; Tracker is not used by most/all CAPI contributors. - Story is no longer needed for claiming bosh lites (via prior commit)
- Take org/space name as arguments, akin to bootstrap_cf - Change default names to "org" and "space", instead of "test", so that they match bootstrap_cf
- Does not work; It attempted to call bin/staged_shortlog, which doesn't exist. - The actual staged_shortlog is in capi-release/scripts
64acd70
to
4d78f00
Compare
- The script assumed that it was inside capi-release's scripts directory. It was not.
- Consistent with removing other minor concourse-related scripts (see previous commit) - Provides dubious value vs using fly yourself, and it has a hard-coded target name
- Part of larger effort to remove lastpass dependency - Most CAPI contributors don't use lastpass anymore
- Add some missing scripts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't tested every command in this pr, but it seems reasonable to me. Are you waiting for something in particular to change this to not a draft and get back to the main branch?
- Move heavy-weight installation instructions to the bottom, since they are not in common use - Emphasize the light-weight installation instructions (adding scripts to path and sourcing functions) - Add section espousing the wonders of the bosh lite pool - Remove some "Pivotal" references
fc9bd7c
to
811d1c3
Compare
I had a secret list of things I wanted to do, which I have now more-or-less accomplished. I converted to a full PR. |
- Remove most opinions about development environment (vim, ruby dev, git, GOPATH, etc) - Limit to dev-machine-agnostic functions for CAPI development
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found a typo in the readme, but otherwise LGTM
README.md
Outdated
As a perk, [CAPI | ||
approvers](https://github.com/cloudfoundry/community/blob/main/toc/working-groups/app-runtime-interfaces.md) | ||
get access to a pool of cf-deployment environments, deployed on bosh lites in a | ||
CFF-managed IaaS account. These environments are displosable, and are only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/displosable/disposable/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoopsie doodle, didn't realize making a commit to fix the spelling error would dismiss a perfectly cromulent review. apologies tim
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks even better to me!
Follow-up to cloudfoundry/capi-ci#52