pecl channel-update pecl.php.net
pecl clear-cache
pecl install xdebug
This file contains hidden or 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
| #!/bin/bash | |
| # Example for the Docker Hub V2 API | |
| # Returns all images and tags associated with a Docker Hub organization account. | |
| # Requires 'jq': https://stedolan.github.io/jq/ | |
| export PATH=/tmp/bin:$PATH | |
| if [ ! `which jq` ]; then | |
| mkdir -p /tmp/bin | |
| curl -s -L https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 --output /tmp/bin/jq |
This file contains hidden or 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
| pipeline { | |
| agent { node { label 'swarm-ci' } } | |
| environment { | |
| TEST_PREFIX = "test-IMAGE" | |
| TEST_IMAGE = "${env.TEST_PREFIX}:${env.BUILD_NUMBER}" | |
| TEST_CONTAINER = "${env.TEST_PREFIX}-${env.BUILD_NUMBER}" | |
| REGISTRY_ADDRESS = "my.registry.address.com" | |
| SLACK_CHANNEL = "#deployment-notifications" |
This gist will drive you through creating a Docker 1.12 Swarm cluster (with Swarm mode) on AWS infrastructure.
You need a few things already prepared in order to get started. You need at least Docker 1.12 set up. I was using the stable version of Docker for mac for preparing this guide.
$ docker --version
Docker version 1.12.0, build 8eab29e
You also need Docker machine installed.
This file contains hidden or 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
| services: | |
| gelf.udp.transport: | |
| class: Gelf\Transport\UdpTransport | |
| gelf.publisher: | |
| class: Gelf\Publisher | |
| arguments: [@gelf.udp.transport] | |
| monolog.gelf_handler: | |
| class: Monolog\Handler\GelfHandler | |
| arguments: [@gelf.publisher] | |
This file contains hidden or 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 | |
| // Script to convert Symfony YAML translation files to XLIFF. | |
| // | |
| // Will add a .xliff version of the given file in its directory. | |
| // | |
| // $ php convert.php path/to/MyBundle.en.yml | |
| $file = $argv[1]; |
This file contains hidden or 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
| #!/bin/bash | |
| # | |
| # Carries out a full mysqldump, calls percona-xtrabackup and then | |
| # copies the sql dump, the percona backup and your mysql bin logs | |
| # to S3 using s3cmd http://s3tools.org/s3cmd | |
| # | |
| # TODO: extract out the S3 backup stuff to make it optional, and so | |
| # other s3 programs can replace the s3cmd call. | |
| # TODO: the if [ $? == 0 ] alert blocks should be a function | |
| # TODO: make the if [ $? == 0 ] if [ $? != 0 ] more consistent - test |
This file contains hidden or 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
| imports: | |
| # .... | |
| - { resource: services/session.yml } | |
| framework: | |
| # .... | |
| session: | |
| handler_id: session.handler.memcached |
NewerOlder