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

Move some defaults of docker to global scope #1403

Merged
merged 1 commit into from
Mar 15, 2021
Merged

Move some defaults of docker to global scope #1403

merged 1 commit into from
Mar 15, 2021

Conversation

swsnr
Copy link
Contributor

@swsnr swsnr commented Mar 12, 2021

SBT strongly recommends to use the global scope for default settings,
see https://www.scala-sbt.org/1.x/docs/Plugins-Best-Practices.html#Provide+default+values+in

This allows to set the docker image and common labels once in ThisBuild
for all subprojects, and makes it easier to use a different
docker-compatible container builder by overriding the command, e.g.

sbt 'set ThisBuild / dockerExecCommand := Seq("podman")' docker:publish

@lightbend-cla-validator

Hi @lunaryorn,

Thank you for your contribution! We really value the time you've taken to put this together.

Before we proceed with reviewing this pull request, please sign the Lightbend Contributors License Agreement:

https://www.lightbend.com/contribute/cla

SBT strongly recommends to use the global scope for default settings,
see https://www.scala-sbt.org/1.x/docs/Plugins-Best-Practices.html#Provide+default+values+in

This allows to set the docker image and common labels once in ThisBuild
for all subprojects, and makes it easier to use a different
docker-compatible container builder by overriding the command, e.g.

    sbt 'set ThisBuild / dockerExecCommand := Seq("podman")' docker:publish
@swsnr
Copy link
Contributor Author

swsnr commented Mar 12, 2021

I should like to point out that while I am fairly confident that this works I didn't test it, because I'm admittedly too lazy to bother with publishing locally and adding it to a project 😬

@muuki88 muuki88 self-requested a review March 15, 2021 13:31
Copy link
Contributor

@muuki88 muuki88 left a comment

Choose a reason for hiding this comment

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

Noice 😸

@muuki88 muuki88 merged commit 6dc2d7e into sbt:master Mar 15, 2021
@muuki88 muuki88 added docker minor release drafter version labels Mar 15, 2021
@muuki88
Copy link
Contributor

muuki88 commented Mar 15, 2021

1.8.1 is being released

@swsnr swsnr deleted the set-docker-defaults-in-global-scope branch March 15, 2021 13:47
@swsnr
Copy link
Contributor Author

swsnr commented Mar 15, 2021

Thank you.

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

Successfully merging this pull request may close these issues.

None yet

3 participants