Skip to content

Commit

Permalink
test: add blobfuse-proxy build and verification test
Browse files Browse the repository at this point in the history
add sudo
  • Loading branch information
andyzhangx committed Oct 7, 2021
1 parent cae76c1 commit 8505646
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
run: |
export PATH=$PATH:$HOME/.local/bin
make blobfuse-proxy
sudo dpkg -i pkg/blobfuse-proxy/debpackage.deb
- name: Get code coverage
env:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,5 @@ cscope.*
/bazel-*
*.pyc
profile.cov

pkg/blobfuse-proxy/debpackage/usr/
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ delete-metrics-svc:

.PHONY: blobfuse-proxy
blobfuse-proxy:
CGO_ENABLED=0 GOOS=linux go build -mod vendor -ldflags="-s -w" -o _output/blobfuse-proxy ./pkg/blobfuse-proxy
mkdir -p ./pkg/blobfuse-proxy/debpackage/usr/bin/
CGO_ENABLED=0 GOOS=linux go build -mod vendor -ldflags="-s -w" -o ./pkg/blobfuse-proxy/debpackage/usr/bin/blobfuse-proxy ./pkg/blobfuse-proxy
dpkg-deb --build pkg/blobfuse-proxy/debpackage

.PHONY: blobfuse-proxy-container
blobfuse-proxy-container:
Expand Down
4 changes: 2 additions & 2 deletions pkg/blobfuse-proxy/debpackage/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: blobfuse-proxy
Version: 0.1.0
Version: 0.1.1
Section: base
Priority: optional
Architecture: all
Maintainer: Blob CSI driver maintainers
Description: runs blobfuse as a proxy
Description: blobfuse proxy

0 comments on commit 8505646

Please sign in to comment.