GithubHelp home page GithubHelp logo

nuagenetworks / nuage-libnetwork Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 10.0 16.62 MB

Nuage Docker Integration

Home Page: http://nuagenetworks.net/

License: BSD 3-Clause "New" or "Revised" License

Go 95.14% Shell 4.33% Makefile 0.34% Dockerfile 0.19%
docker libnetwork nuage nuage-plugins

nuage-libnetwork's People

Contributors

arnagaram avatar pdellaert avatar rajeshnokia avatar sjabasti avatar vareti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nuage-libnetwork's Issues

golang dep complains about sirupsen/logrus

I have the following constraint in Gopkg.toml.

[[constraint]]
  name = "github.com/nuagenetworks/nuage-libnetwork"

When I run dep ensure, it complaints that nuage-libnetwork uses upper-case S when referring to logrus, which the logrus itself is github.com/sirupsen/logrus (lowercase).

$ dep ensure
ensure Solve(): No versions of github.com/nuagenetworks/nuage-libnetwork met constraints:
	master: Could not introduce github.com/nuagenetworks/nuage-libnetwork@master due to a case-only variation: it depends on "github.com/Sirupsen/logrus", but "github.com/sirupsen/logrus" was already established as the case variant for that project root by depender (root)

The ask is to replace Sirupsen with sirupsen in this library.

See also from logrus:

Everything using logrus will need to use the lower-case: github.com/sirupsen/logrus. Any package that isn't, should be changed.

GOPATH may contain multiple paths

On a single node, there could be multiple paths in $GOPATH. Thus, the below line in scripts/buildRPM.sh would fail.

cd $GOPATH/src/github.com/nuagenetworks/nuage-libnetwork

It is much nicer to have something like this:

#!/bin/bash

set -e

if [ -z ${GOPATH} ]; then
    echo "\"GOPATH\" environmental variable is not set";
    exit 1
fi

PLUGIN_NAME="nuage-libnetwork"
PLUGIN_VERSION="5.1.1"

rm -rf ~/rpmbuild/BUILD/nuage-libnetwork*
rm -rf ~/rpmbuild/SOURCES/nuage-libnetwork*
rm -rf ~/rpmbuild/RPMS/x86_64/nuage-libnetwork*
rm -rf ~/rpmbuild/SRPMS/nuage-libnetwork*
rm -rf /tmp/${PLUGIN_NAME}-${PLUGIN_VERSION}

for GPATH in ${GOPATH//:/ }; do
    find ${GPATH} -type d -name "nuage-libnetwork" | xargs cd $1;
done;

PLUGIN_PATH=$(pwd);
echo "Discovered ${PLUGIN_NAME} plugin in ${PLUGIN_PATH}";

echo -n "Performing Go build of ${PLUGIN_NAME}-${PLUGIN_VERSION} ...";
go build
echo "done";

echo -n "Create an archive for RPM build ...";
mkdir -p ${HOME}/rpmbuild/SOURCES
tar -cf ${HOME}/rpmbuild/SOURCES/${PLUGIN_NAME}-${PLUGIN_VERSION}.tar.gz ${PLUGIN_NAME}* scripts/${PLUGIN_NAME}*
echo "done";
echo "Note: Please review the contents of the archive: 'tar -tvf ${HOME}/rpmbuild/SOURCES/${PLUGIN_NAME}-${PLUGIN_VERSION}.tar.gz'"

echo "Performing RPM build";
rpmbuild --nodeps -ba $PLUGIN_PATH/rpmbuild/${PLUGIN_NAME}.spec
echo "Done!";

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.