chef / ci-studio-common Goto Github PK
View Code? Open in Web Editor NEWShared helpers for use inside CIs (like Travis) and a Habitat Studio
License: Apache License 2.0
Shared helpers for use inside CIs (like Travis) and a Habitat Studio
License: Apache License 2.0
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.
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).
On entering the studio in A2 you will see:
/hab/pkgs/chef/ci-studio-common/1.1.18/20180816000854/bin/studio-common: line 31: curl: command not found
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
).
Split single calls (install-tool hab aws
) into two calls (install-tool hab
and install-tool aws
)
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.