keboola / debug-log-uploader
Keboola Debug Log Uploader
Installs: 36 353
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 12
Forks: 0
Open Issues: 0
Requires
- php: ~5.6|~7.0
- aws/aws-sdk-php: ~3.0
- microsoft/azure-storage-blob: ~1.5
- symfony/filesystem: ~2.3|~3.0|^4.0
- zendframework/zend-json: ~3.0
Requires (Dev)
- codeclimate/php-test-reporter: ~0.3
- phpunit/phpunit: ~5.3
- squizlabs/php_codesniffer: ~2.6
README
Simple package for uploading logs to AWS S3, Azure Blob Storage or local filesystem.
Development
Create Azure resources
Use the provided azure-services.json
to create ARM stack:
export RESOURCE_GROUP=testing-debug-log-uploader
az group create --name $RESOURCE_GROUP --location "East US"
az deployment group create \
--resource-group $RESOURCE_GROUP \
--name debug-log-uploader \
--template-file ./azure-services.json \
--query "properties.outputs"
Go to the Azure Portal - Storage Account - Access Keys and copy connection string.
Create .env file
Create .env
file (from .env.dist
) with your environment variables:
UPLOADER_AWS_KEY=your_key
UPLOADER_AWS_SECRET=your_secret
UPLOADER_AWS_REGION=your_region
UPLOADER_S3_BUCKET=your_s3_bucket
UPLOADER_ABS_CONNECTION_STRING=
UPLOADER_ABS_CONTAINER=
Start container, install dependencies:
docker-compose run --rm php sh -c 'composer install && bash'
Tests
Execute tests.sh
script which contains phpunit
and related commands.
In running container:
./tests.sh
From outside:
docker-compose run --rm php sh -c 'composer install && ./tests.sh'
License
MIT licensed, see LICENSE file.