Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update workstation scripts to be more broadly useful (#64)
* Import print_env_info script from capi-ci - 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. * Simplify claim_bosh_lite function - 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) * Tidy up target_bosh function - Mostly just adding some stdout lines to clarify what the command is doing * Tidy unclaim_bosh_lite function - Remove dependency on git-together - Unset more environment variables - Fix hostname for zsh (no $HOSTNAME environment variable) * Use git commit instead of git ci - cause not everyone uses aliases * Simplify print_env_info - 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. * Delete can-i-push - No longer used - Depends the dead canibump app (RIP) * Unclaim also unsets CREDHUB_CA_CERT env var * Don't log in to CredHub - 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 some dubious commands - 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 shebang to bin/fixcommitter * Clean up deploy scripts - 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 * Additional minor tidying - 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) * Remove bin/story - 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) * Tidy seed_users - 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 * Remove commit_with_shortlog - Does not work; It attempted to call bin/staged_shortlog, which doesn't exist. - The actual staged_shortlog is in capi-release/scripts * Fix run_bridge_tests - The script assumed that it was inside capi-release's scripts directory. It was not. * Remove watch_cc_units - 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 * Remove bin/load-key - Part of larger effort to remove lastpass dependency - Most CAPI contributors don't use lastpass anymore * Remove bin/pivotal_login * Update capidoc with recent changes - Add some missing scripts * Small UI improvements to scripts * Reorganize README - 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 * Purge lib directory - Remove most opinions about development environment (vim, ruby dev, git, GOPATH, etc) - Limit to dev-machine-agnostic functions for CAPI development
- Loading branch information