mirror of
https://github.com/rancher/os.git
synced 2025-09-19 00:59:53 +00:00
Refactoring each os image
More reasonable use of COPY, easy to maintain
This commit is contained in:
5
images/02-logrotate/usr/bin/entrypoint.sh
Executable file
5
images/02-logrotate/usr/bin/entrypoint.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
cp /usr/share/logrotate/logrotate.d/* /etc/logrotate.d
|
||||
|
||||
exec /usr/bin/ros entrypoint "$@"
|
@@ -0,0 +1,8 @@
|
||||
/var/log/docker.log
|
||||
/var/log/system-docker.log
|
||||
{
|
||||
rotate 7
|
||||
daily
|
||||
missingok
|
||||
copytruncate
|
||||
}
|
Reference in New Issue
Block a user