echo '.docker' >> ~/.gitignore_global
echo 'alias docker-compose-bundled="docker-compose --env-file .docker/.env"' >> ~/.bash_profile
Leave cache and logs out of synchronize with host machine and we have zero cost overhead when cache has been recalculated
PROJECT_NAME=my-project-name
# for linux
Usage example for the adrenalinkin/swagger-resolver-bundle.
Example assumes you will use Symfony 4 with NelmioApiDocBundle as Swagger wrap.
Note: Feel free to connect with me by email [email protected] or in Telegramm @adrenaL1nkin.
Install docker for mac.
Edit /etc/nfs.conf
:
nfs.server.mount.require_resv_port = 0
Edit /etc/exports
(create if not exist):
Execute command and Put result of command execution into /etc/exports
.:
We have some DTO which implements DtoResolverInterface
:
interface DtoResolverInterface
{
/**
* Inject custom resolver
*
* @param OptionsResolver $resolver
*/
public function injectResolver(OptionsResolver $resolver);
#!/bin/bash | |
set -e | |
RES=$(echo -en '\033[0m') | |
RED=$(echo -en '\033[00;31m') | |
GREEN=$(echo -en '\033[00;32m') | |
YELLOW=$(echo -en '\033[00;33m') | |
root=$PWD |
<?php | |
// main deployment commands registration | |
$commands = [ | |
'git pull', | |
'git status', | |
'rm -rf app/cache/*', | |
'export SYMFONY_ENV=prod; export HOME=~; php composer.phar install', | |
'php app/console doctrine:migration:migrate -n', | |
]; |