This container facilitates the production of a custom build of the Zimbra software that can then be used to build zm-docker
.
./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.
-
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 yourconfig.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 itEnter 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.
- 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 themake clean
command.
- If this step fails with a message that this node is not a swarm manager, then issue the 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