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

Adding 'dockerBuild{Command, Options}' and renaming 'dockerTag' #854

Merged
merged 1 commit into from
Aug 4, 2016

Conversation

makubi
Copy link
Contributor

@makubi makubi commented Jul 26, 2016

  • dockerBuildCommand
    The 'dockerBuildCommand' let users customize the command for building
    Docker images.
    The current default is 'docker build [dockerBuildOptions] .'.
  • dockerBuildOptions
    Furthermore 'dockerBuildOptions' defines which build options are used.
    The current default is '--force-rm -t [dockerAlias]' (which is expanded
    if 'dockerUpdateLatest' is set to 'true'.

This results in an execution of 'docker build --force-rm -t
[dockerAlias] .' (if 'dockerUpdateLatest' is 'false').

  • dockerTag being renamed to dockerAlias
    The 'dockerTag' setting is renamed to 'dockerAlias' as this better
    reflects the setting. Docker aliases consist of a registry path,
    username, name and tag ([REGISTRY_HOST/][USERNAME/]NAME[:TAG]).
    To not confuse the Docker image tag with this setting (as it takes the
    full alias name), the setting is renamed.

@muuki88 muuki88 added the docker label Jul 27, 2016
@@ -0,0 +1,8 @@
package com.typesafe.sbt.packager.docker

case class DockerAlias(registryHost: Option[String], username: Option[String], name: String, tag: Option[String]) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A little documentation for this class and the public fields would be helpful.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@muuki88
Copy link
Contributor

muuki88 commented Jul 29, 2016

LGTM. @fiadliel do you have any objections?

* dockerBuildCommand
The 'dockerBuildCommand' let users customize the command for building
Docker images.
The current default is 'docker build [dockerBuildOptions] .'.

* dockerBuildOptions
Furthermore 'dockerBuildOptions' defines which build options are used.
The current default is '--force-rm -t [dockerAlias]' (which is expanded
if 'dockerUpdateLatest' is set to 'true'.

This results in an execution of 'docker build --force-rm -t
[dockerAlias] .' (if 'dockerUpdateLatest' is 'false').

* dockerTag being renamed to dockerAlias
The 'dockerTag' setting is renamed to 'dockerAlias' as this better
reflects the setting. Docker aliases consist of a registry path,
username, name and tag ([REGISTRY_HOST/][USERNAME/]NAME[:TAG]).
To not confuse the Docker image tag with this setting (as it takes the
full alias name), the setting is renamed.
@muuki88 muuki88 merged commit a125a60 into sbt:master Aug 4, 2016
@nafg
Copy link

nafg commented Jan 19, 2017

BTW github releases page, release notes for I think 1.2.0-M5, says "dockerTarget renamed"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants