Giter VIP home page Giter VIP logo

installer's Introduction

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. Set you access-key and secret in ~/.aws/credentials. You can create credentials in the IAM console, as documented here and here.

  2. Build the project

    bazel build tarball

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

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

    tar -zxf bazel-bin/tectonic-dev.tar.gz
  4. Create an alias for tectonic

    alias tectonic="${PWD}/tectonic-dev/installer/tectonic"
  5. Edit Tectonic configuration file including the $CLUSTER_NAME

    $EDITOR examples/aws.yaml
  6. Prepare a local configuration. The structure behind the YAML input is described here.

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

    tectonic install --dir=$CLUSTER_NAME
  8. Visit https://{$CLUSTER_NAME}-api.${BASE_DOMAIN}:6443/console/. You may need to ignore a certificate warning if you did not configure a CA known to your browser. Log in with the admin credentials you configured in aws.yaml.

  9. 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.

installer's People

Contributors

squat avatar kyoto avatar ggreer avatar quentin-m avatar cpanato avatar mxinden avatar enxebre avatar openshift-merge-robot avatar alexsomesan avatar wking avatar kans avatar zbwright avatar robszumski avatar crawford avatar rithujohn191 avatar dghubble avatar amrutac avatar diegs avatar paulfantom avatar erikkn avatar sym3tri avatar trawler avatar estroz avatar athai avatar lander2k2 avatar brancz avatar philips avatar bison avatar abhinavdahiya avatar ethernetdan avatar

Watchers

James Cloos avatar

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.