Skip to content

Commit 719b34a

Browse files
committed
Merge branch 'release-2.2.0' into stable
2 parents a405345 + 64f6400 commit 719b34a

File tree

12 files changed

+99
-14
lines changed

12 files changed

+99
-14
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 2.2.0
4+
- Zammad 2.2.0
5+
- Add memcached
6+
- Add ZAMMAD_ELASTICSEARCH_USER and ZAMMAD_ELASTICSEARCH_PASS environment variables
7+
38
## 2.1.0
49
- Zammad 2.1.0
510

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
NAME = osixia/zammad
2-
VERSION = 2.1.0
2+
VERSION = 2.2.0
33

44
.PHONY: build build-nocache test tag-latest push push-latest release git-tag-version
55

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
![Docker Stars](https://img.shields.io/docker/stars/osixia/zammad.svg)
55
![](https://images.microbadger.com/badges/image/osixia/zammad.svg)
66

7-
Latest release: 2.1.0 - Zammad 2.1.0 - [Changelog](CHANGELOG.md) | [Docker Hub](https://hub.docker.com/r/osixia/zammad/) 
7+
Latest release: 2.2.0 - Zammad 2.2.0 - [Changelog](CHANGELOG.md) | [Docker Hub](https://hub.docker.com/r/osixia/zammad/) 
88

99
**A docker image to run Zammad.**
1010

example/docker-compose.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ services:
1111
volumes:
1212
- elasticsearch:/usr/share/elasticsearch/data
1313

14+
memcached:
15+
command: ["zammad-memcached"]
16+
image: zammad/zammad-docker-compose:zammad-memcached
17+
labels:
18+
io.rancher.container.pull_image: always
19+
restart: always
20+
1421
mariadb:
1522
image: osixia/mariadb:10.2.8
1623
labels:
@@ -25,8 +32,8 @@ services:
2532
- mariadb:/var/lib/mysql
2633

2734
zammad:
28-
image: osixia/zammad:2.1.0
29-
command: -l trace
35+
image: osixia/zammad:2.2.0
36+
command: -l info
3037
labels:
3138
- "io.rancher.container.pull_image: always"
3239
- "traefik.protocol=https"
@@ -35,6 +42,7 @@ services:
3542
links:
3643
- elasticsearch
3744
- mariadb
45+
- memcached
3846
ports:
3947
- "6443:443"
4048
restart: always
@@ -44,6 +52,7 @@ services:
4452
ZAMMAD_DB_USER: "zammad"
4553
ZAMMAD_DB_PASSWORD: "zammad"
4654
ZAMMAD_ELASTICSEARCH_URL: "http://elasticsearch:9200"
55+
ZAMMAD_MEMCACHED_HOST: memcached
4756
volumes:
4857
- zammad-backup:/data/backup
4958

example/kubernetes/elasticsearch-deployment.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ spec:
4242
memory: 1024Mi
4343
limits:
4444
memory: 1024Mi
45+
terminationGracePeriodSeconds: 10
4546
env:
4647
#- name: "bootstrap.memory_lock" should be fixed in next major kubernetes release
4748
# value: "true"
@@ -54,6 +55,18 @@ spec:
5455
volumeMounts:
5556
- name: elasticsearch-data
5657
mountPath: /usr/share/elasticsearch/data
58+
readinessProbe:
59+
httpGet:
60+
path: /_cluster/health?local=true
61+
port: 9200
62+
initialDelaySeconds: 60
63+
periodSeconds: 10
64+
livenessProbe:
65+
httpGet:
66+
path: /_cluster/health?local=true
67+
port: 9200
68+
initialDelaySeconds: 60
69+
periodSeconds: 10
5770
volumes:
5871
- name: "elasticsearch-data"
5972
emptyDir: {} # change me to persistent storage
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
apiVersion: extensions/v1beta1
2+
kind: Deployment
3+
metadata:
4+
name: memcached
5+
namespace: default
6+
labels:
7+
app: memcached
8+
spec:
9+
replicas: 1
10+
revisionHistoryLimit: 1
11+
template:
12+
metadata:
13+
labels:
14+
app: memcached
15+
spec:
16+
terminationGracePeriodSeconds: 10
17+
18+
containers:
19+
- name: memcached
20+
image: zammad/zammad-docker-compose:zammad-memcached
21+
args: [ "zammad-memcached" ]
22+
ports:
23+
- containerPort: 11211
24+
name: memcached
25+
imagePullPolicy: Always
26+
readinessProbe:
27+
tcpSocket:
28+
port: 11211
29+
initialDelaySeconds: 20
30+
periodSeconds: 10
31+
livenessProbe:
32+
tcpSocket:
33+
port: 11211
34+
initialDelaySeconds: 10
35+
periodSeconds: 10
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: memcached
5+
namespace: default
6+
labels:
7+
app: memcached
8+
spec:
9+
ports:
10+
- port: 11211
11+
selector:
12+
app: memcached

example/kubernetes/zammad-deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
automountServiceAccountToken: false
1616
containers:
1717
- name: zammad
18-
image: osixia/zammad:2.1.0
18+
image: osixia/zammad:2.2.0
1919
imagePullPolicy: Always
2020
resources:
2121
requests:
@@ -28,6 +28,8 @@ spec:
2828
env:
2929
- name: ZAMMAD_ELASTICSEARCH_URL
3030
value: "http://elasticsearch:9200"
31+
- name: ZAMMAD_MEMCACHED_HOST
32+
value: "memcached"
3133
- name: ZAMMAD_DB_HOST
3234
value: "mariadb"
3335
- name: ZAMMAD_DB_NAME

image/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ MAINTAINER Bertrand Gouny <[email protected]>
44
ENV ZAMMAD_DIR /home/zammad
55
ENV ZAMMAD_USER zammad
66
ENV RAILS_ENV production
7-
ENV RAILS_SERVER puma
87

9-
ARG ZAMMAD_VERSION=2.1.0
10-
ARG ZAMMAD_MD5=afc7471fef4214bfec638c65d37a58d1
8+
ARG ZAMMAD_VERSION=2.2.0
9+
ARG ZAMMAD_MD5=d3657d09d8f7cbfc3e37bf8f8d4d82c6
1110

1211
ARG GOSU_VERSION=1.10
1312

image/environment/default.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ ZAMMAD_DB_USER: zammad
55
ZAMMAD_DB_PASSWORD: zammad
66

77
ZAMMAD_ELASTICSEARCH_URL:
8+
ZAMMAD_ELASTICSEARCH_USER:
9+
ZAMMAD_ELASTICSEARCH_PASS:
10+
11+
ZAMMAD_MEMCACHED_HOST:
812

913
ZAMMAD_SSL_CRT_FILENAME: cert.crt
1014
ZAMMAD_SSL_KEY_FILENAME: cert.key

0 commit comments

Comments
 (0)