-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated replace in go mod files/krm functions (#262)
updated replace in arm fn go mod file now that the lib is merged into main.
- Loading branch information
Showing
32 changed files
with
328 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
*.so | ||
*.dylib | ||
bin | ||
vendor | ||
|
||
# Test binary, built with `go test -c` | ||
*.test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,22 @@ | ||
IMG_VERSION ?= latest | ||
IMG_REGISTRY ?= docker.io/nephio | ||
IMG ?= $(IMG_REGISTRY)/dnn-fn:${IMG_VERSION} | ||
IMAGE_TAG ?= latest | ||
REGISTRY ?= docker.io/nephio | ||
IMAGE_NAME ?= dnn-fn | ||
IMG ?= $(REGISTRY)/$(IMAGE_NAME):$(IMAGE_TAG) | ||
|
||
include ../../default-all.mk | ||
|
||
.PHONY: all | ||
all: fmt test docker-build | ||
all: modsync fmt test docker-build docker-push | ||
|
||
include ../../default-all.mk | ||
.PHONY: modsync | ||
modsync: | ||
go mod tidy | ||
go mod vendor | ||
|
||
.PHONY: docker-build | ||
build-image: | ||
docker buildx build --load --tag $(IMG) -f Dockerfile . | ||
|
||
.PHONY: docker-push | ||
push-image: | ||
docker buildx build --push --tag $(IMG) -f Dockerfile . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,22 @@ | ||
VERSION ?= latest | ||
IMAGE_TAG ?= latest | ||
REGISTRY ?= docker.io/nephio | ||
IMG ?= $(REGISTRY)/interface-fn:${VERSION} | ||
IMAGE_NAME ?= interface-fn | ||
IMG ?= $(REGISTRY)/$(IMAGE_NAME):$(IMAGE_TAG) | ||
|
||
include ../../default-all.mk | ||
|
||
.PHONY: all | ||
all: fmt test docker-build | ||
all: modsync fmt test docker-build docker-push | ||
|
||
include ../../default-all.mk | ||
.PHONY: modsync | ||
modsync: | ||
go mod tidy | ||
go mod vendor | ||
|
||
.PHONY: docker-build | ||
build-image: | ||
docker buildx build --load --tag $(IMG) -f Dockerfile . | ||
|
||
.PHONY: docker-push | ||
push-image: | ||
docker buildx build --push --tag $(IMG) -f Dockerfile . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,24 @@ | ||
# Copyright 2023 The Nephio Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
FROM golang:1.20-alpine | ||
ENV CGO_ENABLED=0 | ||
WORKDIR /go/src/ | ||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
COPY . . | ||
RUN go install | ||
RUN go build -o /usr/local/bin/function ./ | ||
|
||
FROM gcr.io/distroless/static:latest | ||
COPY --from=0 /usr/local/bin/function /usr/local/bin/function | ||
ENTRYPOINT ["function"] | ||
ENTRYPOINT ["function"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,22 @@ | ||
VERSION ?= latest | ||
IMAGE_TAG ?= latest | ||
REGISTRY ?= docker.io/nephio | ||
IMG ?= $(REGISTRY)/ipam-fn:${VERSION} | ||
IMAGE_NAME ?= ipam-fn | ||
IMG ?= $(REGISTRY)/$(IMAGE_NAME):$(IMAGE_TAG) | ||
|
||
include ../../default-all.mk | ||
|
||
.PHONY: all | ||
all: fmt test docker-build | ||
all: modsync fmt test docker-build docker-push | ||
|
||
include ../../default-all.mk | ||
.PHONY: modsync | ||
modsync: | ||
go mod tidy | ||
go mod vendor | ||
|
||
.PHONY: docker-build | ||
build-image: | ||
docker buildx build --load --tag $(IMG) -f Dockerfile . | ||
|
||
.PHONY: docker-push | ||
push-image: | ||
docker buildx build --push --tag $(IMG) -f Dockerfile . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.