From 903cf132b673793f3f7d855a3f5b513970a9f78d Mon Sep 17 00:00:00 2001 From: Jason Cho Date: Tue, 28 Jan 2025 10:28:16 -0600 Subject: [PATCH] first commit Signed-off-by: Jason Cho --- Makefile | 14 +++++++------- build/Containerfile-build | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 76337ed..2d6367f 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,18 @@ # This project applies to ppc64le only ARCH ?= ppc64le -REGISTRY ?= quay.io/powercloud +REGISTRY ?= quay.io/jcho0 REPOSITORY ?= power-dra-driver -TAG ?= main +TAG ?= first-test CONTAINER_RUNTIME ?= $(shell command -v podman 2> /dev/null || echo docker) ######################################################################## # Go Targets -.PHONY: build -build: fmt vet - GOOS=linux GOARCH=$(ARCH) go build -o bin/power-dra-driver cmd/power-dra-driver/main.go +#.PHONY: build +#build: fmt vet +# GOOS=linux GOARCH=$(ARCH) go build -o bin/power-dra-driver cmd/power-dra-driver/main.go .PHONY: fmt fmt: @@ -34,7 +34,7 @@ clean: image: build $(CONTAINER_RUNTIME) buildx build \ -t $(REGISTRY)/$(REPOSITORY):$(TAG) \ - --platform linux/$(ARCH) -f build/Containerfile-build . + --platform linux/$(ARCH) -f Dockerfile . .PHONY: push push: @@ -50,4 +50,4 @@ dep-plugin: .PHONY: dep-examples dep-examples: - kustomize build examples | oc apply -f - \ No newline at end of file + kustomize build examples | oc apply -f - diff --git a/build/Containerfile-build b/build/Containerfile-build index 467bae2..86b3f43 100644 --- a/build/Containerfile-build +++ b/build/Containerfile-build @@ -11,7 +11,7 @@ LABEL description="Automate the management and monitoring of addition of specifi RUN microdnf -y update && microdnf clean all WORKDIR / -COPY ./build/entrypoint.sh / -COPY bin/* /opt/power-dev-plugin/bin/ +COPY ./entrypoint.sh / +COPY bin/ /opt/power-dev-plugin/bin/ -ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file +ENTRYPOINT ["/entrypoint.sh"]