diff --git a/build/Dockerfile b/build/Dockerfile new file mode 100644 index 0000000..830fdfb --- /dev/null +++ b/build/Dockerfile @@ -0,0 +1,4 @@ +FROM docker:18.09.0 +RUN apk add bash curl expect make nano jq +WORKDIR /kopano-docker +CMD ["bash"] diff --git a/build/README.md b/build/README.md new file mode 100644 index 0000000..88be43e --- /dev/null +++ b/build/README.md @@ -0,0 +1,66 @@ +Helper container for systems where build requirements (bash, curl, jq, make) are not available (for example on Synology) + +Run the following command to enter the "build environment" (command may need to be run with `sudo` to work with the `docker` command): + +``` +$ ./run.sh +bash-4.4$ + +``` + +Afterwards you can execute the `setup.sh` script, modify `.env` to your liking and run any make commands: + +``` +bash-4.4# ./setup.sh +Creating an .env file for you +Which tag do you want to use for Kopano Core components? [latest]: +Which tag do you want to use for Kopano WebApp? [latest]: +Which tag do you want to use for Z-Push? [latest]: +Name of the Organisation for LDAP [Kopano Demo]: +FQDN to be used (for reverse proxy) [kopano.demo]: +Email address to use for Lets Encrypt. Use 'self_signed' as your email to create self signed certificates [self_signed]: +Name of the BASE DN for LDAP [dc=kopano,dc=demo]: +LDAP server to be used (defaults to the bundled OpenLDAP) [ldap://ldap:389]: +Timezone to be used [Europe/Berlin.]: +E-Mail Address displayed for the 'postmaster' [postmaster@kopano.demo]: +Name/Address of Database server (defaults to the bundled one) [db]: +Avaliable options: + 1 ) de-at + 2 ) de-ch + 3 ) de-de + 4 ) en + 5 ) en-gb + 6 ) es + 7 ) fr + 8 ) it + 9 ) nl + 10 ) pl-pl +Check language spell support (again to uncheck, ENTER when done): +Avaliable options: + 1 ) contactfax + 2 ) desktopnotifications + 3 ) filepreviewer + 4 ) files + 5 ) filesbackend-smb + 6 ) filesbackend-owncloud + 7 ) folderwidgets + 8 ) gmaps + 9 ) intranet + 10 ) mattermost + 11 ) mdm + 12 ) pimfolder + 13 ) quickitems + 14 ) smime + 15 ) titlecounter + 16 ) webappmanual + 17 ) zdeveloper +Check for additional plugins (again to uncheck, ENTER when done): +Integrate WhatsApp into DeskApp yes/no [no]: + +bash-4.4# make build-all +docker build -t zokradonh/kopano_ssl ssl/ +Sending build context to Docker daemon 4.608kB +[...] +``` + +After exiting the container run `docker-compose up -d`, which will have the images started you previously built. diff --git a/build/run.sh b/build/run.sh new file mode 100755 index 0000000..fa9e8c0 --- /dev/null +++ b/build/run.sh @@ -0,0 +1,8 @@ +#!/bin/sh +docker run \ + --rm -it \ + -u $(id -u ${USER}):$(id -g ${USER}) \ + -v /var/run/docker.sock:/var/run/docker.sock \ + -v ${PWD}/..:/kopano-docker/ \ + $(docker build -q .) +