mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Remove npm remnants (#882)
* create an Annotation map of the right size to avoid resizing * removes all references to deprecated nodepool manager
This commit is contained in:
committed by
Andrea Rosa
parent
0c47dbf26d
commit
101236f7d8
@@ -47,11 +47,11 @@ func newMockRunnerPool(rf insecureRunnerFactory, runnerAddrs []string) *mockRunn
|
||||
}
|
||||
}
|
||||
|
||||
func (npm *mockRunnerPool) Runners(call pool.RunnerCall) ([]pool.Runner, error) {
|
||||
return npm.runners, nil
|
||||
func (rp *mockRunnerPool) Runners(call pool.RunnerCall) ([]pool.Runner, error) {
|
||||
return rp.runners, nil
|
||||
}
|
||||
|
||||
func (npm *mockRunnerPool) Shutdown(context.Context) error {
|
||||
func (rp *mockRunnerPool) Shutdown(context.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
# build stage
|
||||
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/poolmanager/server && go build -o fnnpm && cp fnnpm /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
|
||||
# a newer cut.
|
||||
FROM alpine:latest
|
||||
WORKDIR /app
|
||||
COPY --from=build-env /tmp/fnnpm /app/fnnpm
|
||||
CMD ["./fnnpm"]
|
||||
Reference in New Issue
Block a user