Skip to content

Commit

Permalink
Merge branch 'release-1.4.0' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
BertrandGouny committed Jun 15, 2020
2 parents c6161fe + 78693a4 commit 2daaa57
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 13 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project follows [osixia/openldap](https://github.com/osixia/docker-openldap-backup) versioning.

## [1.4.0] - 2020-06-15
### Changed
- Upgrade baseimage to openldap:1.4.0
- Cron scripts now use logger cmd

## [1.3.0] - 2019-09-29
## Added
- Multiarch support
Expand Down Expand Up @@ -117,6 +122,7 @@ and this project follows [osixia/openldap](https://github.com/osixia/docker-open
## 0.1.0 - 2015-07-24
Initial release

[1.4.0]: https://github.com/osixia/docker-openldap-backup/compare/v1.3.0...v1.4.0
[1.3.0]: https://github.com/osixia/docker-openldap-backup/compare/v1.2.5...v1.3.0
[1.2.5]: https://github.com/osixia/docker-openldap-backup/compare/v1.2.4...v1.2.5
[1.2.4]: https://github.com/osixia/docker-openldap-backup/compare/v1.2.3...v1.2.4
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
NAME = osixia/openldap-backup
VERSION = 1.3.0
VERSION = 1.4.0

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

Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

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

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

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

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

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


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

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

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

See all command line options:

docker run osixia/openldap-backup:1.3.0 --help
docker run osixia/openldap-backup:1.4.0 --help


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

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


#### Link environment file

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

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

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).

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

## Advanced User Guide

### Extend osixia/openldap-backup:1.3.0 image
### Extend osixia/openldap-backup:1.4.0 image

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

Dockerfile example:

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

ADD environment /container/environment/01-custom
Expand Down
2 changes: 1 addition & 1 deletion image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM osixia/openldap:1.3.0
FROM osixia/openldap:1.4.0

# Install cron from baseimage and remove .cfss and slapd services inherited from openldap image
# remove also previous default environment files, they are not needed.
Expand Down
4 changes: 2 additions & 2 deletions image/service/slapd-backup/assets/cronjobs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Backup OpenLDAP config
{{ LDAP_BACKUP_CONFIG_CRON_EXP }} root /sbin/slapd-backup-config > /proc/1/fd/1 2>/proc/1/fd/2
{{ LDAP_BACKUP_CONFIG_CRON_EXP }} root /sbin/slapd-backup-config 2>&1 | /usr/bin/logger -t cron_backup_config

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

0 comments on commit 2daaa57

Please sign in to comment.