Changes the name of the files created in order to disambiguate. Updates Dockerfile to reflect the change.

This commit is contained in:
Renán Del Valle 2021-11-24 14:02:27 -08:00
parent 60c46865d4
commit ea11478084
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9
2 changed files with 8 additions and 5 deletions

View file

@ -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"]

View file

@ -23,7 +23,10 @@ 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
@ -32,7 +35,7 @@ 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}