Skip to content

Commit d45b605

Browse files
author
valentinab25
committed
Upgrade haproxy to 1.8.22
1 parent 9d264d1 commit d45b605

4 files changed

Lines changed: 9 additions & 8 deletions

File tree

CHANGELOG.md

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

3-
## 2019-11-15 (1.8-1.4)
3+
## 2019-11-22 (1.8-1.4)
44

5-
- Fix BACKENDS_MODE typo, not reading the correct env var.
6-
- Only enable /track_hosts cron when BACKENDS env var is not present. Otherwise /track_hosts cron script will overwrite and mess up our backends
7-
- Only add http check option when backend is of type http, otherwise will break tcp backends.
5+
- Upgrade HAproxy to 1.8.22
6+
- Fix BACKENDS_MODE typo, set the default values of FRONTEND_MODE and BACKENDS_MODE to depend on each other
7+
- Only enable /track_hosts cron when BACKENDS and DNS_ENABLED env vars are not present.
8+
- Only add http check option when backend is of type http.
89

910
## 2018-11-21 (1.8-1.3)
1011

haproxy/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM haproxy:1.8.14
1+
FROM haproxy:1.8.22
22
LABEL maintainer="EEA: IDM2 A-Team <eea-edw-a-team-alerts@googlegroups.com>"
33

44
RUN apt-get update \

haproxy/Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ your non-related EEA projects.
1313

1414
### Stable and immutable tags
1515

16-
- `:1.8-1.3` [*Dockerfile*](https://github.com/eea/eea.docker.haproxy/tree/1.8-1.3/haproxy/Dockerfile) - HAProxy: **1.8** Release: **1.3**
16+
- `:1.8-1.4` [*Dockerfile*](https://github.com/eea/eea.docker.haproxy/tree/1.8-1.4/haproxy/Dockerfile) - HAProxy: **1.8** Release: **1.3**
1717

1818
See [older versions](https://github.com/eea/eea.docker.haproxy/releases)
1919

haproxy/src/configure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
FRONTEND_NAME = os.environ.get('FRONTEND_NAME', 'http-frontend')
1212
FRONTEND_PORT = os.environ.get('FRONTEND_PORT', '5000')
13-
FRONTEND_MODE = os.environ.get('FRONTEND_MODE', 'http')
13+
FRONTEND_MODE = os.environ.get('FRONTEND_MODE', os.environ.get('BACKENDS_MODE','http'))
1414
BACKEND_NAME = os.environ.get('BACKEND_NAME', 'http-backend')
1515
BALANCE = os.environ.get('BALANCE', 'roundrobin')
1616
SERVICE_NAMES = os.environ.get('SERVICE_NAMES', '')
@@ -20,7 +20,7 @@
2020
STATS_AUTH = os.environ.get('STATS_AUTH', 'admin:admin')
2121
BACKENDS = os.environ.get('BACKENDS', '').split(' ')
2222
BACKENDS_PORT = os.environ.get('BACKENDS_PORT', '80')
23-
BACKENDS_MODE = os.environ.get('BACKENDS_MODE', 'http')
23+
BACKENDS_MODE = os.environ.get('BACKENDS_MODE', FRONTEND_MODE)
2424
LOGGING = os.environ.get('LOGGING', '127.0.0.1')
2525
LOG_LEVEL = os.environ.get('LOG_LEVEL', 'notice')
2626
TIMEOUT_CONNECT = os.environ.get('TIMEOUT_CONNECT', '5000')

0 commit comments

Comments
 (0)