Skip to content

Commit

Permalink
update plugin dependency, show how to dockerignore complete folders
Browse files Browse the repository at this point in the history
  • Loading branch information
gesellix committed Apr 8, 2015
1 parent 8cec4ae commit 1d5ef43
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions build-with-dockerignore/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
build
ignoreddirectory
file-to-be-ignored
*/another-file-to-be-ignored
*.iml
Expand Down
2 changes: 1 addition & 1 deletion build-with-dockerignore/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import de.gesellix.gradle.docker.tasks.incubating.DockerBuildTask
import de.gesellix.gradle.docker.tasks.DockerBuildTask

task buildImage(type: DockerBuildTask) {
imageName = "foo"
Expand Down
4 changes: 3 additions & 1 deletion build-with-dockerignore/ensure-dockerignore.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/sh

[ ! -e "./file-to-be-ignored" \
-a ! -e "./subdirectory/another-file-to-be-ignored" ] || exit 1
-a ! -e "./subdirectory/another-file-to-be-ignored" \
-a ! -d "./build" \
-a ! -d "./ignoreddirectory" ] || exit 1
Empty file.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import static groovy.json.JsonOutput.prettyPrint
import static groovy.json.JsonOutput.toJson

// works with Gradle 2.1+, for the old configuration see http://plugins.gradle.org/plugin/de.gesellix.docker
plugins { id "de.gesellix.docker" version '2015-04-02T11-48-32' }
plugins { id "de.gesellix.docker" version '2015-04-08T22-16-48' }

// works with Gradle < 2.1
//buildscript {
Expand All @@ -14,7 +14,7 @@ plugins { id "de.gesellix.docker" version '2015-04-02T11-48-32' }
// jcenter()
// maven { url "https://plugins.gradle.org/m2/" }
// }
// dependencies { classpath 'de.gesellix:gradle-docker-plugin:2015-04-02T11-48-32' }
// dependencies { classpath 'de.gesellix:gradle-docker-plugin:2015-04-08T22-16-48' }
//}
//apply plugin: "de.gesellix.docker"

Expand Down

0 comments on commit 1d5ef43

Please sign in to comment.