Skip to content

Commit 2daaa57

Browse files
committed
Merge branch 'release-1.4.0' into stable
2 parents c6161fe + 78693a4 commit 2daaa57

File tree

5 files changed

+19
-13
lines changed

5 files changed

+19
-13
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project follows [osixia/openldap](https://github.com/osixia/docker-openldap-backup) versioning.
66

7+
## [1.4.0] - 2020-06-15
8+
### Changed
9+
- Upgrade baseimage to openldap:1.4.0
10+
- Cron scripts now use logger cmd
11+
712
## [1.3.0] - 2019-09-29
813
## Added
914
- Multiarch support
@@ -117,6 +122,7 @@ and this project follows [osixia/openldap](https://github.com/osixia/docker-open
117122
## 0.1.0 - 2015-07-24
118123
Initial release
119124

125+
[1.4.0]: https://github.com/osixia/docker-openldap-backup/compare/v1.3.0...v1.4.0
120126
[1.3.0]: https://github.com/osixia/docker-openldap-backup/compare/v1.2.5...v1.3.0
121127
[1.2.5]: https://github.com/osixia/docker-openldap-backup/compare/v1.2.4...v1.2.5
122128
[1.2.4]: https://github.com/osixia/docker-openldap-backup/compare/v1.2.3...v1.2.4

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
NAME = osixia/openldap-backup
2-
VERSION = 1.3.0
2+
VERSION = 1.4.0
33

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

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
[hub]: https://hub.docker.com/r/osixia/openldap-backup/
88

9-
Latest release: 1.3.0 - [Changelog](CHANGELOG.md) | [Docker Hub](https://hub.docker.com/r/osixia/openldap-backup/) 
9+
Latest release: 1.4.0 - [Changelog](CHANGELOG.md) | [Docker Hub](https://hub.docker.com/r/osixia/openldap-backup/) 
1010

1111
**A docker image to run OpenLDAP, and make periodic backups.**
1212

@@ -21,7 +21,7 @@ Latest release: 1.3.0 - [Changelog](CHANGELOG.md) | [Docker Hub](https://hub.doc
2121
- [Link environment file](#link-environment-file)
2222
- [Make your own image or extend this image](#make-your-own-image-or-extend-this-image)
2323
- [Advanced User Guide](#advanced-user-guide)
24-
- [Extend osixia/openldap-backup:1.3.0 image](#extend-osixiaopenldap-backup130-image)
24+
- [Extend osixia/openldap-backup:1.4.0 image](#extend-osixiaopenldap-backup140-image)
2525
- [Make your own openldap-backup image](#make-your-own-openldap-backup-image)
2626
- [Tests](#tests)
2727
- [Kubernetes](#kubernetes)
@@ -50,7 +50,7 @@ Backups are created in the directory `/data/backup` that should be mapped has vo
5050

5151
docker run --env LDAP_BACKUP_CONFIG_CRON_EXP="0 5 * * *" \
5252
--volume /data/openldap/backup:/data/backup \
53-
--detach osixia/openldap-backup:1.3.0
53+
--detach osixia/openldap-backup:1.4.0
5454

5555

5656
For more information about docker data volume, please refer to :
@@ -64,11 +64,11 @@ Available levels are: `none`, `error`, `warning`, `info`, `debug` and `trace`.
6464

6565
Example command to run the container in `debug` mode:
6666

67-
docker run --detach osixia/openldap-backup:1.3.0 --loglevel debug
67+
docker run --detach osixia/openldap-backup:1.4.0 --loglevel debug
6868

6969
See all command line options:
7070

71-
docker run osixia/openldap-backup:1.3.0 --help
71+
docker run osixia/openldap-backup:1.4.0 --help
7272

7373

7474
## Environment Variables
@@ -90,15 +90,15 @@ See how to [set your own environment variables](#set-your-own-environment-variab
9090
Environment variables can be set by adding the --env argument in the command line, for example:
9191

9292
docker run --env LDAP_BACKUP_CONFIG_CRON_EXP="0 5 * * *" \
93-
--detach osixia/openldap-backup:1.3.0
93+
--detach osixia/openldap-backup:1.4.0
9494

9595

9696
#### Link environment file
9797

9898
For example if your environment file is in : /data/ldap/environment/my-env.yaml
9999

100100
docker run --volume /data/ldap/environment/my-env.yaml:/container/environment/01-custom/env.yaml \
101-
--detach osixia/openldap-backup:1.3.0
101+
--detach osixia/openldap-backup:1.4.0
102102

103103
Take care to link your environment file to `/container/environment/XX-somedir` (with XX < 99 so they will be processed before default environment files) and not directly to `/container/environment` because this directory contains predefined baseimage environment files to fix container environment (INITRD, LANG, LANGUAGE and LC_CTYPE).
104104

@@ -108,13 +108,13 @@ This is the best solution if you have a private registry. Please refer to the [A
108108

109109
## Advanced User Guide
110110

111-
### Extend osixia/openldap-backup:1.3.0 image
111+
### Extend osixia/openldap-backup:1.4.0 image
112112

113113
If you need to add your custom environment files you can extends this image.
114114

115115
Dockerfile example:
116116

117-
FROM osixia/openldap-backup:1.3.0
117+
FROM osixia/openldap-backup:1.4.0
118118
MAINTAINER Your Name <[email protected]>
119119

120120
ADD environment /container/environment/01-custom

image/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM osixia/openldap:1.3.0
1+
FROM osixia/openldap:1.4.0
22

33
# Install cron from baseimage and remove .cfss and slapd services inherited from openldap image
44
# remove also previous default environment files, they are not needed.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Backup OpenLDAP config
2-
{{ LDAP_BACKUP_CONFIG_CRON_EXP }} root /sbin/slapd-backup-config > /proc/1/fd/1 2>/proc/1/fd/2
2+
{{ LDAP_BACKUP_CONFIG_CRON_EXP }} root /sbin/slapd-backup-config 2>&1 | /usr/bin/logger -t cron_backup_config
33

44
# Backup OpenLDAP data
5-
{{ LDAP_BACKUP_DATA_CRON_EXP }} root /sbin/slapd-backup-data > /proc/1/fd/1 2>/proc/1/fd/2
5+
{{ LDAP_BACKUP_DATA_CRON_EXP }} root /sbin/slapd-backup-data 2>&1 | /usr/bin/logger -t cron_backup_data
66
# empty line

0 commit comments

Comments
 (0)