Comments (6)
I made it works in this way, by modifying captainkube Dockerfile
, like as follows below:
# Build
FROM golang:1.13.4 as builder
WORKDIR /build
COPY main.go .
RUN GO111MODULE=on; go mod init captainkube && go get k8s.io/[email protected] && go get -d -v
# temporary workaroud for https://github.com/Azure/phippyandfriends/issues/30
#RUN cd $GOPATH/src/k8s.io/klog && git checkout v0.4.0 && cd -
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
# Run
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY --from=builder /build/app .
CMD ["./app"]
So, if briefly, change this line:
RUN GO111MODULE=on; go mod init captainkube && go get k8s.io/[email protected] && go get -d -v
And comment out this line:
#RUN cd $GOPATH/src/k8s.io/klog && git checkout v0.4.0 && cd -
Thats all.
from phippyandfriends.
How do you specify a version in an import?
I tried adding go get k8s.io/[email protected]
before the existing go get
in the Dockerfile, but I get cannot use path@version syntax in GOPATH mode
.
I'm not a go person, but this seemed to be related to using a different structure for the libraries.
from phippyandfriends.
Thanks @maximsapiens, you got it! That's indeed fix the issue accordingly. And yes you are right we could now remove the temporary workaround we did there: #31.
Thanks for your contribution on this @maximsapiens, @soccerjoshj07 and @howardjones!
from phippyandfriends.
Not sure if it's directly related but just found this: google/gnostic#155
from phippyandfriends.
Definitely looks like related to this: kubernetes/client-go#741
from phippyandfriends.
I think if/when this pull request is approved, this should help us out. kubernetes/kubernetes#87802
edit-nvm
from phippyandfriends.
Related Issues (14)
- Index/Table of content HOT 1
- [parrot] The web site doesn't work with Edge HOT 5
- Link to AKS product page HOT 1
- draft up fails HOT 3
- captainkube docker build fails at go build HOT 2
- switch to `draft connect` for the ingress parts? HOT 2
- captainkube: docker build fails HOT 2
- Issue with upgrade HOT 4
- az acr helm push job files on CD pipeline HOT 4
- Build pipeline parrot fails
- Add some credits HOT 1
- Add reference to AKS/ACR RBAC authentication setup
- [captainkube] Failed to list *v1.Pod: pods is forbidden: User "system:serviceaccount:phippyandfriends:default" cannot list pods at the cluster scope HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phippyandfriends.