Auto build docker image for Zentao PMS with upgrade ability.
4.5K
Auto build docker image for zentao(禅道),include open source edition and pro edition.
DockerHub: https://hub.docker.com/r/zhangsean/zentao
Office Support: http://www.zentao.net/
Open soure edition
latest15.0.315.0.215.0.115.012.5.320.0.beta112.5.112.4.312.4.212.4.112.3.312.3.212.3.112.312.212.112.0.112.011.711.611.5Export zentao only:
mkdir -p /data/zbox && \
docker run -itd \
-p 80:80 \
-e ADMINER_USER="root" \
-e ADMINER_PASSWD="password" \
-v /data/zbox/:/opt/zbox/ \
--add-host smtp.exmail.qq.com:163.177.90.125 \
--name zentao-server \
zhangsean/zentao:latest
Export zentao and mysql:
mkdir -p /data/zbox && \
docker run -itd \
-p 80:80 \
-p 3306:3306 \
-e BIND_ADDRESS=false \
-e ADMINER_USER="root" \
-e ADMINER_PASSWD="password" \
-v /data/zbox/:/opt/zbox/ \
--add-host smtp.exmail.qq.com:163.177.90.125 \
--name zentao-server \
zhangsean/zentao:latest
Note: Make sure your host feed available on either port
80or3306.
ADMINER_USER : set the web login database Adminer account.ADMINER_PASSWD : set the web login database Adminer password.BIND_ADDRESS : if set value with false,the MySQL server will not bind address.extra_host in docker-compose.yaml, or param --add-host in dokcer run command.Note: The Zentao administrator account is admin,and default initialization password is 123456. And MySQL root account password is 123456,please change password when you first login.
If you want upgrade the zentao version, just run a container with the latest docker image and mount the same zbox path
$volume/zbox/.
# stop and backup old container
docker stop zentao-server
docker rename zentao-server zentao-server-bak
# backup zbox
cp -r /data/zbox /data/zbox-bak
# pull the latest image
docker pull zhangsean/zentao:latest
# run new container with the latest image and mount the same path
docker run -d -p 80:80 -p 3306:3306 \
-e ADMINER_USER="root" -e ADMINER_PASSWD="password" \
-e BIND_ADDRESS="false" \
-v /data/zbox/:/opt/zbox/ \
--add-host smtp.exmail.qq.com:163.177.90.125 \
--name zentao-server \
zhangsean/zentao:latest
docker logs -f zentao-server
You will see the upgrading process logs like following.
Installed Zentao version: 11.0
New Zentao version: 11.4
Backuping config/my.php and upload ...
Upgrading Zentao ...
Restoring config/my.php and upload ...
Upgraded Zentao version to: 11.4
Please visit your Zentao website to complete the upgrade task.
Start Apache success
Start Mysql success
Wait until Start Mysql success, visit your zentao website to complete the upgrade task step by step.
After you complete the upgrade task in your zentao website and confirm everything looks good, delete the backups to save your disk space.docker rm -f zentao-server-bak && rm -rf /data/zbox-bak
Clone this repo, modify Dockerfile or docker-entrypoint if you want.
Then execute the following command:
docker build -t zentao .
Content type
Image
Digest
sha256:69b00671e…
Size
224.6 MB
Last updated
about 3 years ago
docker pull zhangsean/zentao