[
https://issues.apache.org/jira/browse/GROOVY-7906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15433289#comment-15433289
]
Serge edited comment on GROOVY-7906 at 8/23/16 5:55 PM:
--------------------------------------------------------
Ok as a workaround i've added in my dockerfile
{code}
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
{code}
(i still have echo $SHELL = ash and echo $BASH = bash)
And thereafter, groovy can starts.
It is indeed related to the fact that the groovy shells are using /bin/sh, and
in an alpine installation, /bin/sh is a symbolic link to /bin/busybox.
was (Author: sr-g):
Ok as a workaround i've added in my dockerfile
{code}
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
{code}
And thereafter, groovy can starts.
It is indeed related to the fact that the groovy shells are using /bin/sh, and
in an alpine installation, /bin/sh is a symbolic link to /bin/busybox.
> groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution
> ----------------------------------------------------------------------
>
> Key: GROOVY-7906
> URL: https://issues.apache.org/jira/browse/GROOVY-7906
> Project: Groovy
> Issue Type: Bug
> Affects Versions: 2.4.7
> Environment: Alpine linux (=> no bash, busybox only)
> Reporter: Peter B.
>
> running groovy in alpine linux results in:
> {code}
> /tmp/groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution
> {code}
> as a workaround I'm running:
> {code}
> sed -ie '274,275d' /tmp/groovy-2.4.7/bin/startGroovy
> {code}
> prior to invoking groovy
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)