Skip to content

Commit

Permalink
Install efs-utils from github
Browse files Browse the repository at this point in the history
  • Loading branch information
Karthik Basavaraj committed May 4, 2021
1 parent 61e2d92 commit 3b826bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ ENV EFS_CLIENT_SOURCE=$client_source
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} make aws-efs-csi-driver

FROM amazonlinux:2.0.20210219.0
RUN yum install amazon-efs-utils-1.30.1-1.amzn2.noarch -y
#RUN yum install amazon-efs-utils-1.30.1-1.amzn2.noarch -y
# Install efs-utils from github
RUN yum -y install git rpm-build make
RUN git clone https://github.com/aws/efs-utils
RUN cd efs-utils && make rpm && yum -y install build/amazon-efs-utils*rpm

# At image build time, static files installed by efs-utils in the config directory, i.e. CAs file, need
# to be saved in another place so that the other stateful files created at runtime, i.e. private key for
Expand Down
4 changes: 2 additions & 2 deletions pkg/driver/efs_watch_dog.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ port_range_lower_bound = 20049
port_range_upper_bound = 20449
# Optimize read_ahead_kb for Linux 5.4+
optimize_readahead = true
optimize_readahead = false
[mount.cn-north-1]
Expand Down Expand Up @@ -264,7 +264,7 @@ func (w *execWatchdog) runLoop(stopCh <-chan struct{}) {
for {
select {
case <-stopCh:
//klog.Info("stopping...")
klog.Info("stopping...")
break
default:
err := w.exec()
Expand Down

0 comments on commit 3b826bb

Please sign in to comment.