Skip to content

Commit

Permalink
Add buildtime base docker image overwrite guideline (linkerd#1867)
Browse files Browse the repository at this point in the history
* added buildtime base docker image overwrite guideline

Signed-off-by: Mohsen Rezaei <[email protected]>

* removed extra space on show command, removed user's home dir from guide

Signed-off-by: Mohsen Rezaei <[email protected]>
  • Loading branch information
mohsenrezaeithe authored and siggy committed Mar 16, 2018
1 parent 0686418 commit 8a85985
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,26 @@ The list of image names may be changed with a command like:
[info] List(buoyantio/linkerd:0.0.10-SNAPSHOT, gcr.io/gce-project/linkerd:v0.0.10-SNAPSHOT)
```

The base Docker image used to build the final images may be set and overwritten at buildtime like:

```
> set Base.dockerJavaImage in (linkerd, Bundle) := "myFromImage"
[info] Defining linkerd/bundle:dockerJavaImage
[info] The new value will be used by linkerd/bundle:docker::dockerfile
[info] Reapplying settings...
[info] Set current project to all (in build file:~/buoyant/linkerd/)
> show linkerd/bundle:dockerJavaImage
[info] myFromImage
```

or, with build command like:

```bash
$ ./sbt 'set Base.dockerJavaImage in (linkerd, Bundle) := "myFromImage"' linkerd/docker
```

_NOTE:_ The same setting applies to all apps and configs, i.e. `set ... (linkerd|namerd, Bundle|LowMem|Jdk) ...`.

#### DCOS ####

Namerd supports a DCOS-specific configuration. When used in conjunction with
Expand Down

0 comments on commit 8a85985

Please sign in to comment.