GithubHelp home page GithubHelp logo

chef / ci-studio-common Goto Github PK

View Code? Open in Web Editor NEW
5.0 59.0 3.0 99.38 MB

Shared helpers for use inside CIs (like Travis) and a Habitat Studio

License: Apache License 2.0

Shell 3.46% Makefile 1.50% Go 95.03%

ci-studio-common's Issues

Remove ci-studio-common buildkite-agent-hook bash script

Describe the problem

ci-studio-common has a buildkite-agent-hook bash script that does some vault-util configuration for accounts and pulls in secrets as environment variables when run within specific environments. We should move this logic directly to the corresponding go projects since these scripts will no longer be used in the near future.

We can find remnants of these scripts being used within Expeditor when it initializes docker and macos executors within buildkite pipelines.

Macos vault secrets require extra step.

On macos, when using vault, the expectation is sourcing https://github.com/chef/ci-studio-common/blob/master/buildkite-agent-hooks/ci-studio-common.sh will export the appropriate variables (assuming the VAULT_UTIL_SECRETS is set correctly).

However, in order to consume these, any script that relies on these variables needs to run eval "$(vault-util fetch-secret-env)" in order to get them. This was tested on macos with default bash (3.x) and brew installed bash (4.x).

Bug in install-tool; Unable to specify tool version

Problem

There’s a bug with some usage of theinstall-tool utility. Right now it supports passing in multiple tools (e.g. install-tool hab aws), but this breaks the desired functionality of being able to specify versions (e.g. install-tool terraform 0.10.x).

Solution

Split single calls (install-tool hab aws) into two calls (install-tool hab and install-tool aws)

hab-verify doesn't allow multiple commands

When trying to execute:

hab-verify in-studio "cd /foo; touch bar"

You will get an error:


/home/travis/ci-studio-common/bin/hab-verify: line 31: integration: command not found

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.