2017 © Pedro Peláez
 

library debug-log-uploader

Keboola Debug Log Uploader

image

keboola/debug-log-uploader

Keboola Debug Log Uploader

  • Wednesday, March 1, 2017
  • by Keboola
  • Repository
  • 10 Watchers
  • 1 Stars
  • 10,199 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 6 % Grown

The README.md

Debug Log Uploader

Build Status Latest Stable Version Total Downloads License, (*1)

Simple package for uploading logs to AWS S3, Azure Blob Storage or local filesystem., (*2)

Development

Create Azure resources

Use the provided azure-services.json to create ARM stack:, (*3)

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., (*4)

Create GCP resources

Using terraform:, (*5)

cd provisioning/gcp
terraform init
terraform apply
# set name_prefix (ci for github action)
# set UPLOADER_GCS_BUCKET env
# Go to the `https://console.cloud.google.com/iam-admin/serviceaccounts?project=gcp-dev-353411` (or your default project) and find your service account
(`<name_prefix>-debug-log-uploader@...`)
# In the table click on action and choose `Manage keys` (or click on service name and go to the detail and then choose `keys`)
# Click on `ADD KEY` => `Create new key` and select key type `JSON` then click `CREATE`
# convert key to string and save to `.env` file: `awk -v RS= '{$1=$1}1' <key_file>.json >> .env`
# set content on the last line of `.env` as variable `UPLOADER_GCS_BUCKET_KEY`

Create .env file

Create .env file (from .env.dist) with your environment variables:, (*6)

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:, (*7)

docker-compose run --rm php sh -c 'composer install && bash'

Tests

Execute tests.sh script which contains phpunit and related commands., (*8)

In running container:, (*9)

./tests.sh

From outside:, (*10)

docker-compose run --rm php sh -c 'composer install && ./tests.sh'

License

MIT licensed, see LICENSE file., (*11)

The Versions

01/03 2017

dev-master

9999999-dev

Keboola Debug Log Uploader

  Sources   Download

MIT

The Requires

 

The Development Requires

debug log file s3 uploader keboola

01/03 2017

v2.0.0

2.0.0.0

Keboola Debug Log Uploader

  Sources   Download

MIT

The Requires

 

The Development Requires

debug log file s3 uploader keboola

16/01 2017

v1.1.0

1.1.0.0

Keboola Debug Log Uploader

  Sources   Download

MIT

The Requires

 

The Development Requires

debug log file s3 uploader keboola

04/11 2016

v1.0.0

1.0.0.0

Keboola Debug Log Uploader

  Sources   Download

MIT

The Requires

 

The Development Requires

debug log file s3 uploader keboola

04/11 2016

v0.4.0

0.4.0.0

Keboola Debug Log Uploader

  Sources   Download

MIT

The Requires

 

The Development Requires

debug log file s3 uploader keboola

26/07 2016

v0.3.1

0.3.1.0

Keboola Debug Log Uploader

  Sources   Download

MIT

The Requires

 

The Development Requires

debug log file s3 uploader keboola

25/07 2016

v0.3.0

0.3.0.0

Keboola Debug Log Uploader

  Sources   Download

MIT

The Requires

 

The Development Requires

debug log file s3 uploader keboola

25/07 2016

v0.2.2

0.2.2.0

Keboola Debug Log Uploader

  Sources   Download

MIT

The Requires

 

The Development Requires

debug log file s3 uploader keboola

25/07 2016

v0.2.1

0.2.1.0

Keboola Debug Log Uploader

  Sources   Download

MIT

The Requires

 

The Development Requires

debug log file s3 uploader keboola

20/07 2016

v0.2.0

0.2.0.0

Keboola Debug Log Uploader

  Sources   Download

MIT

The Requires

 

The Development Requires

debug log file s3 uploader keboola

20/07 2016

v0.1.0

0.1.0.0

Keboola Debug Log Uploader

  Sources   Download

The Requires

 

The Development Requires

debug log file s3 uploader keboola