This is basically a test of using gist.io as a blogging tool.
Using it might involve some headings and paragraphs.
<?php | |
use WindowsAzure\Blob\Models\ContainerAcl; | |
use WindowsAzure\Blob\Models\PublicAccessType; | |
// after having run a Job to create a thumbnail from our uploaded media item as seen: | |
// http://stackoverflow.com/questions/31070909/how-to-get-a-thumbnail-from-a-video-on-azure-media-services | |
// this asset contains our thumbnails | |
$asset = current($mediaServicesProxy->getJobOutputMediaAssets($job)); |
<VirtualHost *:80> | |
ServerName registry.example.com | |
ServerSignature Off | |
RewriteEngine on | |
RewriteCond %{HTTPS} !=on | |
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [NE,R,L] | |
</VirtualHost> | |
<VirtualHost *:443> |
FROM alpine:3.7 | |
# this is the "app" image, contains PHP-FPM | |
RUN addgroup -g 82 -S www-data && \ | |
adduser -u 82 -H -D -S -G www-data www-data && \ | |
# etc.. | |
# PHP-FPM is setup to run as "www-data" | |
WORKDIR /app |
ARG BUILD_VERSION | |
FROM example.com/app:${BUILD_VERSION} | |
# copy QA tools from a known source | |
COPY --from=jakzal/phpqa:alpine /tools /tools/ | |
COPY --from=jakzal/phpqa:alpine /usr/bin/composer /tools/ | |
RUN apk add --update --no-cache \ | |
curl \ | |
openssl \ |
# syntax=docker/dockerfile:experimental | |
FROM alpine:3.11 AS runtime | |
WORKDIR /app | |
RUN addgroup -g 82 -S www-data && \ | |
adduser -u 82 -H -D -S -G www-data www-data && \ | |
apk add --update --no-cache \ | |
php7 \ | |
php7-ctype \ | |
php7-dom \ | |
php7-iconv \ |
dalibor.karlovic ALL=/usr/bin/tee /etc/pki/ca-trust/source/anchors/mkcert_development_CA*, /usr/bin/rm -f /etc/pki/ca-trust/source/anchors/mkcert_development_CA*, /usr/bin/update-ca-trust extract |
<?php | |
declare(strict_types=1); | |
namespace OpenTelemetry\Contrib\Zipkin; | |
use InvalidArgumentException; | |
use OpenTelemetry\Sdk\Trace; | |
use OpenTelemetry\Trace as API; | |
use Psr\Http\Client\ClientExceptionInterface; |