-
Notifications
You must be signed in to change notification settings - Fork 444
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace deprecated java Docker container with openjdk
- Loading branch information
1 parent
bd7b6f1
commit 60ad44f
Showing
3 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ version := "0.1.0" | |
maintainer := "Gary Coady <[email protected]>" | ||
|
||
dockerCommands := Seq( | ||
Cmd("FROM", "dockerfile/java:latest"), | ||
Cmd("FROM", "dockerfile/openjdk:latest"), | ||
Cmd("MAINTAINER", maintainer.value), | ||
ExecCmd("CMD", "echo", "Hello, World from Docker") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -166,7 +166,7 @@ Docker Base Image | |
|
||
.. code-block:: scala | ||
dockerBaseImage := "dockerfile/java" | ||
dockerBaseImage := "dockerfile/openjdk" | ||
Docker Repository | ||
~~~~~~~~~~~~~~~~~ | ||
|
@@ -210,7 +210,7 @@ In your sbt console type | |
.. code-block:: bash | ||
> show dockerCommands | ||
[info] List(Cmd(FROM,dockerfile/java:latest), Cmd(MAINTAINER,Your Name <[email protected]>), ...) | ||
[info] List(Cmd(FROM,dockerfile/openjdk:latest), Cmd(MAINTAINER,Your Name <[email protected]>), ...) | ||
|
@@ -278,7 +278,7 @@ Now let's start adding some Docker commands. | |
import com.typesafe.sbt.packager.docker._ | ||
dockerCommands := Seq( | ||
Cmd("FROM", "dockerfile/java:latest"), | ||
Cmd("FROM", "dockerfile/openjdk:latest"), | ||
Cmd("MAINTAINER", maintainer.value), | ||
ExecCmd("CMD", "echo", "Hello, World from Docker") | ||
) | ||
|