Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Cho <[email protected]>
  • Loading branch information
jcho02 committed Jan 28, 2025
1 parent dcd151a commit 903cf13
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand All @@ -50,4 +50,4 @@ dep-plugin:

.PHONY: dep-examples
dep-examples:
kustomize build examples | oc apply -f -
kustomize build examples | oc apply -f -
6 changes: 3 additions & 3 deletions build/Containerfile-build
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
ENTRYPOINT ["/entrypoint.sh"]

0 comments on commit 903cf13

Please sign in to comment.