Giter Site home page Giter Site logo

cornsoiliml / calicoctl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from projectcalico/calicoctl

0.0 2.0 0.0 36.48 MB

Calico CLI tool and calico/node container

Home Page: http://www.projectcalico.org

License: Apache License 2.0

Makefile 1.61% Go 42.08% Shell 1.04% Python 55.27%

calicoctl's Introduction

Build Status CircleCI branch Docker Pulls

Slack Status IRC Channel

Calico for Containers

This repository is the home of calico/node and calicoctl.

Note that the documentation in this repo is targeted at Calico contributors.

Documentation for Calico users is here:
http://docs.projectcalico.org

For information on calico/node, see the documentation on calico/node architecture.

For information on calicoctl usage, see the calicoctl reference information

Developing

Print useful actions with make help.

Building calico/node

To build the calico/node container, run the following build step from the root of the repository:

make calico/node

Use the build variables listed in the Calico binaries variable section at the top of the Makefile to modify which components are included in the resulting image. For example, the following command will produce a docker image called calico/node:custom which uses custom Felix and Libnetwork binaries:

FELIX_CONTAINER_NAME=calico/felix:1.4.3 \
LIBNETWORK_PLUGIN_CONTAINER_NAME=calico/libnetwork-plugin:v1.0.0-beta \
BUILD_CONTAINER_NAME=calico/node:custom \
make calico/node

Building calicoctl

There are two ways to build calicoctl: natively, and dockerized

Dockerized Builds

For simplicity, calicoctl can be built in a Docker container, eliminating the need for any dependencies in your host developer environment, using the following command:

make dist/calicoctl

The binary will be put in ./dist:

./dist/calicoctl --help
Native Builds
  1. Assuming you have already installed go version 1.7.1+, ensure you've cloned this repository into your Go project path.

    git clone https://github.com/projectcalico/calicoctl.git $GOPATH/src/github.com/projectcalico/calicoctl
    
  2. Install Glide.

  3. Populate the vendor/ directory in the project's root with this project's dependencies:

    glide install -strip-vendor
    
  4. Build the binary:

    make binary
    

Tests

Calico-containers system tests run in a container to ensure all build dependencies are met. Specifically, the calico/test image produced at https://github.com/projectcalico/libcalico is used.

The following Makefile step will use that image to run all local tests:

make st

calicoctl's People

Contributors

alexaltair avatar alexey-medvedchikov avatar alexwlchan avatar artem-panchenko avatar cainelli avatar caseydavenport avatar chengweiv5 avatar depay avatar djosborne avatar doublek avatar fasaxc avatar frnkdny avatar grkvlt avatar gunjan5 avatar heschlie avatar klynch avatar luke-mino-altherr avatar lwr20 avatar lxpollitt avatar matthewdupre avatar mikespreitzer avatar ozdanborne avatar paultiplady avatar robbrockbank avatar symmetric avatar thomaslohner avatar tmjd avatar tomdee avatar tonicmuroq avatar trimbiggs avatar

Watchers

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