Fix gerrit execution path
Java is in /usr/local in these base images. Also, combining ENTRYPOINT and CMD with [] syntax seems to lead to the whole thing with [ getting passed to the entrypoint - which leads to errors like: /bin/sh: 1: [/usr/bin/java,: not found Change-Id: I7c1ebdff58d6590724eaf5d429437a5c8c25fe22
This commit is contained in:
parent
1ce80389f1
commit
3b48ad0def
@ -65,4 +65,4 @@ ENV JAVA_OPTIONS ""
|
||||
|
||||
# Ulimits should be set on command line or in docker-compose.yaml
|
||||
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
||||
CMD ["/usr/bin/java", ${JAVA_OPTIONS}, "-jar", "/var/gerrit/bin/gerrit.war"]
|
||||
CMD /usr/local/openjdk-8/bin/java ${JAVA_OPTIONS} -jar /var/gerrit/bin/gerrit.war daemon -d /var/gerrit
|
||||
|
@ -59,4 +59,4 @@ ENV JAVA_OPTIONS ""
|
||||
|
||||
# Ulimits should be set on command line or in docker-compose.yaml
|
||||
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
||||
CMD ["/usr/local/openjdk-8/bin/java", ${JAVA_OPTIONS}, "-jar", "/var/gerrit/bin/gerrit.war", "daemon", "-d", "/var/gerrit"]
|
||||
CMD /usr/local/openjdk-8/bin/java ${JAVA_OPTIONS} -jar /var/gerrit/bin/gerrit.war daemon -d /var/gerrit
|
||||
|
Loading…
Reference in New Issue
Block a user