1
0
mirror of https://github.com/zokradonh/kopano-docker synced 2025-06-06 15:36:40 +00:00

118 Commits

Author SHA1 Message Date
Martin Hoffmann
b638f48011
Fixes z-hub repo (#486)
* Update Makefile

* Updates Readme with new z-hub repo

Repo changed: https://kopano.com/z-push/z-push-new-urls-for-repositories-and-wiki/

* Updates setup.sh with new z-hub repo

Repo changed: https://kopano.com/z-push/z-push-new-urls-for-repositories-and-wiki/

* Updates version.sh

Repo changed: https://kopano.com/z-push/z-push-new-urls-for-repositories-and-wiki/

* Update setup.sh

* Update README.md

* Update Dockerfile
2021-09-02 09:43:06 +02:00
Felix Bartels
d3ef8b472a
enhance example for installing plugins at build time (#458)
* enhance example for installing plugins at build time

Relates to https://github.com/zokradonh/kopano-docker/issues/457

* do not always rebuild the webapp base when building the webapp plugins image
documentation
2020-09-26 15:44:26 +02:00
Felix Bartels
08100a3b80 publish kwmbridge container
Signed-off-by: Felix Bartels <felix@host-consultants.de>
2020-09-23 09:34:25 +02:00
Felix Bartels
8432396059
prepare changes to run kdav through kweb as well (#424)
* prepare changes to run kdav through kweb as well
* add kdav configuration
* add remaining kdav configuration for kweb
* import remaining kweb/php-fpm config from https://stash.kopano.io/projects/PKG/repos/kopano-one-php-fpm/browse
2020-09-15 11:33:08 +02:00
Felix Bartels
62e175b3ff
simplify help command in makefile (#433)
force curl timeout (useful for firewalled environments)

Signed-off-by: Felix Bartels <felix@host-consultants.de>
2020-08-21 08:05:41 +02:00
Felix Bartels
404c353ae4
build dependencies (#431) 2020-08-15 17:56:33 +02:00
Felix Bartels
e2251036b3
add kweb config for z-push (#419)
* add kweb config for z-push
* clean out apache bits from z-push container and use kopano_php as the base
* fix commander tests for current php version
* globally define log location for php-fpm error_log
* move port in outer kweb config
* rewrite other spellings of the autodiscover url
* fix port in startup test
* force plain output to buildkit
* reorder z-push dockerfile
2020-07-21 12:48:33 +02:00
Felix Bartels
4932efba46
Remove RELEASE_KEY_DOWNLOAD from the project (#422)
* Remove RELEASE_KEY_DOWNLOAD from the project
KOPANO_REPOSITORY_FLAGS should not default to always trusting

Fixes #406
2020-07-12 10:38:14 +02:00
Felix Bartels
e99c524d46
Tweaks to allow building supported releases while also including Kapps (#421)
* Tweaks to allow building supported releases while also including Kapps
* switch files to pre-final
* define default for kapps repo

Signed-off-by: Felix Bartels <felix@host-consultants.de>
2020-06-30 13:33:18 +02:00
Felix Bartels
cb3eecf5bb
Kwmbridge (#405)
* add kwmbridge
* add new config options for kwmserver and kwmbridge
2020-06-23 22:33:23 +02:00
Felix Bartels
b548cba095
tag and publish kapps container (#403)
fixes #402

Signed-off-by: Felix Bartels <felix@host-consultants.de>
2020-05-28 22:43:49 +02:00
Felix Bartels
4e2060e491
Add container for kapps (which includes the new calendar) (#397)
* Add container for kapps (which includes the new calendar)
* remove calendar.yml
2020-05-26 12:10:59 +02:00
Felix Bartels
7a04c93219
Prepare usage of build secrets (#303)
* sort .gitignore and add apt_auth.conf to it
* add helper to setup.sh to create apt_auth.conf (user still needs to enter their own credentials)
   * only create apt_auth.conf in make if it doesn't already exist
* add tooling to core dockerfile and makefile to use build secrets
* add ignore for hadolint as mounting syntax is currently not supported so far
* update to latest docker on travis for buildkit support
* documentation
* sort gitignore
* add dockerfile syntax definition for build args
2020-05-22 10:23:09 +02:00
Felix Bartels
87de275e9f
add example how to build dedicated container for services such as dagent (#391)
* add example how to build dedicated container for services such as dagent

Obsoletes part of https://github.com/zokradonh/kopano-docker/pull/366

Signed-off-by: Felix Bartels <felix@host-consultants.de>

* add new dockerfile for dagent

Signed-off-by: Felix Bartels <felix@host-consultants.de>
2020-05-01 15:53:57 +02:00
Felix Bartels
97ebd264d6 Mount /var/lib/dbus/machine-id from /etc/machine-id
Fixes https://github.com/zokradonh/kopano-docker/issues/371

Signed-off-by: Felix Bartels <felix@host-consultants.de>
2020-03-27 14:54:51 +01:00
Felix Bartels
c8a7958083
example to build local container with just some added plugins (#350)
Signed-off-by: Felix Bartels <felix@host-consultants.de>
2020-03-16 15:11:21 -04:00
Felix Bartels
5d4fabf280
update ldap container to latest version (#341)
Signed-off-by: Felix Bartels <felix@host-consultants.de>
2020-02-27 15:30:10 +01:00
Felix Bartels
0561a979bc
update to Debian Buster (#253)
* update to Debian Buster
* update webapp container
* update kdav image to buster
  * add some debug commands
* use onbuild to specify building of core repository only in one place
* remove ca-certificates and git from kdav image
  * git should not be needed since kdav has a builder stage
  * ca-certificates is already installed in an earlier stage
* upgrade to Debian 10 for Z-Push
* switch remaining Debian 9 repos in webapp
* use a new major version for the base image
  * since its now based on buster
* add new parameters to the onbuild step
* update repos in setup.sh
* switch default distribution in create repo script
2020-02-25 13:31:54 +01:00
h44z
4e04625918
Add convenience functions to remove build images and containers (#11)
* Add convenience functions to remove build images and containers
* skip images with <none> tag
2020-01-30 12:25:39 +01:00
h44z
d0735ebd08
Configurable uid gid (#9)
* allow to specify uid and gid for kopano
* Set default value of GID/UID to keep compatibility with existing containers
2020-01-29 20:46:27 +01:00
Felix Bartels
7bbdfecb0e
Increase amount of lines that are printed at failure (#326)
Signed-off-by: Felix Bartels <felix@host-consultants.de>
2020-01-29 09:30:05 +01:00
Felix Bartels
f8b14c6a98
Makefile tweaks (#329)
* add --rm to build commands to prevent dangling images
relates to https://github.com/Kopano-dev/kopano-docker/pull/11
* remove login from makefile
* add docker login to travis instead
* readme tweaks
2020-01-29 09:29:39 +01:00
Felix Bartels
1759296b70 remove additional packages from builder step
Signed-off-by: Felix Bartels <felix@host-consultants.de>
2020-01-20 21:31:07 +01:00
Felix Bartels
3367b539b7
move external components to their own files (#319)
* move ldap to its own file
* add separate files for db and mail as well
* add new compose file to the default compose_file variable
* enhance setup.sh to add these new compose files if they are currently missing
2020-01-15 13:26:30 +01:00
Felix Bartels
70e9940b38
Run all containers read-only (#314)
* switch containers in compose file to read-only
related to https://github.com/zokradonh/kopano-docker/issues/310
* make scheduler container read-only
* make meet container read-only
* fix konnect for read-only
* make core mostly read-only
* add custom location for ldap.cfg to default config
* sort config option for readability
* update makefile pull workaround
* make kdav read-only
* remove locale generation code from core startup
* fix commander tests
* fix store language tests
* add test for a dutch mailbox
* make it possible to run webapp read-only
* add locale hint to the compose file
* finish read-only mode for z-push
2020-01-14 14:31:53 +01:00
Felix Bartels
f5ff9393ff
add tests for downloading archive from kopano download server (#311)
* add tests for downloading archive from kopano download server
add some makefile defaults

Signed-off-by: Felix Bartels <felix@host-consultants.de>

* linting

Signed-off-by: Felix Bartels <felix@host-consultants.de>
2019-12-22 13:31:34 +01:00
Felix Bartels
5ed2a3e941 disable updating of the readme for now. for one account it works, on the other it fails
Signed-off-by: Felix Bartels <felix@host-consultants.de>
2019-12-09 15:07:27 +01:00
Felix Bartels
0a8421cfaa debugging
Signed-off-by: Felix Bartels <felix@host-consultants.de>
2019-12-09 14:25:21 +01:00
Felix Bartels
d7fb796fa3
split up installation for core and kapi+grapi (#293)
* split up installation for core and kapi+grapi
* add some debug output in case package installation fails
* let konnect run as nobody
* add code to check writing permissions for certificates and create certificates in container if possible
* add tests to check on failed and successful certificate creation
* add certificate creation logic from the konnect binfile
* add env for custom dockerize timeout (to fail earlier in tests)
2019-11-26 10:10:22 +01:00
Felix Bartels
3165430f72
add all ci relevant tools to the build helper (#290)
also push the build helper into the docker hub

Signed-off-by: Felix Bartels <felix@host-consultants.de>
2019-11-21 08:37:01 +01:00
Felix Bartels
03c7154299
smaller konnect fixes (#288)
Signed-off-by: Felix Bartels <felix@host-consultants.de>
2019-11-17 16:35:57 +01:00
Felix Bartels
52d6b18322
Further tweaks for univention app (#264)
* add option to change base path
* fix env name
* add kweb configuration for using konnect in a subpath
* make webapp display configurable
* more explicit startup messages
* add ability to use an external oidc provider
* install the grapi ldap backend in the image when building with a recent enough kopano version
* add the ability to run test in the konnect container
  * the startup script gets more and more complicated, there should be a way to test it
* test some values and add test helper
* do not simply cat the registration, but call with yq
* update kweb and konnect
2019-11-11 10:54:54 +01:00
Felix Bartels
5077bbd1b6
improve config options for grapi (#269)
* make it possible to configure grapi through its cfg
* add test for config setting in grapi
* add volume for persistent data
* chown and add tests for dir
2019-10-23 14:54:25 +02:00
Felix Bartels
bcb0926c6d
Misc changes (#268)
* fixes for setup-tools.sh

fixes https://github.com/zokradonh/kopano-docker/issues/266

* add startup tests for meet demo
* add architecture to contributing file
* define ical_listen for kopano-ical
* precreate database if it does not yet exist
* fix spelling
2019-10-22 15:00:31 +02:00
Felix Bartels
b004988517
Separate out testing dependencies to be more independent of travis
* move docker-hub-helper in a general ci folder
* move installation of tools into dedicated script (will make it easier to use a different ci platform)
* mention the setup-tools script in contributing and move testing instructions in there as well
2019-10-16 17:30:42 +02:00
Felix Bartels
c49da1d5eb
Store language (#251)
* clean out unneeded locales
* add test to verify that language is picked up in admin.cfg
* add basic question for language and use variable in compose
* use scriptlet to generate locales before start of kopano-server
* add script to check folders of a given mailbox (for language checks)
* add tests for locale generation

relates to #248
2019-10-15 09:24:10 +02:00
Felix Bartels
37f3ee0720
Make repo script more dynamic #232
* also add the ability to download the tar for supported releases
* use env variables for distribution, channel and branch
* add tests for new archive download for supported releases
2019-10-14 11:19:07 +02:00
Felix Bartels
9b5187d2e4
implement more fine grained version tagging (#256) 2019-10-11 18:20:25 +02:00
Felix Bartels
b840e66418
Add hints about Docker caching (#255)
* tweaking for docker caching
* tweaks to contributing
2019-10-09 19:46:54 +02:00
Felix Bartels
80a3b2a563
experiment with overriding exec to test bash script functions (#254)
* experiment with overriding exec to test bash script functions

Signed-off-by: Felix Bartels <felix@host-consultants.de>

* refine tests

Signed-off-by: Felix Bartels <felix@host-consultants.de>

* test installation of packages

Signed-off-by: Felix Bartels <felix@host-consultants.de>

* make sure package list is not updated when there are not additional packages

* basic commander tests for webapp

Signed-off-by: Felix Bartels <felix@host-consultants.de>

* add webapp commander to makefile

Signed-off-by: Felix Bartels <felix@host-consultants.de>

* basic tests for webapp

Signed-off-by: Felix Bartels <felix@host-consultants.de>

* check webapp config.php

Signed-off-by: Felix Bartels <felix@host-consultants.de>

* add tests for z-push

Signed-off-by: Felix Bartels <felix@host-consultants.de>
2019-10-08 23:00:36 +02:00
Felix Bartels
a33458bd15
Remove printing of image size (does not work on Travis) (#252)
* move repo definition outside of ifndef
2019-10-07 15:45:24 +02:00
Felix Bartels
b3c3ac669e
Switch to PERMIT_DOCKER=connected-networks (#210)
* test if https://github.com/tomav/docker-mailserver/issues/1079 is resolved
* add spooler test to commander target
2019-09-18 17:17:35 +02:00
Felix Bartels
b273c87cb3
More tests (#240)
* add goss healthcheck to meet
* add goss healthcheck to scheduler
* enhance goss tests for webapp
* add meet and scheduler to make target for goss
* fix healtcheck for webapp

will report 200, but also cause an error because of it being requested over plain
have dedicated url for check
* disable stats reporting in build
* update commander
2019-09-15 18:01:09 +02:00
Felix Bartels
ab35522da5
Further improve commander test cases (#233)
* add a more detailed example based on https://github.com/SimonBaeumer/commander/pull/82
include test for '!include /usr/share/kopano/ldap.openldap.cfg'?
* add readme on testing
* add goss wait files for dagent and spooler
2019-09-12 13:26:05 +02:00
Felix Bartels
68c691acbd
Adapt Konnect Container for Univention (#236)
* precreate meet keys in ssl, but do the actual action in konnect
* generate all keys for meet within Konnect
* incorporate explicit logging and settings set by ucs app
* make konnect container more dynamic
* set default oidc_issuer_identifier
* print size of container
* builder image is not required for security scanning
* define entrypoint instead of using command
* more cleanup of testing containers
* give logs in case of error
2019-09-10 13:48:19 +02:00
Felix Bartels
de66536525
Fix version detection in version.sh and add testing for it (#225)
* fix version syntax
* commander: verify output of version.sh
* commander: exit setup.sh with code 1 when .env exists
* add commander to travis
* minimal test for commander in core container
2019-08-30 18:22:36 +02:00
Felix Bartels
4878fc9917
Use goss for healthchecks (#223)
* basic healthcheck based on goss
* add goss to travis
* healtcheck command runs now for all services
* add to makefile
2019-08-27 14:56:49 +02:00
Felix Bartels
d6744b20e2
Add test implementation of goss (#222)
* add test target for goss
split test-ci up to later add goss to it
* bring back chown of /kopano/data
* use a dedicated goss file for kopano-server
* add todo
2019-08-24 15:40:56 +02:00
zokradonh
b0236bf0d8 Cure some quoting issues
* Double quotes not needed by docker compose

Same issue as here https://github.com/zokradonh/kopano-docker/issues/216

* move deletion of tmpfile into an exit trap

otherwise the file is not cleaned up when supported images are built

* repair sourcing of env by removing kopano ldap settings from env before sourcing

* additional packages env vars should be quoted in .env
* adapt start scripts to handle quotes additional packages
* treat update-tag script with ldap variable fix from setup.sh

fixes #216

* run version.sh in travis (to fail early if something is wrong there)
commit forgotten fixes to start scripts
2019-08-22 09:21:10 +02:00
Felix Bartels
87b844b10e
Add grapi-explorer (#215)
* grapi explorer is located in its own (optional) file
* update readme
* optimize eclint check
2019-08-20 21:58:54 +02:00