-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
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:
RUN VERSION=$(git describe --tags --dirty --always) \
&& GIT_COMMIT=$(git rev-parse HEAD) \
...
But that doesn't help either, so I really don't know what happened here. Can I get some help? Thanks!
Environment
OS version:
NAME="Ubuntu"
VERSION="18.04.6 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.6 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
Docker version: Docker version 23.0.1, build a5ee5b1
Metadata
Metadata
Assignees
Labels
No labels