<p>I was trying to run rundeck on docker image on kubernetes. I wanted to know if there is an env variable for <code>rundeck.feature.jobLifecyclePlugin.enabled</code> to be added on the docker compose file. I couldn't find it anywhere in the documents. Would appreciate any help with this. </p>

Harsha Patil
<p>I tried using <code>RUNDECK_FEATURE_JOBLIFECYCLEPLUGIN_ENABLED: 'true'</code> on &quot;environment&quot; section on compose file like <a href="https://github.com/rundeck/docker-zoo/blob/master/config/docker-compose.yml" rel="nofollow noreferrer">this</a>, but that create this line on <code>rundeck-config.properties</code> file: <code>rundeck.feature.joblifecycleplugin.enabled=true</code> (all lowercase, and we need <code>rundeck.feature.jobLifecyclePlugin.enabled=true</code>, the configuration is case sensitive).</p>
<p>You can add it using <a href="https://github.com/HeavyHorst/remco" rel="nofollow noreferrer">Remco</a>. Take a look at <a href="https://hub.docker.com/r/rundeck/rundeck" rel="nofollow noreferrer">this</a> (check the &quot;Extending Configuration&quot; section), <a href="https://github.com/rundeck/docker-zoo/tree/master/config" rel="nofollow noreferrer">here</a> a good example to test.</p>
<p>In my case, I added this in the <code>rundeck-config-extra.properties</code> file (at <code>mydocker/remco/templates/</code> path).</p>
<pre><code># adding extra stuff to rundeck-config.properties file
rundeck.feature.jobLifecyclePlugin.enabled={{ getv(&quot;/rundeck/feature/joblifecycleplugin/enabled&quot;, &quot;true&quot;) }}
</code></pre>
<p>And this on <code>rundeck-config.properties-extra.toml</code> (at <code>mydocker/remco/resources.d/</code>      path)</p>
<pre><code>[[template]]
    src         = &quot;${REMCO_TEMPLATE_DIR}/rundeck-config-extra.properties&quot;
    dst         = &quot;${REMCO_TMP_DIR}/rundeck-config/rundeck-config-extra.properties&quot;
    mode        = &quot;0644&quot;
</code></pre>
<p>My <code>docker-compose.yaml</code> (at <code>mydocker/</code> path):</p>
<pre class="lang-yaml prettyprint-override"><code>version: '3'

services:
  rundeckserver:
    build:
      context: .
      dockerfile: Dockerfile
      args:
        url: http://localhost:4440
    ports:
      - &quot;4440:4440&quot;
    restart: always
</code></pre>
<p>My <code>Dockerfile</code> (at <code>mydocker/</code> path, also copy an example plugin obtained <a href="https://github.com/rundeck/rundeck/tree/master/examples/example-java-job-lifecycle-plugin" rel="nofollow noreferrer">here</a>):</p>
<pre><code>FROM rundeck/rundeck:3.2.4

COPY --chown=rundeck:root remco /etc/remco
COPY --chown=rundeck:root volume/job-lifecycle-3.2.3-20200221.jar /home/rundeck/libext/
ARG url=&quot;&quot;
ENV RUNDECK_SERVER_ADDRESS=0.0.0.0
ENV RUNDECK_GRAILS_URL=$url
</code></pre>
<p>Then you need to do (at <code>mydocker/</code> path):</p>
<p><code>docker-compose build</code></p>
<p>And later:</p>
<p><code>docker-compose up</code></p>
<p>That adds this line in the <code>rundeck-config.properties</code> file:</p>
<pre><code># adding extra stuff to rundeck-config.properties file
rundeck.feature.jobLifecyclePlugin.enabled=true
</code></pre>
<p>Finally, take a look at the <a href="https://i.stack.imgur.com/4GlSm.jpg" rel="nofollow noreferrer">result</a>.</p>
