Supporting Material.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Armakuni\Demo\PhpInserter; | |
use Google\Cloud\PubSub\PubSubClient; | |
class MessageSenderService | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Armakuni\Demo\PhpCounter; | |
use Google\Cloud\Datastore\DatastoreClient; | |
class CounterService | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
docker build -t gcr.io/$(gcloud config get-value project)/simple-example:latest . | |
docker push gcr.io/$(gcloud config get-value project)/simple-example | |
gcloud beta run deploy --image gcr.io/$(gcloud config get-value project)/simple-example:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
docker build -t image-name . | |
docker run -e PORT=8080 -p 8080:8080 -d --name container-name image-name | |
docker logs container-name | |
curl localhost:8080 | |
docker stop container-name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7-apache | |
RUN sed -i 's/80/${PORT}/g' /etc/apache2/sites-available/000-default.conf /etc/apache2/ports.conf | |
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" | |
COPY . /var/www/html | |
RUN chown -R www-data:www-data /var/www/html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from functools import wraps | |
import jaeger_client | |
from flask import current_app | |
from flask_opentracing import FlaskTracer | |
from opentracing_instrumentation.client_hooks import requests, strict_redis, sqlalchemy | |
from opentracing_instrumentation.request_context import RequestContextManager | |
def install_tracer(service_name, flask_app=None): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Develop Current Task | QA Current Task | QA Older Task | Release Current Task | Release Older Task | Release Even Older Task | On Time | |
---|---|---|---|---|---|---|---|
T | T | T | T | T | T | T | |
T | T | T | T | T | F | F | |
T | T | T | T | F | T | F | |
T | T | T | T | F | F | F | |
T | T | T | F | T | T | F | |
T | T | T | F | T | F | F | |
T | T | T | F | F | T | F | |
T | T | T | F | F | F | F | |
T | T | F | T | T | T | F |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Develop | QA | Release | On Time | |
---|---|---|---|---|
T | T | T | T | |
T | T | F | F | |
T | F | T | F | |
T | F | F | F | |
F | T | T | F | |
F | T | F | F | |
F | F | T | F | |
F | F | F | F |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Develop | Release | On Time | |
---|---|---|---|
T | T | T | |
F | T | F | |
T | F | F | |
F | F | F |