tag:github.com,2008:https://github.com/ggee/gradle-docker/releasesRelease notes from gradle-docker2019-04-24T21:45:51Ztag:github.com,2008:Repository/222816553/0.22.12019-04-24T21:45:51Z0.22.1: [fix] Don't shadow the standard gradle 'ext' field on tasks. (#243)<p>[fix] All Gradle Tasks (and many other things) have a special 'ext' extension,<br>
which is of type ExtraPropertiesExtension<br>
(see <a href="https://docs.gradle.org/current/javadoc/org/gradle/api/plugins/ExtensionAware.html" rel="nofollow">https://docs.gradle.org/current/javadoc/org/gradle/api/plugins/ExtensionAware.html</a>).<br>
Previously the DockerComposeExtension was shadowing this as it was set as a field<br>
with name 'ext' on the gradle tasks created by this plugin.</p>
<h2>Before this PR</h2>
<p>It was not possible to set custom properties on the <code>generateDockerCompose</code> task by the usual <code>generateDockerCompose.ext.foo = "bar"</code> method supported by all other Gradle tasks because the <code>GenerateDockerCompose</code> task had a field <code>ext</code> that contained the <code>DockerComposeExtension</code>.</p>
<h2>After this PR</h2>
<p>This PR removes the <code>ext</code> field on <code>GenerateDockerCompose</code> and <code>DockerComposeUp</code> and gets the <code>DockerComposeExtension</code> directly from the project.</p>GrahamDennistag:github.com,2008:Repository/222816553/0.22.02019-04-10T15:37:56Z0.22.0: [improvement] docker configuration includes productDependencies (#239)<h2>Before this PR</h2>
<p>Internally, many repos use this plugin in conjunction with gradle-sls-packaging. When trying to create a docker-compose.yml for ETE testing, users usually want to use versions of their <em>product dependencies</em>.</p>
<p>From <a href="https://github.com/palantir/sls-packaging/releases/tag/3.7.1">sls-packaging 3.7.1</a> onwards, there's now a convenient way of getting access to this information.</p>
<h2>After this PR</h2>
<p>Repos that use <code>com.palantir.docker-compose</code> at the root and <code>com.palantir.sls-java-service-distribution</code> in a subproject will now be able to magically refer to their product dependencies when templating their docker-compose.yml files:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" my-product:
container_name: my-product.palantir.pt
hostname: my-product
domainname: palantir.pt
image: 'docker-registry/foo/my-product:{{com.palantir.foo:my-product}}'
ports:
- "8901:8901"
- "8902:8902""><pre> <span class="pl-ent">my-product</span>:
<span class="pl-ent">container_name</span>: <span class="pl-s">my-product.palantir.pt</span>
<span class="pl-ent">hostname</span>: <span class="pl-s">my-product</span>
<span class="pl-ent">domainname</span>: <span class="pl-s">palantir.pt</span>
<span class="pl-ent">image</span>: <span class="pl-s"><span class="pl-pds">'</span>docker-registry/foo/my-product:{{com.palantir.foo:my-product}}<span class="pl-pds">'</span></span>
<span class="pl-ent">ports</span>:
- <span class="pl-s"><span class="pl-pds">"</span>8901:8901<span class="pl-pds">"</span></span>
- <span class="pl-s"><span class="pl-pds">"</span>8902:8902<span class="pl-pds">"</span></span></pre></div>iamdanfoxtag:github.com,2008:Repository/222816553/0.21.02019-01-07T17:46:54Z0.21.0<p>Support task name for tags (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="371038877" data-permission-text="Title is private" data-url="https://github.com/palantir/gradle-docker/issues/205" data-hovercard-type="pull_request" data-hovercard-url="/palantir/gradle-docker/pull/205/hovercard" href="https://github.com/palantir/gradle-docker/pull/205">palantir#205</a>)</p>devkanrotag:github.com,2008:Repository/222816553/0.20.12018-07-03T19:57:55Z0.20.1<p>fix issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="267922038" data-permission-text="Title is private" data-url="https://github.com/palantir/gradle-docker/issues/149" data-hovercard-type="issue" data-hovercard-url="/palantir/gradle-docker/issues/149/hovercard" href="https://github.com/palantir/gradle-docker/issues/149">palantir#149</a> and issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="274497929" data-permission-text="Title is private" data-url="https://github.com/palantir/gradle-docker/issues/151" data-hovercard-type="issue" data-hovercard-url="/palantir/gradle-docker/issues/151/hovercard" href="https://github.com/palantir/gradle-docker/issues/151">palantir#151</a> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="318789314" data-permission-text="Title is private" data-url="https://github.com/palantir/gradle-docker/issues/177" data-hovercard-type="pull_request" data-hovercard-url="/palantir/gradle-docker/pull/177/hovercard" href="https://github.com/palantir/gradle-docker/pull/177">palantir#177</a>)</p>thunderstumpgestag:github.com,2008:Repository/222816553/0.20.02018-06-28T18:23:21Z0.20.0<p>dockerComposeUp task (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="336418576" data-permission-text="Title is private" data-url="https://github.com/palantir/gradle-docker/issues/186" data-hovercard-type="pull_request" data-hovercard-url="/palantir/gradle-docker/pull/186/hovercard" href="https://github.com/palantir/gradle-docker/pull/186">palantir#186</a>)</p>samrogersontag:github.com,2008:Repository/222816553/0.19.22018-02-16T14:31:00Z0.19.2<p>Capture tagName in lazily evaluated block (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="297800575" data-permission-text="Title is private" data-url="https://github.com/palantir/gradle-docker/issues/167" data-hovercard-type="pull_request" data-hovercard-url="/palantir/gradle-docker/pull/167/hovercard" href="https://github.com/palantir/gradle-docker/pull/167">palantir#167</a>)</p>daroratag:github.com,2008:Repository/222816553/0.19.12018-02-15T17:50:51Z0.19.1<p>Fix lazy evaluation (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="297536868" data-permission-text="Title is private" data-url="https://github.com/palantir/gradle-docker/issues/166" data-hovercard-type="pull_request" data-hovercard-url="/palantir/gradle-docker/pull/166/hovercard" href="https://github.com/palantir/gradle-docker/pull/166">palantir#166</a>)</p>daroratag:github.com,2008:Repository/222816553/0.19.02018-02-15T17:12:21Z0.19.0<p>Merge pull request <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="297509017" data-permission-text="Title is private" data-url="https://github.com/palantir/gradle-docker/issues/165" data-hovercard-type="pull_request" data-hovercard-url="/palantir/gradle-docker/pull/165/hovercard" href="https://github.com/palantir/gradle-docker/pull/165">palantir#165</a> from darora/da/image-name-lazy</p>daroratag:github.com,2008:Repository/222816553/0.18.02018-02-14T16:19:11Z0.18.0: Merge pull request #163 from darora/da/docker-image-name<p>Allow for configuration of additional template tokens for docker compose files.</p>iamdanfoxtag:github.com,2008:Repository/222816553/0.17.22017-12-22T17:18:37Z0.17.2<p>Publishing plugin to 0.9.9 (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="284212341" data-permission-text="Title is private" data-url="https://github.com/palantir/gradle-docker/issues/160" data-hovercard-type="pull_request" data-hovercard-url="/palantir/gradle-docker/pull/160/hovercard" href="https://github.com/palantir/gradle-docker/pull/160">palantir#160</a>)</p>ggee