Moves main into cmd dir. (#977)

This commit is contained in:
Travis Reeder
2018-05-09 00:52:52 -07:00
committed by Denis Makogon
parent b81ac1d2d2
commit 999820d15b
8 changed files with 8 additions and 8 deletions

View File

@@ -3,7 +3,7 @@ FROM golang:1.10-alpine AS build-env
RUN apk --no-cache add build-base git bzr mercurial gcc
ENV D=/go/src/github.com/fnproject/fn
ADD . $D
RUN cd $D && go build -o fn-alpine && cp fn-alpine /tmp/
RUN cd $D/cmd/fnserver && go build -o fn-alpine && cp fn-alpine /tmp/
# final stage: the local fnproject/dind:latest will be either built afresh or
# whatever is the latest from master, depending on whether we're releasing

View File

@@ -8,10 +8,10 @@ dep-up:
dep ensure
build: api/agent/grpc/runner.pb.go
go build -o fnserver
go build -o fnserver ./cmd/fnserver
install:
go build -o ${GOPATH}/bin/fnserver
go build -o ${GOPATH}/bin/fnserver ./cmd/fnserver
checkfmt:
./go-fmt.sh

View File

@@ -21,7 +21,7 @@ function quick() {
}
function build () {
docker run --rm -v ${pwd}:/go/src/github.com/fnproject/fn -w /go/src/github.com/fnproject/fn golang:alpine go build -o fn-alpine
docker run --rm -v ${pwd}:/go/src/github.com/fnproject/fn -w /go/src/github.com/fnproject/fn/cmd/fnserver golang:alpine go build -o fn-alpine
docker build -t fnproject/fnserver:latest .
function run () {

View File

@@ -1,6 +1,6 @@
# Extensions Example
This example adds extra endpoints to the API. See [main.go](main.go) for example code.
This example adds extra endpoints to the API. See [main.go](main.go) for example code.
## Building and Running

View File

@@ -3,7 +3,7 @@ FROM golang:1.10-alpine AS build-env
RUN apk --no-cache add build-base git bzr mercurial gcc
ENV D=/go/src/github.com/fnproject/fn
ADD . $D
RUN cd $D && go build -o fn-alpine && cp fn-alpine /tmp/
RUN cd $D/cmd/fnserver && go build -o fn-alpine && cp fn-alpine /tmp/
# final stage: the local fnproject/dind:latest will be either built afresh or
# whatever is the latest from master, depending on whether we're releasing

View File

@@ -3,7 +3,7 @@ FROM golang:1.10-alpine AS build-env
RUN apk --no-cache add build-base git bzr mercurial gcc
ENV D=/go/src/github.com/fnproject/fn
ADD . $D
RUN cd $D && go build -o fn-alpine && cp fn-alpine /tmp/
RUN cd $D/cmd/fnserver && go build -o fn-alpine && cp fn-alpine /tmp/
# final stage: the local fnproject/dind:latest will be either built afresh or
# whatever is the latest from master, depending on whether we're releasing

View File

@@ -3,7 +3,7 @@ FROM golang:1.10-alpine AS build-env
RUN apk --no-cache add build-base git bzr mercurial gcc
ENV D=/go/src/github.com/fnproject/fn
ADD . $D
RUN cd $D && go build -o fn-alpine && cp fn-alpine /tmp/
RUN cd $D/cmd/fnserver && go build -o fn-alpine && cp fn-alpine /tmp/
# final stage: the local fnproject/dind:latest will be either built afresh or
# whatever is the latest from master, depending on whether we're releasing