GithubHelp home page GithubHelp logo

Comments (8)

lonelycode avatar lonelycode commented on July 17, 2024

This is resolved in master branch, all dependencies for google code were removed ages ago.

I assume you are building from a release, if so you'll need replace all the dependencies references, we pinned go-uuid to this repo:

"github.com/lonelycode/go-uuid/uuid"

Thanks google code for breaking our backwards compatability :-(

from tyk.

mDomingues avatar mDomingues commented on July 17, 2024

So how do you explain this, master branch up-to-date:

make build/container
GOOS=linux GOARCH=amd64 go build -o build/tyk
../../gocode/src/github.com/lonelycode/osin/tokengen.go:7:2: cannot find package "code.google.com/p/go-uuid/uuid" in any of:
/usr/local/Cellar/go/1.4.2/libexec/src/code.google.com/p/go-uuid/uuid (from $GOROOT)
/Users/xxxxx/gocode/src/code.google.com/p/go-uuid/uuid (from $GOPATH)
analytics.go:8:2: cannot find package "labix.org/v2/mgo" in any of:
/usr/local/Cellar/go/1.4.2/libexec/src/labix.org/v2/mgo (from $GOROOT)
/Users/xxxxx/gocode/src/labix.org/v2/mgo (from $GOPATH)
../../gocode/src/github.com/lonelycode/tykcommon/api_defintitions.go:6:2: cannot find package "labix.org/v2/mgo/bson" in any of:
/usr/local/Cellar/go/1.4.2/libexec/src/labix.org/v2/mgo/bson (from $GOROOT)
/Users/xxxxx/gocode/src/labix.org/v2/mgo/bson (from $GOPATH)
make: *** [build/tyk] Error 1

from tyk.

lonelycode avatar lonelycode commented on July 17, 2024

Dammit, a dependency in a pinned dependency... missed that one. Try it now (you'll need to git update the osin lib)

from tyk.

mDomingues avatar mDomingues commented on July 17, 2024

Ok, did it and now complains on this:

go build runtime: linux/amd64 must be bootstrapped using make.bash
make: *** [build/tyk] Error 1

Note: I'm running this on OSX

from tyk.

lonelycode avatar lonelycode commented on July 17, 2024

The makefile is set up to compile for linux on amd64, if you are running on a different platform you'll need to modify this line:

GOOS=linux GOARCH=amd64 go build -o build/tyk

in the Makefile to be whatever platform you are building for, according to the golang docs you have the following to pick from

$GOOS $GOARCH
darwin 386
darwin amd64
dragonfly 386
dragonfly amd64
freebsd 386
freebsd amd64
freebsd arm
linux 386
linux amd64
linux arm
netbsd 386
netbsd amd64
netbsd arm
openbsd 386
openbsd amd64
plan9 386
plan9 amd64
solaris amd64
windows 386
windows amd64

FYI: The reason this isn't working is because we don't actively support Docker yet, this file was supplied by a third-party, so it's pretty custom to their setup.

from tyk.

mDomingues avatar mDomingues commented on July 17, 2024

Your totally right!! I did it using other way but thanks for that information. :)
I recompiled go for all distributions available: brew reinstall go --cross-compile-all
This way user doesn't need to change the docker file to the OS based version.

Now that I have the server up and running, what's the endpoint for the dashboard and management ? I saw a few endpoints in main but nothing as I was expecting..

from tyk.

lonelycode avatar lonelycode commented on July 17, 2024

haha, wow - that's a bit much, it may just be a case of building for whatever is on the system, I don;t think you need to set those flags per se.

There's quite a lot you are missing i think - the dashboard is a seperate component, that docker file is just for the gateway binary.

Would suggest looking at the docs as there's quite a lot!

https://tyk.io/v1.5/setup/install-dashboard/

Thanks,
Martin

from tyk.

mDomingues avatar mDomingues commented on July 17, 2024

Ok ok! Many thanks for your help! :)

from tyk.

Related Issues (20)

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.