Skip to content

Commit a2082aa

Browse files
Merge pull request #134 from magento/MAGECLOUD-5101
MAGECLOUD-5101: Forward-port 1.0 branch
2 parents 8c524f4 + a346fe9 commit a2082aa

File tree

8 files changed

+37
-17
lines changed

8 files changed

+37
-17
lines changed

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
"ext-json": "*",
1313
"composer/composer": "^1.0",
1414
"composer/semver": "^1.0",
15-
"illuminate/config": "^5.6",
16-
"illuminate/filesystem": "^5.6",
17-
"symfony/config": "^3.4||^4.0",
18-
"symfony/console": "^2.3||^4.0",
19-
"symfony/dependency-injection": "^3.1||^4.0",
15+
"illuminate/config": "^5.5",
16+
"illuminate/filesystem": "^5.5",
17+
"symfony/config": "^4.4",
18+
"symfony/console": "^2.8||^4.0",
19+
"symfony/dependency-injection": "^3.3||^4.3",
2020
"symfony/yaml": "^3.3||^4.0"
2121
},
2222
"require-dev": {

dist/bin/magento-docker

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ USAGE="Magento Cloud Docker
1212
stop stop containers
1313
start start containers
1414
restart restart containers
15-
ece-build build application
16-
ece-deploy deploy application
17-
ece-redeploy re-build and re-deploy application
15+
ece-build run build hooks
16+
ece-deploy run deploy hooks
17+
ece-post-deploy run post-deploy hooks
18+
ece-redeploy run build, deploy, and post-deploy hooks
1819
1920
\033[33mOptions:\033[0m
2021
-h show this help text\n"

images/php/7.1-cli/docker-entrypoint.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,17 @@ fi
3030
# Ensure our Magento directory exists
3131
mkdir -p $MAGENTO_ROOT
3232

33+
CRON_LOG=/var/log/cron.log
34+
3335
if [ ! -z "${CRONTAB}" ]; then
3436
echo "${CRONTAB}" > /etc/cron.d/magento
3537
fi
3638

39+
# Get rsyslog running for cron output
40+
touch $CRON_LOG
41+
echo "cron.* $CRON_LOG" > /etc/rsyslog.d/cron.conf
42+
service rsyslog start
43+
3744
# Configure Sendmail if required
3845
if [ "$ENABLE_SENDMAIL" == "true" ]; then
3946
/etc/init.d/sendmail start

images/php/7.2-cli/docker-entrypoint.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,17 @@ fi
3030
# Ensure our Magento directory exists
3131
mkdir -p $MAGENTO_ROOT
3232

33+
CRON_LOG=/var/log/cron.log
34+
3335
if [ ! -z "${CRONTAB}" ]; then
3436
echo "${CRONTAB}" > /etc/cron.d/magento
3537
fi
3638

39+
# Get rsyslog running for cron output
40+
touch $CRON_LOG
41+
echo "cron.* $CRON_LOG" > /etc/rsyslog.d/cron.conf
42+
service rsyslog start
43+
3744
# Configure Sendmail if required
3845
if [ "$ENABLE_SENDMAIL" == "true" ]; then
3946
/etc/init.d/sendmail start

images/php/7.3-cli/docker-entrypoint.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,17 @@ fi
3030
# Ensure our Magento directory exists
3131
mkdir -p $MAGENTO_ROOT
3232

33+
CRON_LOG=/var/log/cron.log
34+
3335
if [ ! -z "${CRONTAB}" ]; then
3436
echo "${CRONTAB}" > /etc/cron.d/magento
3537
fi
3638

39+
# Get rsyslog running for cron output
40+
touch $CRON_LOG
41+
echo "cron.* $CRON_LOG" > /etc/rsyslog.d/cron.conf
42+
service rsyslog start
43+
3744
# Configure Sendmail if required
3845
if [ "$ENABLE_SENDMAIL" == "true" ]; then
3946
/etc/init.d/sendmail start

images/php/cli/docker-entrypoint.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,17 @@ fi
3030
# Ensure our Magento directory exists
3131
mkdir -p $MAGENTO_ROOT
3232

33+
CRON_LOG=/var/log/cron.log
34+
3335
if [ ! -z "${CRONTAB}" ]; then
3436
echo "${CRONTAB}" > /etc/cron.d/magento
3537
fi
3638

39+
# Get rsyslog running for cron output
40+
touch $CRON_LOG
41+
echo "cron.* $CRON_LOG" > /etc/rsyslog.d/cron.conf
42+
service rsyslog start
43+
3744
# Configure Sendmail if required
3845
if [ "$ENABLE_SENDMAIL" == "true" ]; then
3946
/etc/init.d/sendmail start

src/Compose/BuilderInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ interface BuilderInterface
5353
public const VOLUME_MAGENTO_MEDIA = 'magento-media';
5454
public const VOLUME_MAGENTO_DB = 'magento-db';
5555
public const VOLUME_MAGENTO_DEV = 'magento-dev';
56-
public const VOLUME_DOCKER_TMP = 'docker-tmp';
5756
public const VOLUME_DOCKER_MNT = 'docker-mnt';
5857

5958
/**

src/Compose/ProductionBuilder.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,6 @@ public function build(Repository $config): Manager
174174
}
175175

176176
if ($this->getMountVolumes($config)) {
177-
$volumes[self::VOLUME_DOCKER_TMP] = [
178-
'driver_opts' => [
179-
'type' => 'none',
180-
'device' => $rootPath . '/.docker/tmp',
181-
'o' => 'bind'
182-
]
183-
];
184177
$volumes[self::VOLUME_DOCKER_MNT] = [
185178
'driver_opts' => [
186179
'type' => 'none',
@@ -532,7 +525,6 @@ private function getMountVolumes(Repository $config): array
532525

533526
return [
534527
self::VOLUME_DOCKER_MNT . ':/mnt',
535-
self::VOLUME_DOCKER_TMP . ':/tmp'
536528
];
537529
}
538530
}

0 commit comments

Comments
 (0)