Skip to content

Commit

Permalink
Update ircbot entrypoint/cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
olblak committed Oct 30, 2018
1 parent 24c617e commit 8022f0e
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -18,7 +18,10 @@ spec:
image: jenkinsciinfra/ircbot:<%= @parameters['image_tag'] %>
imagePullPolicy: IfNotPresent
# A shell is required to load $NICK_PASSWORD env variable
args: ["$NICK_PASSWORD"]
# For a reason that I can't understand, the java command must be defined as an argument otherwise it doesn't take into account the $NICK_PASSWORD parameter
command: ["/tini","--","/bin/sh","-c"]
args: ["java -Dircbot.name=jenkins-admin -jar /usr/local/bin/ircbot-2.0-SNAPSHOT.jar $NICK_PASSWORD"]

env:
- name: NICK_PASSWORD
valueFrom:
Expand Down

0 comments on commit 8022f0e

Please sign in to comment.