Hi, I was following the steps mentioned in your asplos paper, but I can't build the faas-netes image.
To reproduce
cd INFless/sourceCode/Go/src/github.com/openfaas/faas-netes
make
Error
...
=> CACHED [build 6/8] RUN license-check -path /go/src/github.com/openfaas/faas-netes/ --verbose=false "Alex Ellis" "OpenFaaS Author(s)" 0.0s
=> CACHED [build 7/8] RUN go test -v ./... 0.0s
=> ERROR [build 8/8] RUN VERSION=$(git describe --all --exact-match `git rev-parse HEAD` | grep tags | sed 's/tags\///') && GIT_COMMIT=$(git rev-list -1 HEAD) && GOOS=linux go build --ldflags "-s -w -X github 1.0s
------
> [build 8/8] RUN VERSION=$(git describe --all --exact-match `git rev-parse HEAD` | grep tags | sed 's/tags\///') && GIT_COMMIT=$(git rev-list -1 HEAD) && GOOS=linux go build --ldflags "-s -w -X github.com/openfaas/faas-netes/version.GitCommit=${GIT_COMMIT} -X github.com/openfaas/faas-netes/version.Version=${VERSION}" -a -installsuffix cgo -o faas-netes .:
#0 0.828 fatal: not a git repository (or any of the parent directories): .git
#0 0.831 fatal: not a git repository (or any of the parent directories): .git
#0 0.834 fatal: not a git repository (or any of the parent directories): .git
------
Dockerfile:18
--------------------
17 |
18 | >>> RUN VERSION=$(git describe --all --exact-match `git rev-parse HEAD` | grep tags | sed 's/tags\///') \
19 | >>> && GIT_COMMIT=$(git rev-list -1 HEAD) \
20 | >>> && GOOS=linux go build \
21 | >>> --ldflags "-s -w \
22 | >>> -X github.com/openfaas/faas-netes/version.GitCommit=${GIT_COMMIT}\
23 | >>> -X github.com/openfaas/faas-netes/version.Version=${VERSION}" \
24 | >>> -a -installsuffix cgo -o faas-netes .
25 |
--------------------
ERROR: failed to solve: process "/bin/sh -c VERSION=$(git describe --all --exact-match `git rev-parse HEAD` | grep tags | sed 's/tags\\///') && GIT_COMMIT=$(git rev-list -1 HEAD) && GOOS=linux go build --ldflags \"-s -w -X github.com/openfaas/faas-netes/version.GitCommit=${GIT_COMMIT} -X github.com/openfaas/faas-netes/version.Version=${VERSION}\" -a -installsuffix cgo -o faas-netes ." did not complete successfully: exit code: 128
Makefile:16: recipe for target 'build' failed
make: *** [build] Error 1
It keeps telling me I'm not in a git repository. Then I compared your Dockerfile with the original faas-netes Dockerfile, and I changed VERSION and GIT_COMMIT variables to:
Hi, I was following the steps mentioned in your asplos paper, but I can't build the faas-netes image.
To reproduce
Error
It keeps telling me I'm not in a git repository. Then I compared your
Dockerfile
with the original faas-netesDockerfile
, and I changedVERSION
andGIT_COMMIT
variables to:But that doesn't help either, so I really don't know what happened here. Can I get some help? Thanks!
Environment
OS version:
Docker version:
Docker version 23.0.1, build a5ee5b1