README
Usage
An example of usage is provided with docker-compose
:
# Override docker-compose
cat > docker-compose.override.yml << "EOF"
version: '2.3'
services:
master:
environment:
- 'PHPCI_DB_PASSWORD=${PHPCI_DB_PASSWORD}'
ports:
- '80:80'
mysql:
environment:
- 'MYSQL_PASSWORD=${PHPCI_DB_PASSWORD}'
- 'MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}'
worker:
environment:
- 'PHPCI_DB_PASSWORD=${PHPCI_DB_PASSWORD}'
EOF
# Prepare the system
export MYSQL_ROOT_PASSWORD="96bb5db7-0f0f-4758-af6f-c8dd4a9fe058"
export PHPCI_DB_PASSWORD="6e737f0e-8641-4894-8d74-87d161841bc6"
# Start the project
docker-compose up -d
# Create an admin
docker-compose exec --user www-data master php /opt/phpci/console phpci:create-admin
# Increase (or decrease) the number of workers
docker-compose scale worker=2
# Go to the URL "localhost"
Note: Don't forget to change the MySQL password. Use bin/generate-secret
if you want to generate a strong token.