From ea11478084ab5b030d433d3dc79f0bb277854eb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A1n=20Del=20Valle?= Date: Wed, 24 Nov 2021 14:02:27 -0800 Subject: [PATCH] Changes the name of the files created in order to disambiguate. Updates Dockerfile to reflect the change. --- Dockerfile | 4 ++-- Makefile | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2750697..fdcb30a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,5 +4,5 @@ LABEL description="Katbox Driver" # Add util-linux to get a new version of losetup. RUN apk add util-linux -COPY ./bin/katboxplugin /katboxplugin -ENTRYPOINT ["/katboxplugin"] +COPY ./bin/katbox-driver /katbox-driver +ENTRYPOINT ["/katbox-driver"] diff --git a/Makefile b/Makefile index 945cf7c..669471b 100644 --- a/Makefile +++ b/Makefile @@ -23,16 +23,19 @@ clean: -rm -rf bin build: - CGO_ENABLED=0 GOOS="linux" GOARCH="amd64" go build -a -ldflags '-X main.version=$(REV) -extldflags "-static"' -o ./bin/katboxplugin ./cmd/katboxplugin/main.go + CGO_ENABLED=0 GOOS="linux" GOARCH="amd64" go build -a -ldflags '-X main.version=$(REV) -extldflags "-static"' -o ./bin/katbox-driver ./cmd/katboxplugin/main.go + +build-stream: + CGO_ENABLED=0 GOOS="linux" GOARCH="amd64" go build -o ./bin/katbox-stream ./stream/main.go docker-build-katbox: - docker build . --tag quay.io/katbox/katboxplugin:${VERSION} --no-cache + docker build . --tag quay.io/katbox/katboxplugin:${VERSION} --no-cache docker-push-katbox: docker push quay.io/katbox/katboxplugin:${VERSION} docker-build-stream: - docker build ./stream --tag quay.io/katbox/stream:${VERSION} --no-cache + docker build . -f ./stream/Dockerfile --tag quay.io/katbox/stream:${VERSION} --no-cache docker-push-stream: docker push quay.io/katbox/stream:${VERSION}