mirror of
				https://github.com/zokradonh/kopano-docker
				synced 2025-10-31 10:27:14 +00:00 
			
		
		
		
	* 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
		
			
				
	
	
		
			79 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			79 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| tests:
 | |
|   start-service script:
 | |
|     command: bash -c "shopt -s expand_aliases; alias exec='echo exec'; alias php-fpm7.3='echo php-fpm7.3'; . /kopano/start.sh"
 | |
|     exit-code: 0
 | |
|     stdout:
 | |
|       not-contains:
 | |
|         - "Reading package lists..."
 | |
|   start-service script (installing new package):
 | |
|     command: bash -c "shopt -s expand_aliases; alias exec='echo exec'; alias php-fpm7.3='echo php-fpm7.3'; . /kopano/start.sh"
 | |
|     exit-code: 0
 | |
|     stdout:
 | |
|       contains:
 | |
|         - "Setting up nano"
 | |
|     config:
 | |
|       env:
 | |
|         ADDITIONAL_KOPANO_PACKAGES: "nano"
 | |
|   start-service script (installing existing package):
 | |
|     command: bash -c "shopt -s expand_aliases; alias exec='echo exec'; alias php-fpm7.3='echo php-fpm7.3'; . /kopano/start.sh"
 | |
|     exit-code: 0
 | |
|     stdout:
 | |
|       contains:
 | |
|         - "INFO: z-push-kopano is already installed"
 | |
|     config:
 | |
|       env:
 | |
|         ADDITIONAL_KOPANO_PACKAGES: "z-push-kopano"
 | |
|   start-service script (z-push configuration):
 | |
|     command: bash -c "shopt -s expand_aliases; alias exec='echo exec'; alias php-fpm7.3='echo php-fpm7.3'; . /kopano/start.sh" && cat /etc/z-push/z-push.conf.php
 | |
|     exit-code: 0
 | |
|     stdout:
 | |
|       contains:
 | |
|         - "define('USE_CUSTOM_REMOTE_IP_HEADER', 'HTTP_X_FORWARDED_FOR');"
 | |
|   start-service script (configuring gabsync):
 | |
|     command: bash -c "shopt -s expand_aliases; alias exec='echo exec'; alias php-fpm7.3='echo php-fpm7.3'; . /kopano/start.sh" && cat /etc/z-push/gabsync.conf.php
 | |
|     exit-code: 0
 | |
|     stdout:
 | |
|       contains:
 | |
|         - "define('USERNAME', 'SYSTEM');"
 | |
|   start-service script (no additional folders):
 | |
|     command: bash -c "shopt -s expand_aliases; alias exec='echo exec'; alias php-fpm7.3='echo php-fpm7.3'; . /kopano/start.sh" && cat /etc/z-push/z-push.conf.php
 | |
|     exit-code: 0
 | |
|     stdout:
 | |
|       contains:
 | |
|         - "  $additionalFolders = array(\n  );"
 | |
|       not-contains: # default entry
 | |
|         - "\t$additionalFolders = array("
 | |
|         - "\t);"
 | |
|   start-service script (empty additional folders):
 | |
|     command: bash -c "shopt -s expand_aliases; alias exec='echo exec'; alias php-fpm7.3='echo php-fpm7.3'; . /kopano/start.sh" && cat /etc/z-push/z-push.conf.php
 | |
|     exit-code: 0
 | |
|     stdout:
 | |
|       contains:
 | |
|         - "  $additionalFolders = array(\n  );"
 | |
|       not-contains: # default entry
 | |
|         - "\t$additionalFolders = array("
 | |
|         - "\t);"
 | |
|     config:
 | |
|       env:
 | |
|         ZPUSH_ADDITIONAL_FOLDERS: "[]"
 | |
|   start-service script (set additional folders):
 | |
|     command: bash -c "shopt -s expand_aliases; alias exec='echo exec'; alias php-fpm7.3='echo php-fpm7.3'; . /kopano/start.sh" && cat /etc/z-push/z-push.conf.php
 | |
|     exit-code: 0
 | |
|     stdout:
 | |
|       contains:
 | |
|         - "  $additionalFolders = array(\n    array('store' => \"SYSTEM\", 'folderid' => \"42\", 'name' => \"Calendar\", 'type' => SYNC_FOLDER_TYPE_USER_APPOINTMENT, 'flags' => 4),\n    array('store' => \"SYSTEM\", 'folderid' => \"21\", 'name' => \"Mail\", 'type' => SYNC_FOLDER_TYPE_USER_MAIL, 'flags' => 0),\n  );"
 | |
|       not-contains: # default entry
 | |
|         - "\t$additionalFolders = array("
 | |
|         - "\t);"
 | |
|     config:
 | |
|       env:
 | |
|         ZPUSH_ADDITIONAL_FOLDERS: "[{\"name\":\"Calendar\",\"id\":\"42\",\"type\":\"SYNC_FOLDER_TYPE_USER_APPOINTMENT\",\"flags\":\"4\"},{\"name\":\"Mail\",\"id\":\"21\",\"type\":\"SYNC_FOLDER_TYPE_USER_MAIL\",\"flags\":\"0\"}]"
 | |
| 
 | |
| 
 | |
| config:
 | |
|   env:
 | |
|     DEBUG: ${DEBUG}
 | |
|     LANG: ${LANG}
 | |
|     PATH: ${PATH}
 | |
|     TZ: ${TZ}
 |