Skip to content

Commit

Permalink
Add test for docker labels
Browse files Browse the repository at this point in the history
  • Loading branch information
NeQuissimus authored and muuki88 committed Apr 13, 2017
1 parent 51ecb97 commit 6dcd123
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/sbt-test/docker/labels/build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
enablePlugins(DockerPlugin)

name := "simple-test"

version := "0.1.0"

dockerLabels := Map("foo" -> "bar", "Hello" -> "World")
1 change: 1 addition & 0 deletions src/sbt-test/docker/labels/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % sys.props("project.version"))
4 changes: 4 additions & 0 deletions src/sbt-test/docker/labels/test
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Stage the distribution and ensure files show up.
> docker:stage
$ exec grep -q -F 'LABEL foo=bar' target/docker/Dockerfile
$ exec grep -q -F 'LABEL Hello=World' target/docker/Dockerfile

0 comments on commit 6dcd123

Please sign in to comment.