Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build docker image from src #217

Closed
jchauncey opened this issue Apr 2, 2019 · 1 comment
Closed

Unable to build docker image from src #217

jchauncey opened this issue Apr 2, 2019 · 1 comment

Comments

@jchauncey
Copy link

I am wanting to build the guard image from source but I am running into the following issue:

root@19837f6d82f1:/go/src/github.com/appscode/guard# ./hack/docker/setup.sh /go/src/github.com/appscode/guard /go/src/github.com/appscode/guardDEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Requirement already satisfied: antipackage from git+https://github.com/ellisonbg/antipackage.git#egg=antipackage in /usr/local/lib/python2.7/dist-packages (1.0)
Downloading:  https://raw.githubusercontent.com/appscode/libbuild/master/libbuild.py
Using existing version:  github.appscode.libbuild.libbuild
Downloading:  https://raw.githubusercontent.com/appscode/libbuild/master/pydotenv.py
Using existing version:  github.appscode.libbuild.pydotenv
go generate auth/providers/ldap/authchoice.go
go-enum started. file: authchoice.go
go-enum finished. file: authchoice.go
id -u
docker run --rm -u 0 -v /tmp:/.cache -v /go/src/github.com/appscode/guard:/go/src/github.com/appscode/guard -w /go/src/github.com/appscode/guard -e CGO_ENABLED=0 golang:1.11.5-alpine go build -o dist/guard/guard-alpine-amd64  -ldflags '-X main.GitTag=0.4.0 -X main.CommitHash=754eb9d99b25bdac7c415c6b987d9290a10afdbe -X main.CommitTimestamp=2019-02-04T23:24:56 -X main.Arch=amd64 -X main.VersionStrategy=tag -X main.Version=0.4.0 -X main.GitBranch=HEAD -X main.Os=alpine' -tags 'osusergo netgo static_build' *.go
stat main.go: no such file or directory

If I just run the go command that is being attempted in the docker run command it works just fine.

Thoughts?

@tamalsaha
Copy link
Contributor

make container will build the container. Please let us know if you have any further issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants