Last active
August 29, 2015 14:10
-
-
Save spagettikod/8a5cc7f518fad13b5df9 to your computer and use it in GitHub Desktop.
Sample project to test vendoring issues in docker-library/golang
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "github.com/spagettikod/a/b" | |
func main() { | |
b.Print("Hi there!") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Source goes into sub directory of package a | |
package b | |
import "fmt" | |
func Print(msg string) { | |
fmt.Println(msg) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM spagettikod/golang-vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dockerfile for spagettikod/golang-vendor | |
FROM golang:1.3.3 | |
RUN mkdir -p /go/src/app | |
WORKDIR /go/src/app | |
# this will ideally be built by the ONBUILD below ;) | |
CMD ["go-wrapper", "run"] | |
ONBUILD COPY . /go/src/app | |
ONBUILD RUN go-wrapper install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment