1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 06:46:36 +01:00
W. Trevor King 2aea052782 scripts/maintenance/tag-route53-hosted-zones: Error messages for missing deps
At least on Bash 4.4, the -V form writes a missing-command message to
stderr:

  $ echo $BASH_VERSION
  4.4.23(1)-release
  $ command -v does-not-exist >/dev/null
  $ command -V does-not-exist >/dev/null
  -bash: command: does-not-exist: not found

Because we're not redirecting command's stderr in the script, it will
fall through to the caller's stderr and make it easier for them to
figure out what went wrong.

Also write a "Missing required dependencies" string to stderr.  We'd
had a "Dependencies not installed." string literal from 82bdd9fe
(installer/scripts: AWS tag and delete scripts, 2017-06-28,
coreos/tectonic-installer#1239), but it hadn't been written anywhere
so it was effectively an internal comment.
2018-07-08 15:04:49 -07:00
2018-07-06 18:48:42 +02:00
2018-07-06 18:48:42 +02:00
2018-07-06 18:14:09 +02:00
2018-06-22 13:39:16 -07:00
2018-07-06 16:07:20 +02:00
2018-06-18 09:27:25 -07:00
2018-05-24 16:30:19 +02:00
2017-03-13 15:13:17 +01:00
2018-07-05 17:06:12 +02:00
2018-07-06 14:47:02 +02:00
2018-07-06 14:47:02 +02:00
2018-07-06 18:48:42 +02:00
2017-09-12 12:29:05 -07:00
2016-08-09 13:19:44 -07:00
2018-07-03 16:07:02 -07:00
2018-07-06 18:48:42 +02:00
2018-07-06 14:47:02 +02:00
2014-01-19 12:25:11 -08:00
2018-05-08 17:23:06 +02:00
2017-02-10 09:36:49 -08:00
2018-07-04 11:01:41 +02:00
2018-04-23 08:50:17 -04:00
2018-04-23 08:50:17 -04:00

Build Status

Openshift Installer

The CoreOS and OpenShift teams are now working together to integrate Tectonic and OpenShift into a converged platform. See the CoreOS blog for any additional details: https://coreos.com/blog/coreos-tech-to-combine-with-red-hat-openshift

Hacking

These instructions can be used for AWS:

  1. Build the project

    bazel build tarball
    

    Note: the project can optionally be built without installing Bazel, provided Docker is installed:

    docker run --rm -v $PWD:$PWD:Z -w $PWD quay.io/coreos/tectonic-builder:bazel-v0.3 bazel --output_base=.cache build tarball
    
  2. Extract the tarball

    tar -zxf bazel-bin/tectonic-dev.tar.gz
    cd tectonic-dev
    
  3. Add binaries to $PATH

    export PATH=$(pwd)/installer:$PATH
    
  4. Edit Tectonic configuration file including the $CLUSTER_NAME

    $EDITOR examples/tectonic.aws.yaml
    
  5. Init Tectonic CLI

    tectonic init --config=examples/tectonic.aws.yaml
    
  6. Install Tectonic cluster

    tectonic install --dir=$CLUSTER_NAME
    
  7. Teardown Tectonic cluster

    tectonic destroy --dir=$CLUSTER_NAME
    

Managing Dependencies

Go

We follow a hard flattening approach; i.e. direct and inherited dependencies are installed in the base vendor/.

Dependencies are managed with glide but committed directly to the repository. If you don't have glide, install the latest release from https://glide.sh/. We require version 0.12 at a minimum.

The vendor directory is pruned using glide-vc. Follow the installation instructions in the project's README.

To add a new dependency:

  • Edit the glide.yaml file to add your dependency.
  • Ensure you add a version field for the sha or tag you want to pin to.
  • Revendor the dependencies:
rm glide.lock
glide install --strip-vendor
glide-vc --use-lock-file --no-tests --only-code
bazel run //:gazelle

If it worked correctly it should:

  • Clone your new dep to the /vendor dir and check out the ref you specified.
  • Update glide.lock to include your new package, add any transitive dependencies and update its hash.
  • Regenerate BUILD.bazel files.

For the sake of your fellow reviewers, commit vendored code separately from any other changes.

Tests

See tests/README.md.

Description
Install an OpenShift cluster
Readme 1.2 GiB
Languages
Go 85.1%
HCL 10.8%
Shell 2.8%
Python 1.2%