github.com/dmaizel/tests@v0.0.0-20210728163746-cae6a2d9cee8/metrics/storage/fio_dockerfile/init.sh (about)

     1  #!/bin/bash
     2  # Copyright (c) 2018 Intel Corporation
     3  #
     4  # SPDX-License-Identifier: Apache-2.0
     5  
     6  set -e
     7  
     8  TESTDIR=/testdir
     9  
    10  init() {
    11  	# If the testdir does not exist (that likely means has not been mounted as
    12  	# a volume), then create it. If it is not a volume then it should be created
    13  	# on the container root 'writeable overlay' (be that overlayfs, devmapper etc.)
    14  	if [ ! -d ${TESTDIR} ]; then
    15  		mkdir -p ${TESTDIR} || true
    16  	fi
    17  }
    18  
    19  init
    20  echo "Now pausing forever..."
    21  tail -f /dev/null