这是一个docker镜像,它主要用于php job服务
项目根目录(即/var/www/html目录)包含cron.json格式如下:
{
"hook": "",
"post": 0,
"jobs": [
{
"time": "* * * * *",
"value": "echo hello"
},
{
"time": "*/10 * * * *",
"value": "php $APP_PATH/think module/controller/action"
}
]
}
说明:
一定要把php标准错误输出打开,否则无法捕捉到crontab错误php $APP_PATH/init.shPHP 7.2.8 (cli) (built: Jul 28 2018 17:55:09) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.8, Copyright (c) 1999-2018, by Zend Technologies
[PHP Modules]
amqp
apcu
bcmath
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gmp
hash
iconv
intl
json
libxml
mbstring
memcached
mongodb
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_pgsql
Phar
posix
readline
redis
Reflection
session
SimpleXML
soap
sodium
SPL
standard
tokenizer
xml
xmlreader
xmlwriter
xsl
yaf
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
Content type
Image
Digest
Size
41.1 MB
Last updated
about 8 years ago
docker pull lin2798003/apc