We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 94f0764 + c64cf3a commit 80eaf76Copy full SHA for 80eaf76
tests/setup.sh
@@ -2,6 +2,14 @@
2
set -e
3
basedir="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" && pwd )"
4
5
+# Log in dockerhub if possible (to avoid pull limits for unauthenticated uses).
6
+if [ -n "$DOCKER_USER" ] && [ -n "$DOCKER_TOKEN" ]; then
7
+ echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USER" --password-stdin
8
+ echo "Using authenticated connection (no pull limits)"
9
+else
10
+ echo "Using unauthenticated docker (pull limits may apply). Setup DOCKER_USER and DOCKER_TOKEN if needed."
11
+fi
12
+
13
if [ "$SUITE" = "phpunit" ];
14
then
15
initcmd="bin/moodle-docker-compose exec -T webserver php admin/tool/phpunit/cli/init.php"
0 commit comments