Skip to content

Commit 3c66950

Browse files
authored
Update csi-dev.md
1 parent 9a77436 commit 3c66950

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/csi-dev.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,19 @@ $ csc controller delete-snapshot
110110
```console
111111
helm repo index charts --url=https://raw.githubusercontent.com/kubernetes-sigs/blobfuse-csi-driver/master/charts
112112
```
113+
114+
#### How to debug Dockerfile config
115+
- create `blob.Dockerfile` file
116+
```
117+
FROM us.gcr.io/k8s-artifacts-prod/build-image/debian-base-amd64:v2.1.0
118+
RUN apt-get update && clean-install ca-certificates pkg-config libfuse-dev cmake libcurl4-gnutls-dev libgnutls28-dev uuid-dev libgcrypt20-dev wget
119+
# this is a workaround to install nfs-common and don't quit with error
120+
RUN apt update && apt install udev util-linux mount nfs-common -y || true
121+
LABEL maintainers="andyzhangx"
122+
LABEL description="Azure Blob Storage CSI driver"
123+
```
124+
- build image from `blob.Dockerfile`
125+
```console
126+
docker build --no-cache -t andyzhangx/blobnfs:v1 -f ./blob.Dockerfile .
127+
docker run --network host -it andyzhangx/blobnfs:v1 sh
128+
```

0 commit comments

Comments
 (0)