Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dockerfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Picasoft
Technique
Dockerfiles
Commits
7eee0908
Commit
7eee0908
authored
3 years ago
by
Quentin Duchemin
Browse files
Options
Downloads
Patches
Plain Diff
[LDAP] Start to add logrotate and rsyslog
parent
d92721a7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pica-openldap/Dockerfile
+8
-0
8 additions, 0 deletions
pica-openldap/Dockerfile
pica-openldap/logrotate/openldap
+13
-0
13 additions, 0 deletions
pica-openldap/logrotate/openldap
with
21 additions
and
0 deletions
pica-openldap/Dockerfile
+
8
−
0
View file @
7eee0908
FROM
osixia/openldap:1.4.0
LABEL
maintainer="quentinduchemin@tuta.io,bonnest@utc.fr"
RUN
apt-get update
&&
\
apt-get
install
rsyslog logrotate
# TODO ajouter un cron
COPY
./logrotate/openldap /etc/logrotate.d/openldap
RUN
update-rc.d rsyslog defaults
ADD
bootstrap /container/service/slapd/assets/config/bootstrap
ADD
environment /container/environment/01-custom
This diff is collapsed.
Click to expand it.
pica-openldap/logrotate/openldap
0 → 100644
+
13
−
0
View file @
7eee0908
/var/log/*.log {
missingok
notifempty
compress
weekly
rotate 10
size=50M
sharedscripts
postrotate
# OpenLDAP logs via syslog, restart syslog if running
/etc/init.d/rsyslog restart
endscript
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment