Skip to content

idoop/zentao

Repository files navigation

Docker Image for Zentao

Docker Build Status Docker Automated build Docker Pulls Docker Stars ImageLayers Size GitHub stars

Auto build docker image for zentao(禅道),include open source edition and pro edition.

DockerHub:https://hub.docker.com/r/idoop/zentao/

Office Support:http://www.zentao.net/

Tags

Open soure edition

  • 18.1,18.2,18.3,18.4,18.5,18.6,18.7,18.8,18.9,latest
  • 17.0,17.1,17.2,17.3,17.4,17.5,17.6,17.6.1
  • 16.0,16.1,16.2,16.3,16.4,16.5
  • 15.2,15.3,15.4,15.5,15.6,15.7,15.7.1
  • 15.0.1, 15.0.2,15.0.3,15.2
  • 12.0, 12.0.1, 12.3, 12.3.2, 12.4.4, 12.5.3
  • 11.3, 11.4.1, 11.5.1, 11.6, 11.6.1, 11.6.5, 11.7
  • 10.0,10.1,10.3,10.4,10.5,10.6
  • 9.6.3,9.7,9.8,9.8.3

Pro edition

  • pro-8.7.1,pro
  • pro-8.2,pro-8.3,pro-8.4,pro-8.5.1,pro-8.5.3
  • pro-7.1,pro-7.3,pro-7.5.1
  • pro-6.7.3

QuickStart

open soure edition:

mkdir -p /data/zbox && \
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 \
        idoop/zentao:latest

pro edition:

mkdir -p /data/zbox && \
docker run -d -p 80:80 -p 3306:3306 \
        -e USER="root" -e PASSWD="password" \
        -e BIND_ADDRESS="false" \
        -v /data/zbox/:/opt/zbox/ \
        --add-host smtp.exmail.qq.com:163.177.90.125 \
        --name zentao-server-pro \
        idoop/zentao:pro

Note: Make sure your Host feed available on either port 80 or 3306.

Environment configuration

  • ADMINER_USER : set the database Adminer account.
  • ADMINER_PASSWD : set the database Adminer password.
  • BIND_ADDRESS : if set value with false,the MySQL server will not bind address.
  • SMTP_HOST : set the smtp server IP and host.(If can't send mail,it will be helpful.) Can also use extra_host in docker-compose.yaml,or use param --add-host when use dokcer run command.

Note: The Zentao web login administrator account is admin,and default initialization password is 123456. And MySQL root account password is 123456,please change password when you first login.

Upgrade Version

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 idoop/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 \
        idoop/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.
ZBOX是Apache、Mysql、PHP的精简的集成环境。使用时,需要将其解压到/opt目录。

/opt/zbox/zbox -h     可以获取帮助
/opt/zbox/zbox start  启动脚本

Mysql 用户名root,密码为123456。

更多可以访问http://www.zentao.net/goto.php?item=zbox.
Start Apache success
Start Mysql success
Start xxd success

Wait until Start xxd 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

See Detail

Building the image

Clone this repo, modify Dockerfile or docker-entrypoint if you want. Then execute the following command:

docker build -t zentao .

FAQ

upgrade or auto remove plugins when restart?

added ZENTAO_VER env when u startup (e.g. -e ZENTAO_VER="12.3.stable", because Dockerfile's ZENTAO_VER (that is 12.3.2) not eq cat /opt/zbox/app/zentao/VERSION (that is 12.3.stable ))

docker run -d -p 80:80 -p 3306:3306 \
        -e ADMINER_USER="root" -e ADMINER_PASSWD="password" \
        -e BIND_ADDRESS="false" \
        -e ZENTAO_VER="12.3.stable" \
        -v /data/zbox/:/opt/zbox/ \
        --add-host smtp.exmail.qq.com:163.177.90.125 \
        --name zentao-server \
        idoop/zentao:latest

About

auto build docker image for zentao(禅道).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •