container-entrypoint.sh raw

   1  #!/usr/bin/env bash
   2  #
   3  # Copyright (c) The Limenka developers
   4  # Distributed under the MIT software license, see the accompanying
   5  # file COPYING or https://opensource.org/license/mit/.
   6  
   7  export LC_ALL=C
   8  
   9  # Fixes permission issues when there is a container UID/GID mismatch with the owner
  10  # of the mounted limenka src dir.
  11  git config --global --add safe.directory /limenka
  12  
  13  export PATH="/python_build/bin:${PATH}"
  14  export LINT_RUNNER_PATH="/lint_test_runner"
  15  
  16  if [ -z "$1" ]; then
  17    bash -ic "./ci/lint/06_script.sh"
  18  else
  19    exec "$@"
  20  fi
  21