Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce build arguments #58

Merged
merged 3 commits into from
Dec 12, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
updated README.md
  • Loading branch information
bradbeck committed Dec 12, 2016
commit 7df513d07da59e2640402aa9a26cee8053edee1b
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ A Dockerfile for Sonatype Nexus Repository Manager 3, based on CentOS.

* [Notes](#notes)
* [Persistent Data](#persistent-data)
* [Build Args](#build-ars)
* [Getting Help](#getting-help)

To run, binding the exposed port 8081 to the host.
Expand Down Expand Up @@ -93,6 +94,16 @@ for additional information.
$ docker run -d -p 8081:8081 --name nexus -v /some/dir/nexus-data:/nexus-data sonatype/nexus3
```

### Build Args

The Dockerfile contains two build arguments (`NEXUS_VERSION` & `NEXUS_DOWNLOAD_URL`) that can be used to customize what
version of, and from where, Nexus Repository Manager is downloaded. This is useful mostly for testing purposes as the
Dockerfile may be dependent on a very specific version of Nexus Repository Manager.

```
docker build --rm --tag nexus-custom --build-arg NEXUS_VERSION=3.x.y --build-arg NEXUS_DOWNLOAD_URL=https://.../nexus-3.x.y-unix.tar.gz .
```

## Getting Help

Looking to contribute to our Docker image but need some help? There's a few ways to get information or our attention:
Expand Down