create-docker-test-server.sh 449 B

1234567891011121314151617
  1. #!/usr/bin/env bash
  2. #This script creates a testable Docker enviroment of the Nextcloud server, and is used by the CI for tests.
  3. CONTAINER_NAME=nextcloud_test
  4. SERVER_PORT=8080
  5. TEST_BRANCH=stable28
  6. SERVER_URL="http://localhost:${SERVER_PORT}"
  7. USER="admin"
  8. docker run --rm -d \
  9. --name $CONTAINER_NAME \
  10. -e SERVER_BRANCH=$TEST_BRANCH \
  11. -p $SERVER_PORT:80 \
  12. ghcr.io/juliushaertl/nextcloud-dev-php80:latest
  13. source ./wait-for-server.sh