{ "manifests": { "ajardin/docker-symfony": { "manifest": { "composer-scripts": { "bin/docker-upgrade": "php-script" }, "copy-from-recipe": { "bin/": "%BIN_DIR%/" }, "gitignore": [ "/%BIN_DIR%/docker-upgrade", "/docker/" ], "post-install-output": [ " * Edit the docker/.env file to configure your own settings.", "", " * Edit the docker/nginx/conf.d/custom.conf file to configure your own virtual host.", "", " * To manage the Docker environment from the project directory:", " - If you already have a Makefile in your project, copy the content of the docker/Makefile.sample file at the top of it.", " - If you do not already have a Makefile, the docker/Makefile.sample file will be installed in your project.", "", " * Run make to display the list of available commands.", "", "Documentation: https://github.com/ajardin/docker-symfony/wiki" ] }, "files": { "bin/docker-upgrade": { "contents": [ "#!/usr/bin/env php", "exists(TARGET_DIRECTORY) === false) {", " $filesystem->mkdir(TARGET_DIRECTORY);", "}", "", "/**", " * Mirror the vendor directory with the directory created at the project root", " */", "if ($filesystem->exists(SOURCE_DIRECTORY) === true) {", " $filesystem->mirror(SOURCE_DIRECTORY, TARGET_DIRECTORY, null, ['override' => true]);", "}", "", "/**", " * Define the default environment variables", " */", "if ($filesystem->exists(TARGET_DIRECTORY . '/.env') === false) {", " $filesystem->copy(", " TARGET_DIRECTORY . '/.env.dist',", " TARGET_DIRECTORY . '/.env'", " );", "}", "", "/**", " * Define the default Nginx configuration", " */", "if ($filesystem->exists(TARGET_DIRECTORY . '/nginx/conf.d/custom.conf') === false) {", " $filesystem->copy(", " TARGET_DIRECTORY . '/nginx/conf.d/symfony.conf.dist',", " TARGET_DIRECTORY . '/nginx/conf.d/custom.conf'", " );", "}", "", "/**", " * Copy the default Makefile at the project root", " */", "if ($filesystem->exists('Makefile') === false) {", " $filesystem->copy(", " TARGET_DIRECTORY . '/Makefile.sample',", " 'Makefile'", " );", "}", "" ], "executable": true } }, "ref": "696b4e17945ac6db614b6d09f073ef74c1567cfd" } } }