From afbec643d12454d1c829e8ed44b18248b1bac9f7 Mon Sep 17 00:00:00 2001 From: subhash kumar singh Date: Mon, 7 Oct 2024 19:05:36 +0000 Subject: [PATCH] Add sample makefile for the build Added sample makefile for build process. Change-Id: Iec796d05ef1500485e9c5d1626dfc9ad3404fbae Signed-off-by: subhash kumar singh --- Makefile | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Makefile 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 -- 2.16.6