Skip to content

Commit

Permalink
revbump to 1.7.30
Browse files Browse the repository at this point in the history
add doc on logging configuration, openrc... etc
  • Loading branch information
lmiphay committed Mar 12, 2022
1 parent 5e1afd9 commit 145b76b
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 3 deletions.
34 changes: 33 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# opengrok-docker

Driver program to manage a containerised opengrok appliance
Driver program to manage a containerised opengrok appliance.

## Configuration

Expand All @@ -27,6 +27,9 @@ $ opengrok-docker stop
$ opengrok-docker delete
```

The pull and create should only be done once per version bump.
After that the container can be started and stopped as required.

## Upgrade

1. opengrok-docker stop
Expand All @@ -35,6 +38,35 @@ $ opengrok-docker delete
4. opengrok-docker create
5. opengrok-docker start

Optional - to remove an old container and/or image:

6. docker rm opengrok-1.7.17
7. docker rmi opengrok/docker:1.7.17

## OpenRC

To have the container start automatically:

```
rc-config add opengrok
```

## Logging

The default docker "json-file" logging driver does *not* do log rotation.

To select the "local" driver, with a max file size of 10MB and four files, add this to `/etc/docker/daemon.json`:

```json
{
"log-driver": "local",
"log-opts": {
"max-size": "10m",
"max-file": "4"
}
}
```

## References

1. https://github.com/oracle/opengrok/tree/master/docker
Expand Down
2 changes: 1 addition & 1 deletion bin/opengrok-docker
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

opengrok_version=${opengrok_version:-1.7.21}
opengrok_version=${opengrok_version:-1.7.30}

opengrok_sync=${opengrok_sync:-0}
opengrok_nomirror=${opengrok_nomirror:-1}
Expand Down
2 changes: 1 addition & 1 deletion etc/opengrok.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# /etc/opengrok.conf: configuration for opengrok-docker

#opengrok_version=1.7.21
#opengrok_version=1.7.30

#opengrok_sync=0
#opengrok_nomirror=1
Expand Down

0 comments on commit 145b76b

Please sign in to comment.