mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 18:53:35 +00:00
Fresh dep ensure
This commit is contained in:
3
vendor/k8s.io/kubernetes/test/images/volume/gluster/BASEIMAGE
generated
vendored
Normal file
3
vendor/k8s.io/kubernetes/test/images/volume/gluster/BASEIMAGE
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
amd64=fedora:28
|
||||
arm64=arm64v8/fedora:28
|
||||
ppc64le=ppc64le/fedora:28
|
27
vendor/k8s.io/kubernetes/test/images/volume/gluster/Dockerfile
generated
vendored
Normal file
27
vendor/k8s.io/kubernetes/test/images/volume/gluster/Dockerfile
generated
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
# Copyright 2016 The Kubernetes Authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
FROM BASEIMAGE
|
||||
|
||||
CROSS_BUILD_COPY qemu-QEMUARCH-static /usr/bin/
|
||||
|
||||
RUN yum -y install hostname glusterfs-server && yum clean all
|
||||
ADD glusterd.vol /etc/glusterfs/
|
||||
ADD run_gluster.sh /usr/local/bin/
|
||||
ADD index.html /vol/
|
||||
RUN chmod 644 /vol/index.html
|
||||
|
||||
EXPOSE 24007/tcp 49152/tcp
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/run_gluster.sh"]
|
8
vendor/k8s.io/kubernetes/test/images/volume/gluster/README.md
generated
vendored
Normal file
8
vendor/k8s.io/kubernetes/test/images/volume/gluster/README.md
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
# Gluster server container for testing
|
||||
|
||||
This container exports test_vol volume with an index.html inside.
|
||||
|
||||
Used by test/e2e/* to test GlusterfsVolumeSource. Not for production use!
|
||||
|
||||
|
||||
[]()
|
1
vendor/k8s.io/kubernetes/test/images/volume/gluster/VERSION
generated
vendored
Normal file
1
vendor/k8s.io/kubernetes/test/images/volume/gluster/VERSION
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
1.0
|
14
vendor/k8s.io/kubernetes/test/images/volume/gluster/glusterd.vol
generated
vendored
Normal file
14
vendor/k8s.io/kubernetes/test/images/volume/gluster/glusterd.vol
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
# This is default glusterd.vol (incl. commented out base-port),
|
||||
# with added "rpc-auth-allow-insecure on" to allow connection
|
||||
# from non-privileged ports.
|
||||
|
||||
volume management
|
||||
type mgmt/glusterd
|
||||
option working-directory /var/lib/glusterd
|
||||
option transport-type socket,rdma
|
||||
option transport.socket.keepalive-time 10
|
||||
option transport.socket.keepalive-interval 2
|
||||
option transport.socket.read-fail-log off
|
||||
# option base-port 49152
|
||||
option rpc-auth-allow-insecure on
|
||||
end-volume
|
1
vendor/k8s.io/kubernetes/test/images/volume/gluster/index.html
generated
vendored
Normal file
1
vendor/k8s.io/kubernetes/test/images/volume/gluster/index.html
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
Hello from GlusterFS!
|
46
vendor/k8s.io/kubernetes/test/images/volume/gluster/run_gluster.sh
generated
vendored
Executable file
46
vendor/k8s.io/kubernetes/test/images/volume/gluster/run_gluster.sh
generated
vendored
Executable file
@ -0,0 +1,46 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright 2015 The Kubernetes Authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
DIR=`mktemp -d`
|
||||
|
||||
function start()
|
||||
{
|
||||
mount -t tmpfs test $DIR
|
||||
chmod 755 $DIR
|
||||
cp /vol/* $DIR/
|
||||
/usr/sbin/glusterd -p /run/glusterd.pid
|
||||
gluster volume create test_vol `hostname -i`:$DIR force
|
||||
gluster volume start test_vol
|
||||
}
|
||||
|
||||
function stop()
|
||||
{
|
||||
gluster --mode=script volume stop test_vol force
|
||||
kill $(cat /run/glusterd.pid)
|
||||
umount $DIR
|
||||
rm -rf $DIR
|
||||
exit 0
|
||||
}
|
||||
|
||||
|
||||
trap stop TERM
|
||||
|
||||
start "$@"
|
||||
|
||||
while true; do
|
||||
sleep 5
|
||||
done
|
||||
|
Reference in New Issue
Block a user