docker-start.sh 536 B

1234567891011121314151617181920212223
  1. #! /bin/bash
  2. set -e
  3. SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
  4. ROOT_DIR="$( dirname "$SCRIPT_DIR" )"
  5. cd "$ROOT_DIR"
  6. echo "Pagure Env: $ROOT_DIR/lcl"
  7. mkdir -p lcl/{repos,remotes,attachments,releases}
  8. docker image build -f dev/containers/base -t pagure-base .
  9. COMPOSE=docker-compose
  10. if ! command -v "$COMPOSE" &> /dev/null
  11. then
  12. echo "docker-compose not found, trying podman-compose.."
  13. COMPOSE=podman-compose
  14. fi
  15. "$COMPOSE" -f dev/docker-compose.yml build
  16. "$COMPOSE" -f dev/docker-compose.yml up