Skip to content

Commit

Permalink
Deprecate dockerAutoPackageJavaApplication
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-drake committed Mar 6, 2023
1 parent d10e34e commit a2ec929
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 49 deletions.
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,6 @@ docker / dockerfile := {

Images can be built with [BuildKit](https://docs.docker.com/develop/develop-images/build_enhancements/) by enabling it in the daemon configuration or by passing the environment variable `DOCKER_BUILDKIT=1` to sbt.

### Auto packaging JVM applications

If you have a standalone JVM application that you want a simple Docker image for.
Then you can use `dockerAutoPackageJavaApplication(fromImage, exposedPorts, exposedVolumes, username)`
which will setup some settings for you, including a Dockerfile.
Its very basic, so if you have more advanced needs then define your own Dockerfile.

[docker]: https://www.docker.com/
[dockerfile]: https://docs.docker.com/engine/reference/builder/
[dockerizing-scala-apps]: https://velvia.github.io/Docker-Scala-Sbt/
Expand Down
1 change: 1 addition & 0 deletions src/main/scala/sbtdocker/DockerPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ object DockerPlugin extends AutoPlugin {
* @param exposedVolumes List of volumes to expose.
* @param username Username that should run the Java process.
*/
@deprecated("Use sbt-native-packager plugin instead.", "1.10.0")
def dockerAutoPackageJavaApplication(
fromImage: String = "java:8-jre",
exposedPorts: Seq[Int] = Seq.empty,
Expand Down
21 changes: 0 additions & 21 deletions src/sbt-test/sbt-docker/auto-package/build.sbt

This file was deleted.

This file was deleted.

9 changes: 0 additions & 9 deletions src/sbt-test/sbt-docker/auto-package/project/plugins.sbt

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions src/sbt-test/sbt-docker/auto-package/test

This file was deleted.

0 comments on commit a2ec929

Please sign in to comment.