Skip to content

Commit

Permalink
Fixed example gradle file, removed dryRun.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgruter committed Dec 16, 2013
1 parent 05a7d65 commit 6e6838e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions example/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Gradle Docker Plugin Example

The example in this folder is intended as an illustration on how to build runnable docker images with the gradle-docker plugin.
This exampl is intended as an illustration on how to build runnable docker images with the gradle-docker plugin in conjunction with Gradle Java and Application plugins.

## Example Application
The source code in this example consists of a simple main method that starts a jetty webserver to serves static html.
The source code in this example consists of a simple main method that starts a jetty webserver serving static html.

## Requirements
- JDK 1.7
Expand Down
8 changes: 7 additions & 1 deletion example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'docker'

buildscript {
repositories { mavenCentral() }
dependencies {
classpath 'se.transmode.gradle:gradle-docker:1.0'
}
}

sourceCompatibility = 1.7
group = 'example'
version = '1.0'
Expand All @@ -13,6 +20,5 @@ dependencies {
}

distDocker {
dryRun true
exposePort 8080
}
8 changes: 0 additions & 8 deletions example/gradle/init.gradle

This file was deleted.

2 changes: 1 addition & 1 deletion example/gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,4 @@ function splitJvmOpts() {
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"

exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "--init-script=gradle/init.gradle" "$@"
exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"

0 comments on commit 6e6838e

Please sign in to comment.