From: subhash kumar singh Date: Mon, 7 Oct 2024 19:05:36 +0000 (+0000) Subject: Add sample makefile for the build X-Git-Tag: 4.0.0~38^2 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=afbec643d12454d1c829e8ed44b18248b1bac9f7;p=aiml-fw%2Fawmf%2Fmodelmgmtservice.git Add sample makefile for the build Added sample makefile for build process. Change-Id: Iec796d05ef1500485e9c5d1626dfc9ad3404fbae Signed-off-by: subhash kumar singh --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5983fce --- /dev/null +++ b/Makefile @@ -0,0 +1,37 @@ +# Copyright (c) 2024 Samsung +# +# 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. +# + +build: + go build -o mme main.go + +run: + go run main.go + +test: + go clean -testcache + LOG_FILE_NAME=testing.log go test ./... + +image: + docker build -t ${IMAGE_NAME} . + +push: + docker push ${IMAGE_NAME} + +publish: image push + +deploy: + envsubst < deployment/deployment.yaml | kubectl apply -f - + +all: build test image \ No newline at end of file