console 316 B

123456789101112
  1. #!/bin/bash
  2. DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
  3. export HOST_UID="$(id -u)"
  4. export HOST_GID="$(id -g)"
  5. if [[ "${1}" == "down" ]]; then
  6. docker-compose -f "${DIR}/../docker-compose.yaml" down
  7. exit 0
  8. else
  9. docker-compose -f "${DIR}/../docker-compose.yaml" run --rm pgcat-shell
  10. fi