gradle-docker icon indicating copy to clipboard operation
gradle-docker copied to clipboard

Presented samples don't work with version 1.2

Open jest opened this issue 9 years ago • 3 comments

The examples presented e.g. in the documentation don't work. Specifically, the code

task docker(type: Docker) {
  applicationName = 'nginx'
  dockerfile {
      run 'echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list'
      run 'apt-get update'
      run 'apt-get install -y inotify-tools nginx apache2 openssh-server'
  }
}

fails on dockerfile because the DSL was not present(?) in 1.2.

jest avatar Feb 18 '16 13:02 jest

Correct, sorry about that. I have changed the examples before we were ready to release version 1.3. Do you want me to revert the example code?

mattgruter avatar Feb 25 '16 10:02 mattgruter

There is also a 1.2 tag if you want to see the older stuff, which might show correct examples

bjornmagnusson avatar Feb 25 '16 10:02 bjornmagnusson

Yes, I know, but the example uses classpath 'se.transmode.gradle:gradle-docker:1.2' to load the plugin, so it simply doesn't work. And the error message doesn't help much to a newbie, so I think it is better to stick to a published version in a README file.

Or better yet, is there a published snapshot of master branch somewhere that one can use with new features? I see no published artifacts on droid.io -- maybe because the last few builds are failing?

jest avatar Feb 25 '16 13:02 jest