This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/tests/docker-init.sh

12 lines
402 B
Bash

#!/bin/sh
groupadd -g $GID shimmie || true
useradd -ms /bin/bash -u $UID -g $GID shimmie
mkdir -p /app/data
chown $UID:$GID /app/data
export PHP_CLI_SERVER_WORKERS=8
exec gosu shimmie:shimmie \
/usr/bin/php \
-d upload_max_filesize=$UPLOAD_MAX_FILESIZE \
-d post_max_size=$UPLOAD_MAX_FILESIZE \
-S 0.0.0.0:8000 \
tests/router.php 2>&1 | grep --line-buffered -vE " (Accepted|Closing)"