-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from EmakinaFR/feature/composer
Refactoring of the Composer installation
- Loading branch information
Showing
11 changed files
with
113 additions
and
102 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
DOCKER_PHP_IMAGE=magento2_php_xdebug | ||
DOCKER_MOUNT_POINT=.. | ||
|
||
##### BLACKFIRE | ||
BLACKFIRE_PORT=8707 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
/nginx/servers/* | ||
!/nginx/servers/magento.conf | ||
!/nginx/servers/magento.conf.sample | ||
/.env | ||
/vendor/ | ||
composer.lock |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
# Project specific variables | ||
DOCKER_PATH := ./docker | ||
PROJECT_PATH := /var/www/html | ||
DOCKER_PATH := ./vendor/emakinafr/docker-magento2 | ||
MAKEFILE_DIRECTORY := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) | ||
|
||
# Retrieve the Makefile used to manage the Docker environment | ||
export COMPOSE_FILE := $(DOCKER_PATH)/docker-compose.yml | ||
export COMPOSE_FILE := $(DOCKER_PATH)/docker-compose.yml | ||
include $(DOCKER_PATH)/Makefile |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
require __DIR__ . '/../../../autoload.php'; | ||
|
||
use Symfony\Component\Filesystem\Filesystem; | ||
|
||
const SOURCE_DIRECTORY = 'vendor/emakinafr/docker-magento2'; | ||
const TARGET_DIRECTORY = 'docker/local'; | ||
|
||
$filesystem = new Filesystem(); | ||
|
||
/** | ||
* Create the Docker directory at the project root | ||
*/ | ||
if ($filesystem->exists(TARGET_DIRECTORY) === false) { | ||
$filesystem->mkdir(TARGET_DIRECTORY); | ||
} | ||
|
||
/** | ||
* Define the default environment variables | ||
*/ | ||
$filesystem->copy(SOURCE_DIRECTORY . '/.env.dist', TARGET_DIRECTORY . '/.env.dist'); | ||
|
||
/** | ||
* Define the default Nginx configuration | ||
*/ | ||
$filesystem->copy(SOURCE_DIRECTORY . '/nginx.conf.sample', TARGET_DIRECTORY . '/nginx.conf'); | ||
|
||
/** | ||
* Copy the default Makefile at the project root | ||
*/ | ||
$filesystem->copy(SOURCE_DIRECTORY . '/Makefile.sample', 'Makefile'); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
{ | ||
"name": "emakinafr/docker-magento2", | ||
"description": "Docker environment that meets Magento 2 requirements", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Alexandre Jardin", | ||
"email": "aja@emakina.fr" | ||
} | ||
] | ||
"name": "emakinafr/docker-magento2", | ||
"type": "library", | ||
"description": "Docker environment that meets Magento 2 requirements", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Alexandre Jardin", | ||
"email": "aja@emakina.fr" | ||
} | ||
], | ||
"require": { | ||
"symfony/filesystem": "^3.0 || ^4.0" | ||
}, | ||
"bin": [ | ||
"bin/docker-local-install" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
upstream fastcgi_backend { | ||
server php:9000; | ||
} | ||
|
||
server { | ||
listen 443 ssl http2; | ||
listen [::]:443 ssl http2; | ||
server_name magento.localhost; | ||
|
||
ssl on; | ||
ssl_certificate /etc/nginx/ssl/server.crt; | ||
ssl_certificate_key /etc/nginx/ssl/server.key; | ||
|
||
set $MAGE_ROOT /var/www/html; | ||
set $MAGE_MODE developer; | ||
|
||
include /etc/nginx/conf.d/magento.conf.sample; | ||
} |
This file was deleted.
Oops, something went wrong.