Commit Graph

52 Commits

Author SHA1 Message Date
André Bauer
9071b2d406
made nginx X-Forwarded-Proto scheme & rails trusted proxies configurable (#166)
* made nginx X-Forwarded-Proto scheme & rails trusted proxies configurable

* disable schellcheck

* removed quotes

* changed sed command

* removed shellcheck disable

* changed scheme var
2020-06-30 15:43:41 +02:00
Thiago Alves Cavalcante
05e56fde67
Update rsync command (#150)
* Update rsync command

Adds --no-perms --no-owner params to rsync command for maintain compatibility with NFS volumes, else rsync change owner and perms of files synced causing error.

* Change params on rsync to a generic variable

* Add params as string on generic var

* remove duplicated generic var

* Remove double quotes on rsync command

* Add a coment to ignore spellcheck
2020-05-22 00:10:23 +02:00
André Bauer
c5751c06f7
added es namespace setting 2020-03-27 13:31:22 +01:00
André Bauer
c5c359c658
fix nginx config (#148)
Signed-off-by: André Bauer <monotek23@gmail.com>
2020-03-12 23:16:24 +01:00
André Bauer
73def89f3b
fixed indentation (#144) 2020-03-07 03:55:36 +01:00
André Bauer
f93db7f2e8
added image build to ci & change db checks / migration (#142)
* updated image to 3.3.0-11

Signed-off-by: André Bauer <monotek23@gmail.com>

* add image build to ci / changed db cehcks

Signed-off-by: André Bauer <monotek23@gmail.com>

* added repo user var

Signed-off-by: André Bauer <monotek23@gmail.com>

* added needs

Signed-off-by: André Bauer <monotek23@gmail.com>

* added executable bit

Signed-off-by: André Bauer <monotek23@gmail.com>

* test

Signed-off-by: André Bauer <monotek23@gmail.com>

* test

Signed-off-by: André Bauer <monotek23@gmail.com>

* test

Signed-off-by: André Bauer <monotek23@gmail.com>
2020-03-06 14:41:59 +01:00
André Bauer
607fa4a02a
fixes for postgres / use official memcached container (#130)
* use fixed postgres & memcached versions & fix missing postgres env var

* remove memcached contaienr build

* fixed another version label

* added postgres password to backup command

* set postgres user & pass in .env file

* fixed postgres in backup container

* use zammad repo
2020-02-24 17:50:19 +01:00
André Bauer
b8c641997e
Update docker-entrypoint.sh 2020-02-20 16:18:45 +01:00
André Bauer
3d2a73474f
added possibility to purge es index 2020-02-19 23:08:11 +01:00
Don Bowman
789eb2cc4b fix: missing POSTGRESQL_PORT in construct of database.yaml (#114) 2019-08-30 01:11:14 +02:00
Daniel Lohse
cb8b631d5e Allow setting Elasticsearch connection URL protocol (#105)
* Honor ELASTICSEARCH_SCHEMA when accessing Elasticsearch in the Zammad entrypoint

It defaults to http so it's completely backwards-compatible. In case it's https I disabled
verification in the curl command via -k.

* Add ELASTICSEARCH_SSL_VERIFY environment variable in Zammad entrypoint

Setting it to "false" will skip TLS verification when interacting with Elasticsearch.

* Add default value for ELASTICSEARCH_SSL_VERIFY env variable
2019-07-04 12:18:14 +02:00
André Bauer
ed29aaa96c changed tag handling 2019-02-15 16:52:40 +01:00
André Bauer
5aa5151c88 use multistage docker image 2019-02-15 16:11:49 +01:00
André Bauer
e3a5ec3b74 fix searchindex rebuild 2019-02-09 19:05:32 +01:00
André Bauer
f64bdf16aa fixed nginx 2019-02-09 18:56:25 +01:00
André Bauer
65127b46e3
Fixed quotes 2019-02-05 20:58:48 +01:00
André Bauer
c8666402c4 fixed shellcheck errors 2019-02-04 21:45:33 +01:00
André Bauer
cae9c74ff8 changed autowizard position 2019-02-04 21:29:24 +01:00
André Bauer
5b495e81ca added autowizard.json creation 2019-02-01 19:52:04 +01:00
André Bauer
c1cb4ab7d7 remove existing railsserver pid file on start 2018-12-27 21:48:14 +01:00
Maarten de Boer
46e55773fa Fix database initialisation (#90) 2018-12-11 18:57:18 +01:00
André Bauer
4799668e49
fixed database config 2018-06-12 12:17:45 +02:00
André Bauer
8efd8046d5 removed sleep 10 2018-04-14 20:30:47 +02:00
André Bauer
dc1f8128cc debug es reindex 2018-04-14 18:28:56 +02:00
André Bauer
03f2bd9955 Merge remote-tracking branch 'upstream/master' 2018-04-14 18:15:40 +02:00
André Bauer
9786e32348 added sleep 10 to scheduler start 2018-04-14 17:50:25 +02:00
André Bauer
1ea1e65aaf removed memcached check again 2018-04-14 17:48:28 +02:00
André Bauer
7b11ae9848 made zammad ports configurable 2018-04-14 17:40:53 +02:00
André Bauer
274e216394 let scheduler wait for memcached server 2018-04-14 17:24:05 +02:00
André Bauer
b647a87c3d
fixed rsync 2018-04-14 16:50:39 +02:00
André Bauer
2a7f97136f log to stdout 2018-04-14 16:23:15 +02:00
André Bauer
efe03468f3
fix reindex if 2018-04-14 15:48:17 +02:00
André Bauer
8c4de19d45 if es index exists no index rebuild 2018-04-14 15:17:42 +02:00
Adam McMaster
244392a981
Add missing $ 2018-04-12 11:16:30 +01:00
André Bauer
0e7c68b741
Update docker-entrypoint.sh 2018-04-10 11:17:23 +02:00
André Bauer
0b80e0d34b
added POSTGRESQL_DB env var 2018-04-09 18:07:40 +02:00
André Bauer
6888a87abd added test -f again 2017-12-24 16:13:25 +01:00
André Bauer
b86467b4c4 fixed entrypoint script and remover superfluous rancher lables 2017-12-24 16:08:57 +01:00
André Bauer
b00217c670 moved rsync on top of init container 2017-12-24 15:04:09 +01:00
André Bauer
db984758d4 fix file deletion 2017-12-24 14:59:45 +01:00
André Bauer
2fc5b8fe8b delete zammad ready file on init container start 2017-12-24 14:25:11 +01:00
André Bauer
b3fb17c6ad - changed tmp file var to use full path
- switched back to postgresql 9.6 (10.x with next release)
- switched back to zammad image repos
- switched back to stable branch (dalli gem now included)
2017-12-07 15:20:21 +01:00
André Bauer
1f5c9036c2 - fixed ipv6 in google kubernetes engine
- replaced wget with curl
- made zammad image smaller by using tar.gz install instead of git clone
- moved sed commands to entrypoint
- added variables to entrypoint to set used servers dynamically
- added kubernetes backup cronjob
- added postgresql volume to compose file
- write nginx logs to stdout & stderr
- create zammad user & group manually with uid/gid 1000
2017-12-03 19:41:55 +01:00
André Bauer
ce474aabef - switched to single zammad pod to get rid of nfs container in kubernetes
- added nginx configmap
- switched to statefulset for es
- removed nginx & nfs container builds
- switched to postgresql 10.1 (manual update needed)
2017-12-02 12:58:46 +01:00
André Bauer
ce696bad8b
added init container (installation / update)... (#2)
- added memcached container (currently develop branch needed)
- put all zammad services in one kubernetes pod to be able to use empty dir volume for tmp
- switched to kubernetes deployments
- switched to ReadWriteOnce kubernetes volume claims
- added init container to elasticsearch & zammad kubernetes deployments
- added IMAGE_REPO var for docker compose to .env file
- run nginx from zammad container (preparation for stateless updates)
- removed docker-compose-build.yml
- use private docker repos in compose & kubernetes
- change compose volume names
2017-11-26 21:25:57 +01:00
André Bauer
991cb6aaae merged master 2017-11-21 16:26:34 +01:00
André Bauer
c93f1422b1 better error handling 2017-11-21 16:24:57 +01:00
André Bauer
9aa8a7540d deactivated set -e for db check 2017-11-21 16:19:57 +01:00
André Bauer
4ec18cd437 switched to set -e in entrypoint scripts 2017-11-21 00:30:58 +01:00
André Bauer
0019469221 added nfs server for kubernetes 2017-11-20 23:59:01 +01:00