Merge pull request #10476 from jsafrane/devel/fedora-nfs-images
Configure lower NFS grace period.
This commit is contained in:
@@ -12,10 +12,9 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
FROM ubuntu:14.04
|
FROM centos
|
||||||
MAINTAINER Jan Safranek, jsafrane@redhat.com
|
MAINTAINER Jan Safranek, jsafrane@redhat.com
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
RUN yum -y install /usr/bin/ps nfs-utils && yum clean all
|
||||||
RUN apt-get update -qq && apt-get install -y nfs-kernel-server -qq
|
|
||||||
RUN mkdir -p /exports
|
RUN mkdir -p /exports
|
||||||
ADD run_nfs.sh /usr/local/bin/
|
ADD run_nfs.sh /usr/local/bin/
|
||||||
ADD index.html /exports/index.html
|
ADD index.html /exports/index.html
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
all: push
|
all: push
|
||||||
|
|
||||||
TAG = 0.2
|
TAG = 0.3
|
||||||
|
|
||||||
container:
|
container:
|
||||||
docker build -t gcr.io/google_containers/volume-nfs . # Build new image and automatically tag it as latest
|
docker build -t gcr.io/google_containers/volume-nfs . # Build new image and automatically tag it as latest
|
||||||
|
@@ -31,7 +31,8 @@ function start()
|
|||||||
/usr/sbin/rpc.mountd -N 2 -N 3 -V 4 -V 4.1
|
/usr/sbin/rpc.mountd -N 2 -N 3 -V 4 -V 4.1
|
||||||
|
|
||||||
/usr/sbin/exportfs -r
|
/usr/sbin/exportfs -r
|
||||||
/usr/sbin/rpc.nfsd -N 2 -N 3 -V 4 -V 4.1 2
|
# -G 10 to reduce grace time to 10 seconds (the lowest allowed)
|
||||||
|
/usr/sbin/rpc.nfsd -G 10 -N 2 -N 3 -V 4 -V 4.1 2
|
||||||
|
|
||||||
echo "NFS started"
|
echo "NFS started"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user