cli icon indicating copy to clipboard operation
cli copied to clipboard

"fn deploy --all" picks up sample functions from vendor directory

Open denismakogon opened this issue 5 years ago • 1 comments

fn deploy --all picks up sample functions from vendor directory.

denismakogon avatar Oct 30 '18 21:10 denismakogon

my repo struct:

drwxr-xr-x  15 denismakogon  staff    480 Oct 30 23:31 a
-rw-r--r--   1 denismakogon  staff     13 Oct 28 17:06 app.yml
drwxr-xr-x  13 denismakogon  staff    416 Oct 30 23:37 b
drwxr-xr-x  12 denismakogon  staff    384 Oct 30 23:15 c
-rw-r--r--   1 denismakogon  staff  21181 Oct 30 23:19 build_log.txt
drwxr-xr-x  11 denismakogon  staff    352 Oct 30 23:35 d
-rwxr-xr-x   1 denismakogon  staff    542 Oct 30 22:31 run.sh
drwxr-xr-x  10 denismakogon  staff    320 Oct 30 23:27 f

build log has the following:

Step 1/11 : FROM fnproject/go:dev as build-stage
 ---> fac877f7d14d
Step 2/11 : WORKDIR /function
 ---> Using cache
 ---> a3b46fde0073
Step 3/11 : RUN go get -u github.com/golang/dep/cmd/dep
 ---> Using cache
 ---> 03cc435d49d2
Step 4/11 : ADD Gopkg.* /go/src/func/
 ---> Using cache
 ---> e492830d75d1
Step 5/11 : RUN cd /go/src/func/ && dep ensure --vendor-only
 ---> Using cache
 ---> 1d9c615abd8d
Step 6/11 : ADD . /go/src/func/
 ---> b103b7b582b9
Step 7/11 : RUN cd /go/src/func/ && go build -o func
 ---> Running in ac0f3ce77e87
Removing intermediate container ac0f3ce77e87
 ---> a8eb3499585c
Step 8/11 : FROM fnproject/go
 ---> 76aed4489768
Step 9/11 : WORKDIR /function
 ---> Running in add2b33076cf
Removing intermediate container add2b33076cf
 ---> 5dbfc8555aa6
Step 10/11 : COPY --from=build-stage /go/src/func/func /function/
 ---> 7045701d440b
Step 11/11 : ENTRYPOINT ["./func"]
 ---> Running in 41231d1d6d59
Removing intermediate container 41231d1d6d59
 ---> e41e356190a4
Successfully built e41e356190a4
Successfully tagged denismakogon/hello:0.0.5
Parts:  [denismakogon hello:0.0.5]
Pushing denismakogon/hello:0.0.5 to docker registry...The push refers to repository [docker.io/denismakogon/hello]
1d4053e1ffee: Preparing
99e07ca4ee63: Preparing
97dedccb7128: Preparing
c9e8b5c053a2: Preparing
c9e8b5c053a2: Layer already exists
97dedccb7128: Layer already exists
99e07ca4ee63: Pushed
1d4053e1ffee: Pushed
0.0.5: digest: sha256:40be75821f7e00ddb5a065cc5f26e3c7c6dc6020b789a04c3a3075035982295b size: 1156
Updating function hello using image denismakogon/hello:0.0.5...
Deploying audio-processor to app: ffmpeg
Bumped to version 0.0.5

denismakogon avatar Oct 30 '18 21:10 denismakogon