1
0
mirror of https://github.com/zokradonh/kopano-docker synced 2025-06-07 16:06:14 +00:00

add a minimal build environment (#71)

* add a minimal build environment for systems where tools like make are not easily available
This commit is contained in:
Felix Bartels 2019-01-08 21:16:45 +01:00 committed by GitHub
parent f5ee74f58a
commit d2b6952f8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 78 additions and 0 deletions

4
build/Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM docker:18.09.0
RUN apk add bash curl expect make nano jq
WORKDIR /kopano-docker
CMD ["bash"]

66
build/README.md Normal file
View File

@ -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.

8
build/run.sh Executable file
View File

@ -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 .)