Skip to content

Commit

Permalink
Merge pull request #144 from maxmind/greg/changelog
Browse files Browse the repository at this point in the history
Add change log for #143
  • Loading branch information
rafl committed Jun 4, 2021
2 parents 352b9f5 + 7a30cc9 commit 6b9b170
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# CHANGELOG

## 4.8.0

* The Docker container now supports the following new environment
variables:

* `GEOIPUPDATE_CONF_FILE` - The path where the configuration file will
be written. The default is `/etc/GeoIP.conf`.
* `GEOIPUPDATE_DB_DIR` - The directory where geoipupdate will download
the databases. The default is `/usr/share/GeoIP`.

Pull request by Maxence POULAIN. GitHub #143.

## 4.7.1 (2021-04-19)

* The Alpine version used for the Docker image now tracks the `alpine:3`
Expand Down
18 changes: 10 additions & 8 deletions doc/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Image information

The image is available on [Docker Hub](https://hub.docker.com/r/maxmindinc/geoipupdate).
The image is available on [Docker Hub](https://hub.docker.com/r/maxmindinc/geoipupdate).
The source code is available on [GitHub](https://github.com/maxmind/geoipupdate).

## Configuring
Expand Down Expand Up @@ -33,8 +33,10 @@ The following are optional:
default is `0`.
* `GEOIPUPDATE_VERBOSE` - Enable verbose mode. Prints out the steps that
`geoipupdate` takes. Set to **anything** (e.g., `1`) to enable.
* `GEOIPUPDATE_CONF_FILE` - The path where the configuration file will be written. The default is `/etc/GeoIP.conf`.
* `GEOIPUPDATE_DB_DIR` - The directory where geoipupdate will download the databases. The default is `/usr/share/GeoIP`.
* `GEOIPUPDATE_CONF_FILE` - The path where the configuration file will be
written. The default is `/etc/GeoIP.conf`.
* `GEOIPUPDATE_DB_DIR` - The directory where geoipupdate will download the
databases. The default is `/usr/share/GeoIP`.

The environment variables can be placed in a file with one per line and
passed in with the `--env-file` flag. Alternatively, you may pass them in
Expand All @@ -46,7 +48,7 @@ individually with the `-e` flag.

Run the latest image with:

```
```sh
docker run --env-file <file> -v <database directory>:/usr/share/GeoIP maxmindinc/geoipupdate
```

Expand All @@ -58,7 +60,7 @@ the databases to.

Run the latest image with:

```
```yaml
version: '3'
services:
geoipupdate:
Expand All @@ -84,8 +86,8 @@ volumes:
```
Note - When using docker-compose, you need to either:
- set `GEOIPUPDATE_FREQUENCY` equal to something greater than 0
or
- set `restart: on-failure`
* set `GEOIPUPDATE_FREQUENCY` equal to something greater than 0 or
* set `restart: on-failure`

If you don't, the container will continuously restart.

0 comments on commit 6b9b170

Please sign in to comment.