File tree Expand file tree Collapse file tree 5 files changed +29
-6
lines changed Expand file tree Collapse file tree 5 files changed +29
-6
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,4 @@ before_install:
11
11
script :
12
12
- sudo -E env "PATH=$PATH" go test -covermode=count -coverprofile=profile.cov ./pkg/...
13
13
- $GOPATH/bin/goveralls -coverprofile=profile.cov -service=travis-ci
14
+ - make container
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ PKG = sigs.k8s.io/blobfuse-csi-driver
16
16
GIT_COMMIT ?= $(shell git rev-parse HEAD)
17
17
REGISTRY ?= andyzhangx
18
18
REGISTRY_NAME ?= $(shell echo $(REGISTRY ) | sed "s/.azurecr.io//g")
19
- IMAGE_NAME = blobfuse-csi
19
+ IMAGE_NAME ? = blobfuse-csi
20
20
IMAGE_VERSION ?= v0.6.0
21
21
# Use a custom version for E2E tests if we are in Prow
22
22
ifdef CI
@@ -90,7 +90,7 @@ blobfuse-windows:
90
90
91
91
.PHONY : container
92
92
container : blobfuse
93
- docker build --no-cache -t $(IMAGE_TAG ) -f ./pkg/blobfuseplugin/Dockerfile .
93
+ docker build --no-cache -t $(IMAGE_TAG ) -f ./pkg/blobfuseplugin/dev. Dockerfile .
94
94
95
95
.PHONY : blobfuse-container
96
96
blobfuse-container :
Original file line number Diff line number Diff line change 36
36
echo " Installing Blobfuse CSI driver, version: $ver ..."
37
37
kubectl apply -f $repo /rbac-csi-blobfuse-controller.yaml
38
38
kubectl apply -f $repo /rbac-csi-blobfuse-node.yaml
39
- kubectl apply -f $repo /csi-blobfuse-controller.yaml
40
39
kubectl apply -f $repo /csi-blobfuse-driver.yaml
40
+ kubectl apply -f $repo /csi-blobfuse-controller.yaml
41
41
kubectl apply -f $repo /csi-blobfuse-node.yaml
42
42
echo ' Blobfuse CSI driver installed successfully.'
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ if [[ "$#" -gt 0 ]]; then
21
21
ver=" $1 "
22
22
fi
23
23
24
- repo=" https://raw.githubusercontent.com/kubernetes-sigs/blobfuse-csi-driver/master /deploy"
24
+ repo=" https://raw.githubusercontent.com/kubernetes-sigs/blobfuse-csi-driver/$ver /deploy"
25
25
if [[ " $# " -gt 1 ]]; then
26
26
if [[ " $2 " == * " local" * ]]; then
27
27
echo " use local deploy"
@@ -30,13 +30,13 @@ if [[ "$#" -gt 1 ]]; then
30
30
fi
31
31
32
32
if [ $ver != " master" ]; then
33
- repo=" $repo /$ver "
33
+ repo=" $repo /$ver "
34
34
fi
35
35
36
36
echo " Uninstalling Blobfuse CSI driver, version: $ver ..."
37
37
kubectl delete -f $repo /csi-blobfuse-controller.yaml --ignore-not-found
38
- kubectl delete -f $repo /csi-blobfuse-driver.yaml --ignore-not-found
39
38
kubectl delete -f $repo /csi-blobfuse-node.yaml --ignore-not-found
39
+ kubectl delete -f $repo /csi-blobfuse-driver.yaml --ignore-not-found
40
40
kubectl delete -f $repo /rbac-csi-blobfuse-controller.yaml --ignore-not-found
41
41
kubectl delete -f $repo /rbac-csi-blobfuse-node.yaml --ignore-not-found
42
42
echo ' Uninstalled Blobfuse CSI driver successfully.'
Original file line number Diff line number Diff line change
1
+ # Copyright 2020 The Kubernetes Authors.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ FROM mcr.microsoft.com/aks/fundamental/base-ubuntu:v0.0.5
16
+ RUN wget -O /tmp/packages-microsoft-prod.deb https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb
17
+ RUN dpkg -i /tmp/packages-microsoft-prod.deb && apt-get update && apt-get install -y ca-certificates pkg-config libfuse-dev cmake libcurl4-gnutls-dev libgnutls28-dev uuid-dev libgcrypt20-dev blobfuse
18
+ LABEL maintainers="andyzhangx"
19
+ LABEL description="Blobfuse CSI Driver"
20
+
21
+ COPY ./_output/blobfuseplugin /blobfuseplugin
22
+ ENTRYPOINT ["/blobfuseplugin" ]
You can’t perform that action at this time.
0 commit comments