Add sample makefile for the build 18/13518/1
authorsubhash kumar singh <subh.singh@samsung.com>
Mon, 7 Oct 2024 19:05:36 +0000 (19:05 +0000)
committersubhash kumar singh <subh.singh@samsung.com>
Mon, 7 Oct 2024 19:05:36 +0000 (19:05 +0000)
Added sample makefile for build process.

Change-Id: Iec796d05ef1500485e9c5d1626dfc9ad3404fbae
Signed-off-by: subhash kumar singh <subh.singh@samsung.com>
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
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