-
Notifications
You must be signed in to change notification settings - Fork 443
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
[docker] name for build tag #295
Comments
The entrypoint is changed, because the name of the script generated by sbt-native-packager depends on The tag name is generated from version in Docker := "v" + (version in Docker).value |
My use case is, i have a project with name "foo-api" so the default tag will be foo-api:$version. val dockerTag = SettingKey[Option[String]]("dockerTag", "Tag for build Docker image")
dockerTarget <<= (dockerRepository, dockerTag, normalizedName, version) map {
(repo, tag, name, version) =>
repo.map(_ + "/").getOrElse("") + tag.getOrElse(name) + ":" + version
} That solve my problem for now. |
I can see that being useful... I'd like to see what the final result of #250 is, before deciding exactly how it should change. |
@rfranco This should be possible now in the next packageName in Docker := "foo/api" |
@rfranco Does this work now for you? If yes, we can close this one. |
FIX #295 Adding documentation for docker tags
When change name in Docker that changes the entrypoint in Dockerfile too.
Maybe could has a new setting call dockerTag likely as dockerRepository.
The text was updated successfully, but these errors were encountered: