Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Latest commit

 

History

History
25 lines (19 loc) · 1.7 KB

README.md

File metadata and controls

25 lines (19 loc) · 1.7 KB

Creating a Custom Build of zm-docker

This container facilitates the production of a custom build of the Zimbra software that can then be used to build zm-docker.

Customize the Build Configuration (optional)

./config/config.build contains all the flags that will be used to customize the execution of the build process. For the most part you have to reference the zm-build/build.pl at develop file to understand what flags are available.

Produce a new build of Zimbra FOSS

  • Copy an SSH keypair that you have registered with GitHub to zm-docker/build/config/DOT-ssh/. This will allow to checkout the repositories required to build the Zimbra packages.

  • Once you have all your SSH keys in place and customized your config.build make sure your CWD is ./zm-docker

  • Run make compile. Compiling all Zimbra artifacts takes some time

    • NOTE: if you SSH key has a passphrase, then you will promted to type it

      Enter passphrase for `{your SSH key}`:
      
  • If all goes well you can find the produced build into the zm-docker/BUILDS directory

  • After the build completes successfully a symbolic link is generated zm-docker/BUILDS/latest that points at the most recently produced build.

Build zm-docker containers using the new build of Zimbra FOSS

  • Make sure your CWD is zm-docker
  • Run make clean
    • If this step fails with a message that this node is not a swarm manager, then issue the command docker swarm init and repeat the make clean command.
  • Run make compile to compile the Zimbra FOSS software
  • Run make build-all to build the zm-docker Docker containers
  • Run make up to start the Docker containers using Docker Swarm