Skip to content

Instantly share code, notes, and snippets.

@spagettikod
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spagettikod/8a5cc7f518fad13b5df9 to your computer and use it in GitHub Desktop.
Save spagettikod/8a5cc7f518fad13b5df9 to your computer and use it in GitHub Desktop.
Sample project to test vendoring issues in docker-library/golang
package main
import "github.com/spagettikod/a/b"
func main() {
b.Print("Hi there!")
}
// Source goes into sub directory of package a
package b
import "fmt"
func Print(msg string) {
fmt.Println(msg)
}
FROM spagettikod/golang-vendor
# 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