Skip to content

Commit 8d5e3ff

Browse files
committed
Enable to start services.
1 parent b3cb688 commit 8d5e3ff

4 files changed

Lines changed: 13 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
### Added
10+
11+
* Enable to start service via.
12+
* e.g. DOCKER\_MT\_SERVICES=postfix
13+
914
### Fixed
1015

1116
* Also watch the plugin directory specified by REPO.

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ DOCKER_MYSQL_IMAGE=${DB}
2323
endif
2424

2525
export DOCKER_MT_IMAGE
26+
export DOCKER_MT_SERVICES
2627
export DOCKER_HTTPD_IMAGE
2728
export DOCKER_MYSQL_IMAGE
2829
export DOCKER_MEMCACHED_IMAGE

mt/common.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ services:
88
environment:
99
NLS_LANG: ${NLS_LANG:-Japanese_Japan.UTF8}
1010
MT_DEV_UPDATE_BRANCH: ${UPDATE_BRANCH:-yes}
11+
DOCKER_MT_SERVICES: ${DOCKER_MT_SERVICES}
1112
volumes:
1213
- "..:/mt-dev"
1314
- "${MT_HOME_PATH:-../../movabletype}:/var/www/cgi-bin/mt"

mt/docker-entrypoint.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/bin/sh
22

3+
if [ -n "$DOCKER_MT_SERVICES" ]; then
4+
for s in $DOCKER_MT_SERVICES; do
5+
service $s start
6+
done
7+
fi
8+
39
chmod 777 /var/www/html
410
chmod 777 /var/www/cgi-bin/mt/mt-static/support
511
chmod 777 /var/www/cgi-bin/mt/themes

0 commit comments

Comments
 (0)