[ 
https://issues.apache.org/jira/browse/TINKERPOP-2685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17474989#comment-17474989
 ] 

Igor Ostapenko commented on TINKERPOP-2685:
-------------------------------------------

I'm running Docker Desktop @ macOS Catalina with docker engine 19.03.5 inside. 
According to the facts I have, this is not a Tinkerpop's bug. I think it's 
somehow related to older Linux version + recent Alpine + recent bash.
{code:java}
bash-5.1$ uname -a
Linux 2fefbc3bd3c4 4.9.184-linuxkit #1 SMP Tue Jul 2 22:58:16 UTC 2019 x86_64 
Linux {code}
Bash from official packages for Alpine 3.14 or 3.15 shows the same problem:
{code:java}
> docker run --rm -it alpine:3.14.3 sh
/ # apk add bash
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
fetch 
https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz
(1/4) Installing ncurses-terminfo-base (6.2_p20210612-r0)
(2/4) Installing ncurses-libs (6.2_p20210612-r0)
(3/4) Installing readline (8.1.0-r0)
(4/4) Installing bash (5.1.4-r0)
Executing bash-5.1.4-r0.post-install
Executing busybox-1.33.1-r6.trigger
OK: 8 MiB in 18 packages
/ # test -r /.dockerenv ; echo $?
0
/ # bash
bash-5.1# test -r /.dockerenv ; echo $?
1 {code}
But bash with Alpine 3.12 (what tinkerpop/gremlin-server:3.5.0 is based on) 
works correctly:
{code:java}
> docker run --rm -it alpine:3.12.9 sh
Unable to find image 'alpine:3.12.9' locally
3.12.9: Pulling from library/alpine
8572bc8fb8a3: Pull complete
Digest: sha256:d9459083f962de6bd980ae6a05be2a4cf670df6a1d898157bceb420342bec280
Status: Downloaded newer image for alpine:3.12.9
/ # apk add bash
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
fetch 
http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
(1/4) Installing ncurses-terminfo-base (6.2_p20200523-r1)
(2/4) Installing ncurses-libs (6.2_p20200523-r1)
(3/4) Installing readline (8.0.4-r0)
(4/4) Installing bash (5.0.17-r0)
Executing bash-5.0.17-r0.post-install
Executing busybox-1.31.1-r21.trigger
OK: 8 MiB in 18 packages
/ # test -r /.dockerenv ; echo $?
0
/ # bash
bash-5.0# test -r /.dockerenv ; echo $?
0 {code}
Well, I should be told to upgrade the kernel (aka "upgrade Docker Desktop"), 
but... this is the host what works with Docker without issues for ~3 years for 
different projects and modern tech stacks. It's hard to state that kernel is 
"not enough", such times passed when Docker was evolving actively and kernel 
upgrades were required from time to time.

Okay, I guess you may close this issue and I will try to find Alpine/Bash guys 
to discuss this, probably there is an official reason why it does not work with 
4.x kernel. If I have updates I will post it here for completeness of the 
history :).

P.S. Please excuse me if it took a lot of your time.

> "docker run tinkerpop/gremlin-server:3.5.1" does not work
> ---------------------------------------------------------
>
>                 Key: TINKERPOP-2685
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2685
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 3.5.1
>            Reporter: Igor Ostapenko
>            Priority: Blocker
>
>  
> {code:java}
> $ docker run tinkerpop/gremlin-server:3.5.1
> WARNING: /opt/gremlin-server//opt/gremlin-server/conf/gremlin-server.yaml is 
> unreadable
> Configuration file not found.
> Usage: /opt/gremlin-server/bin/gremlin-server.sh 
> {start|stop|restart|status|console|install <group> <artifact> <version>|<conf 
> file>}
>     start        Start the server in the background using 
> conf/gremlin-server.yaml as the
>                  default configuration file
>     stop         Stop the server
>     restart      Stop and start the server
>     status       Check if the server is running
>     console      Start the server in the foreground using 
> conf/gremlin-server.yaml as the
>                  default configuration file
>     install      Install dependencies
> If using a custom YAML configuration file then specify it as the only 
> argument for Gremlin
> Server to run in the foreground or specify it via the GREMLIN_YAML 
> environment variable.
> {code}
> But `docker run tinkerpop/gremlin-server:3.5.0` works fine.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to