Skip to content

Commit

Permalink
add logrotate, update readme (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkonie committed Sep 19, 2024
1 parent af18ac5 commit 2c21c4b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Dockerized iRODS

This repository contains the necessary files to build an iRODS Docker image based on Ubuntu 18.04.
This repository contains the necessary files to build an iRODS Docker image based on Ubuntu 20.04.
The code is based on [hurngchunlee/docker-irods](https://github.com/hurngchunlee/docker-irods).

The image contains features specific to our [SODAR](https://github.com/bihealth/sodar-server) system, but using them is optional and the image also works as a generic iRODS server.
Expand Down Expand Up @@ -95,8 +95,9 @@ Next, do the same modification for the environment variable `IRODS_ODBC_DRIVER`.

To build the image, use the following command:

```bash
$ IRODS_PKG_VERSION=x.x.x-x BUILD_VERSION=y ./build.sh
```
bash
$ IRODS_PKG_VERSION=x.x.x BUILD_VERSION=y ./build.sh
```

Releases and images are tagged with the iRODS server version followed by the image build version. This means that e.g. the initial release for iRODS `4.3.1` will be tagged as `4.3.1-1`. Fixes or improvements to that release would then be published as `4.3.1-2`.
2 changes: 2 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ RUN chmod +x /docker-entrypoint.sh /irods_login.sh

# Set up logging
COPY files/irods_syslog.conf /etc/rsyslog.d/00-irods.conf
COPY files/irods.logrotate /etc/logrotate.d/irods
RUN chmod 0644 /etc/logrotate.d/irods
RUN mkdir -p /var/log/irods
RUN chown syslog:adm /var/log/irods

Expand Down
9 changes: 9 additions & 0 deletions docker/files/irods.logrotate
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/var/log/irods/irods.log {
weekly
rotate 26
copytruncate
dateext
notifempty
missingok
su root root
}

0 comments on commit 2c21c4b

Please sign in to comment.