mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Fixes scary output on docker startup.
This commit is contained in:
committed by
Reed Allman
parent
855dcf6ac7
commit
9a8ff408b5
@@ -20,7 +20,3 @@ release:
|
||||
GOOS=darwin go build -o fn_mac
|
||||
GOOS=windows go build -o fn.exe
|
||||
docker run --rm -v ${PWD}:/go/src/gitlab-odx.oracle.com/odx/functions/fn -w /go/src/gitlab-odx.oracle.com/odx/functions/fn funcy/go:dev go build -o fn_alpine
|
||||
|
||||
# install locally
|
||||
install: build
|
||||
sudo mv fn /usr/local/bin/
|
||||
|
||||
@@ -30,7 +30,8 @@ func start(c *cli.Context) error {
|
||||
if c.String("log-level") != "" {
|
||||
denvs = append(denvs, "GIN_MODE="+c.String("log-level"))
|
||||
}
|
||||
// docker run --rm -it --name functions -v ${PWD}/data:/app/data -v /var/run/docker.sock:/var/run/docker.sock -p 8080:8080 treeder/functions
|
||||
// Socket mount: docker run --rm -it --name functions -v ${PWD}/data:/app/data -v /var/run/docker.sock:/var/run/docker.sock -p 8080:8080 funcy/functions
|
||||
// OR dind: docker run --rm -it --name functions -v ${PWD}/data:/app/data --privileged -p 8080:8080 funcy/functions
|
||||
wd, err := os.Getwd()
|
||||
if err != nil {
|
||||
logrus.WithError(err).Fatalln("Getwd failed")
|
||||
|
||||
Reference in New Issue
Block a user